Can't get external Applescript to work

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

Moderator: Mr_Noodle

Can't get external Applescript to work Fri Sep 07, 2018 4:18 am • by dzg
What am I missing?

I have an external .scpt:
Code: Select all
on hazelMatchFile(theFile, inputAttributes)
   tell application "System Events"
      display dialog (the file as text) & (inputAttributes as text)
   end tell
   return true
end hazelMatchFile

I'm just starting to see how this works but no matter what I do the log shows
Code: Select all
Rule New Rule matched.
[Error] AppleScript failed: Error executing AppleScript on file .....
OSAScript error: {OSAScriptErrorNumberKey = "-1708";}

SOLVED: I realized I need to use hazelProcessFile instead of hazelMatchFile ... DOH!
Posts: 21
Joined: Tue Jun 26, 2012 10:19 pm

Return to Support