Page 1 of 1

hazel - embedded script returning value for renaming.

PostPosted: Tue Jul 20, 2021 6:42 pm
by united
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

Re: hazel - embedded script returning value for renaming.

PostPosted: Wed Jul 21, 2021 9:41 am
by Mr_Noodle
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.