Can't get external Applescript to work

What am I missing?
I have an external .scpt:
I'm just starting to see how this works but no matter what I do the log shows
SOLVED: I realized I need to use hazelProcessFile instead of hazelMatchFile ... DOH!
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!