Quote:
Originally Posted by loximuthal
Thanks! The particular code you suggested didn't work for me, and anyway I only want to launch one book at a time. I used this instead:
Code:
while ( $# )
ebook-edit "$1"
shift
end
and everything worked swimingly.
Further details, for others who might want to do this, in the Automator dialog:
Shell:/bin/csh
Pass Input: as arguments
EDIT: I should have realized, but this script will only take books dropped on it. It does not launch the program independently. That's ok for me, but you may have a different work flow.
|
Try this instead:
Code:
if [ "$1" != "" ]
while [ "$1" != "" ]
ebook-edit "$1"
shift
done
else
ebook-edit
fi
So it only calls your code if arguments are passed, else it just calls ebook-edit.
DISCLAIMER: I am allowed to know this since I
am a linux guy even though I'm not a Mac guy.