I get a “no such folder: bonnmike” error…
Just teasing! Thanks for the help, this combination seems to work well. I did
remove the PLINK- part, I need the names to stay the same.
For your interest, and others too, the problem this is to solve is a DropBox
complexity issue. My designer colleague
Got it working here. First item in the automator app is "Get Specified
Finder Items" Then the shell script, I'm using
for f in "$@"
do
ln "$f" "/Users/bonnmike/Desktop/myfolder/Plink-$(basename "$f")"
done
Its working both ways actually. Setting the directory first then running
the loop, or i
OH, and the alternative option listed..
ln "$f" "/Users/colin/myfolder/Plink-$(basename "$f")"
is worth a try if you didn't already.
On Thu, Apr 14, 2016 at 9:56 PM, Mike Bonner wrote:
> Hmm. I'll get my mac up and going in the morning and try a few things.
> Another thought. Complete the cr
Hmm. I'll get my mac up and going in the morning and try a few things.
Another thought. Complete the creation of links then mv them to the target
directory? I also assume the lack of space after cd is just a typo.
On Thu, Apr 14, 2016 at 9:53 PM, Colin Holgate
wrote:
> Thanks, that looked hop
Thanks, that looked hopeful, but with this:
cd/Users/colin/myfolder
for f in "$@"
do
ln "$f" "Plink-$(basename "$f")"
done
I still puts the links in the original folders.
I trie this too:
for f in "$@"
do
cd/Users/colin/myfolder
ln "$f" "Plink-$(basename "$f")"
done
I assume you've tried the obvious stuff for your automator shell script
call.. cd to the directory first then loop through the dropped files.
cd /my/target/directory
for f in "$@"
do
ln "$f" "Plink-$(basename "$f")"
done
basename removes path information and returns just the filename portion,
I want to drag any number of files (in different folders) on to an Automator
application that has a Shell script to make a hard link of each file into a
particular folder. Whatever I’ve tried so far makes the link file in the
original file’s folder.
Any suggestions on how to set the target dir