Page 1 of 1

Error when invoking AppleScript which interacts with Photos

PostPosted: Sat Dec 29, 2018 1:06 pm
by scottfwalter
Hi,

I have a Hazel rule in which when a file exists it will run an external AppleScript. The AppleScript runs without issue when I run it from the ScriptEditor. However when its a step in my Hazel rule I get error 1708.

Code: Select all
018-12-29 11:01:40.490 hazelworker[96930] Processing folder Shortcuts
2018-12-29 11:01:42.502 hazelworker[96930] sync-smart-albums.txt: Rule Sync Smart Albums matched.
2018-12-29 11:01:42.551 hazelworker[96930] [Error] AppleScript failed: Error executing AppleScript on file /Users/scott/Library/Mobile Documents/iCloud~is~workflow~my~workflows/Documents/sync-smart-albums.txt.
2018-12-29 11:01:42.551 hazelworker[96930] OSAScript error: {
    OSAScriptErrorNumberKey = "-1708";
}


Could someone please let me know what this error means? Can you have an AppleScript which interacts with Photos from Hazel?

Thanks in advance, Scott

Re: Error when invoking AppleScript which interacts with Ph

PostPosted: Sat Dec 29, 2018 1:18 pm
by scottfwalter
never mind I forgot about the needed handler for external scripts.