External file support

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

Moderator: Mr_Noodle

External file support Wed Jun 19, 2019 8:37 pm • by artmelkon
I am trying to use external apple script file with .scpt extension, however, it's not working.
When I embed the script into Hazel, it works, but once I change to switch to external script the exact same code doesn't work.
Can you please let me know what am I doing wrong here?
Thanks in advanced.
tell application "Adobe Photoshop CC 2017"
open "/Users/uv/Desktop/original_test_files"
end tell
this is from log file
2019-06-19 17:01:08.717 hazelworker[52914] Running worker (v4.3.5) for folder with identifier: 16777220-25813935.
2019-06-19 17:01:08.718 hazelworker[52914] ###main load address: 0x1054c5000
2019-06-19 17:01:08.718 hazelworker[52914] ###Noodle load address: 0x1055e9000
2019-06-19 17:01:08.718 hazelworker[52914] ###CK load address: 0x1055ab000
2019-06-19 17:01:08.737 hazelworker[52914] Processing folder 03_output_repository (forced)
2019-06-19 17:01:10.752 hazelworker[52914] Received abort event.
2019-06-19 17:01:10.753 hazelworker[52914] Done processing folder 03_output_repository
Posts: 1
Joined: Wed Jun 19, 2019 8:18 pm

Re: External file support Thu Jun 20, 2019 10:36 am • by Mr_Noodle
When using an external script, you need to put your code in a handler. Read the manual on AppleScript as there are more details there.
Site Admin
Posts: 8697
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Return to Support