More AppleScript stuff

Creating a PDF from AppleScript

This creates test.pdf on your desktop from a variable containing text:

do shell script ("echo " & quote & your_text_variable & quote &
" | /usr/bin/enscript -q -B --word-wrap -p -f Helvetica12 - 
 | /usr/bin/pstopdf -i -o ~/Desktop/test.pdf")

Posted under AppleScript

This post was written by stetho on December 19, 2008

Tags: ,