|
|
Shorter script
Here, the same script done a little easier. With the save to place defaulting to the user's desktop for free. :)
on open theItems set userDesktop to the path to desktop from user domain as text tell application "Finder" repeat display dialog "Enter output file name" default answer userDesktop & "untitled.pdf" set rawdata to text returned of the result exists file rawdata if result = true then display dialog "File already exists. Enter different file name." else exit repeat end if end repeat end tell set RawScript to "joinPDF" & space & (the POSIX path of rawdata) repeat with aFile in theItems set RawScript to RawScript & space & (the POSIX path of aFile) end repeat do shell script RawScript end open This should take a little less time to operate (of course, depends on how fast or slow joinPDF runs). Also, it won't start up Terminal to do the shell script. ;)
Shorter script
Oops, little goof, I forgot to add the apostrophes. Change the two lines above to:
set RawScript to "joinPDF" & "\"" & (the POSIX path of rawdata) & "\""
...sorry 'bout that one! (okay, okay, so I didn't use apostrophes, I used quotes...does the same thing :D )
Shorter script
Grrr...forgot about the slash thing...you need to do those quotes as:
"'"
(okay, so this time I used apostrophes :p ) |
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.05 seconds |
|