|
|
Combining the hints, and making it more secure
Taking the hints above into account, I made an Automator application (or workflow), like so. My goal here was to build a more secure version of the hints above. It's not a good idea to leave pdfs lying around in /private/tmp. So I both made sure to store working files a little more securely, and to clean them up afterwards. Also, I overrode the built in PDF combine pdfs action, since it outputs its result to the /private/tmp folder as well. I made it output its pdf to the Desktop instead:
Here's the AppleScript, based on the great script developed by Rhet Turnbull in his Convert Images to Combined PDF workflow, upon which this comment is based. ---
Combining the hints, and making it more secure
That removeExtension function is potentially a problem. If your file's path has a dot anywhere other than just before the file extension, the result will be very wrong.
As an example, the following:
would return:
Even worse if there is a dot somewhere higher in the path:
would return:
Here's a replacement:
---
http://www.danshockley.com |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks 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.09 seconds |
|