Hi,
I've got an AppleScript which is working fine from the AppleScript Editor. Now, I tried to get the script running out of Hazel. For this, I added the handler
"on hazelProcessFile(theFile)" at the top of my script
and "end hazelProcessFile" at the end.
When compiling or saving the scxript, I'm getting the error "Expected “end” but found “on”."
The same happens when I try to embed the script in Hazel (of course, without the handlers in the code).
I'm getting the error on this line of my script:
on renameFiles(finalMatchesArray, fileNameAddition)
The script can be downloaded here: http://rivab2b.com/hazel/renameFiles.scpt.zip
Does anybody have an idea what is bothering?
Thanks & regards
Ralf