I have a repetitive task where I process a file through some program and then have to move it to a target directory.
The problem is that the target directory is different depending on the file I work on. Also, the target directories are nested about 10 down from my home directory. Luckily, I only have three target directories to choose from. Having heard many wonderful things about Quicksilver, I decided to try it out. I found out how you could pass the files you selected in Finder to Quicksilver and make the default operation "move to". Unfortunately, I could not find anywhere how to set up a history of past directories I accessed as I can on a bash command line: $SOME_COMMAND !!:$ which would just apply the command on the last argument of the previous command. So I had to go through the nested 10 directories each time I moved a file. So instead, I thought of writing a shell script that would take all the file arguments that I had selected in Finder, feed it to this script and just move them to the target directory: #! /bin/bash mv $@ $target_directory Well, after some searching, I couldn't find a way to pass the files I'd selected in Finder to this simple script as command line arguments. It seems I need to write some applescript, which from the limited amount I've read about it, doesn't make much sense. Anyway, it seems simple enough to do. But after 4 hours of tinkering, I still haven't found a way. Any help would be appreciated.
