Page 1 of 1

Hazel and Shell

PostPosted: Tue Nov 07, 2017 6:54 am
by Razzle
I have create a rule for a folder that is triggered when I create a subfolder. I want to copy a folder structure to the new subfolder.

The problem I am having is that when running the script below the folder structure is going under the parent folder but it is in it own folder %1

ditto "/Users/razzle/Test 2/Master Client" %1

Any help would be appreciate

Re: Hazel and Shell

PostPosted: Tue Nov 07, 2017 11:24 am
by Mr_Noodle
If you are using sh/bash as the shell for your script, you need to use $1, not %1.