hazel - embedded script returning value for renaming.

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

Moderator: Mr_Noodle

Hi,

I'd like to see if this is doable.

- I have a python script.
- I'd like it to process a file and then
- the resulting output I would like it to be used to renaming a file.

questions:
- can hazel do this?
- is the variable that I need to use $1 for the file it processes?
- How do I pass the output from the python script to hazel so it can use it to rename a file?

Thanks
united
 
Posts: 54
Joined: Wed Mar 14, 2012 3:48 pm

If you use the Run shellscript action, if you set the shell/interpreter to python, it will show you what argument the file is passed in as. That said, you cannot pass anything back to Hazel. For that, you would need to use AppleScript instead.
Mr_Noodle
Site Admin
 
Posts: 11230
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support