When running AppleScripts from the command line, I generally either use
osascript or my own very limited command line utility that calls
NSUserScriptTask (which conveniently allows it to run in the system Script Monitor utility; link).
Both of these methods result in functional persistent properties in .scpt files, which has the unfortunate side effect of modifying the original .scpt file. This wreaks havoc with syncing in iCloud, and I frequently find myself with multiple copies of scripts with modifications out of sync. I would like to disable property persistence to prevent these syncing errors.
How does Script Debugger disable property persistence? Is this something trivial that could be handled from Cocoa? I’ve had a look at
NSAppleScript as well as
NSUserScriptTask (and its subclass
NSUserAppleScriptTask) and nothing is jumping out at me.
Thanks for any advice you can offer.