the simplified string version probably can't work well, since you don't know which script resource to default to, but the explicit version with blocks should work on any resource.