Have you tested this using the Apple Script Editor?
If not, then I'd recommend doing so.
Also, please use the Forum Code Block to post all scripts. I have revised your post to do this, this time.
Have you tested this using the Apple Script Editor?
If not, then I'd recommend doing so.
Also, please use the Forum Code Block to post all scripts. I have revised your post to do this, this time.