I was wrong, it does work to include the path in the file name. I just can't use a '~' as a short cut to my home directory. At least not with a Mac. Using the full path works for all formats, and the '~' works for everything expect pdf and eps.
Oliver, thanks for your help troubleshooting this for me!
this program is great. I have tried several hacks over the years to do something similar, but not worked this clean.
When specifying a path in the file name it works for all formats except pdf and eps. These will only save to the current directory. Is there a way to specify the path in the call? Currently I just cd to the desired directory and then cd back to where I was.