As a built-in option I think it's a bit too specific. It will only be useful in some cases, so it would be better as a part of scriptcore.
Overall - nice suggestion, but there are a ton of things like that that need to be implemented, but they never actually do get implemented.