|
|
Not Working for Me
First of all, being a unix guy, I don't think in terms of aliases, but rather symlinks. I finally realized that a symlink wasn't going to do the trick, but an alias does. At least as far as launching an Application. OK, fair enough. I think a symlink oughta work, but no big deal.
Not Working for Me
I made up this little shell script to test this:
#!/bin/sh
This moves the temp file created by the PDF Services to the current user's desktop. Not too useful since using an alias to the desktop works more easily than using a script. The important thing is to remember that the PDF services is creating a temp document, storing it somewhere, and passing the file name and path to the shell as the the third input parameter. Go to this Apple documentation page for more info on creating PDF Workflow Options. Particularly interesting is this statement: A UNIX tool or tool alias triggers an action by the tool on the PDF file. Tools are passed three parameters: • the title of the PDF document • a string that specifies the CUPS options for the job • the path to the spooled PDF file This means that the name will be in the variable $1, the CUPS options will be in $2, and the file path will be in $3. Remember, since the file is in a temp directory you are responsible for cleaning it up, if you need to delete it (that is, your action on it didn't remove it from the temp directory) then just put this statement at the end of your script: rm -f "$3"
symlinks work for me
mkdir ~/Library/PDF\ Services |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.12 seconds |
|