DTS Engineer, I inserted your code into the Script Editor and an error occurred. I have High Sierra (10.13.6).
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: