Hazel and Shell

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

Moderator: Mr_Noodle

Hazel and Shell 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
Razzle
 
Posts: 2
Joined: Sun Nov 05, 2017 7:54 pm

Re: Hazel and Shell 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support