Mr_Noodle wrote:You can't use handlers in embedded scripts because the script itself is in a handler. Looking at your script, it seems the handler is unnecessary so just grab the part inside the handler and use that. You'll need to change the variable names as well as appName is not set to anything. I'm not sure if you want that to be set to the file that matched the rule or something else.
This was more of a snippet to illustrate the issue.
Seems like in AppleScript you can call an handler within another handler. Is there any way where you can use handler with Hazel?
https://stackoverflow.com/questions/411 ... nder-block.
"You'll need to change the variable names as well as appName is not set to anything." It has been just not in the code snippet provided.
I'm attempting to use a code that works in script editor to work with Hazel. Trying to see how to approach that.