Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Bulk convert text files to PDF' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Bulk convert text files to PDF
Authored by: wallybear on Jun 06, '11 02:22:22PM
why bother with AppleScript text delimiters for the "do shell script" command? You could easily replace the lines:
    set AppleScript's text item delimiters to " "
    set cmdList to {"/System/Library/Printers/Libraries/convert", "-f", quoted form of inputFilePath, "-o", quoted form of outputFilePath}
    do shell script (cmdList as text)
with this single line:
    do shell script "/System/Library/Printers/Libraries/convert -f " & quoted form of inputFilePath & " -o " & quoted form of outputFilePath

[ Reply to This | # ]
Bulk convert text files to PDF
Authored by: tedw on Jun 06, '11 05:16:48PM

no real reason - mostly because I was using text items already. :-)

[ Reply to This | # ]