Error when invoking AppleScript which interacts with Photos

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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
scottfwalter
 
Posts: 47
Joined: Thu Jan 03, 2013 11:10 am

never mind I forgot about the needed handler for external scripts.
scottfwalter
 
Posts: 47
Joined: Thu Jan 03, 2013 11:10 am


Return to Support