Page 1 of 1

Can't get external Applescript to work

PostPosted: 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!