embedded file script not working - outside of folder

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

Moderator: Mr_Noodle

Hi,

Objective:
- run shell script on a command and put results in another folder

Image

shell script
cp $1 $1-2 <-- this works
cp $1 ../$1 < -- this DOENS'T Work (HOW?)

command:
cp <file> <file>-2 <-- works
cp <file> ../<file> <-- works

Question:
- How do I fix the (HOW?) so the file is generated on the directory above or specified.

Troubleshooting which didn't work
- tried cp $1 ~/Desktop/$1
- tried cp $1 /Users/<username>/Desktop/$1
united
 
Posts: 54
Joined: Wed Mar 14, 2012 3:48 pm

Does the path have any spaces in it? Also, is there a reason why you aren't using Hazel's Copy action?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron