• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EPS to PDF Watch Folder Dilemma
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EPS to PDF Watch Folder Dilemma


  • Subject: Re: EPS to PDF Watch Folder Dilemma
  • From: Tom Langton <email@hidden>
  • Date: Thu, 11 Mar 2010 10:05:46 -0500
  • Thread-topic: EPS to PDF Watch Folder Dilemma

Use Ghostscript to convert PDF to JPG.

Lines below are from Lasso, but the idea would be the same in AS.
Concatenate the base ghostscript instruction variable (you can look up what
all the switches do - below works well for me) and the destination and
source path variables and then run the whole thing with a shell.

I was able to script the same function through imageevents, but GS is way
faster and more reliable.

Sorry not to be able to give you a pure AS solution, and there is a bit of
trial and error getting GS to go as expected.


var: 'v_ghostscript' = '/opt/local/bin/gs -q -dNOPROMPT -dBATCH
-dUseCIEColor -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dFirstPage=1
-dLastPage=1 -dMaxBitmap=50000000 -dNOPAUSE -dAlignToPixels=0 -dJPEGQ=80
-dDITHERPPI=150 -sDEVICE=jpeg -r150 -sOutputFile=';


var: 'pdf2jpg' = $v_ghostscript + $destination_path + ' ' + $source_path;

shell($pdf2jpg);


On 3/11/10 8:43 AM, "Richard @ Beaver Promotions"
<email@hidden> wrote:

> Perhaps there is a Unix command or other command line tool I can call?


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >EPS to PDF Watch Folder Dilemma (From: "Richard @ Beaver Promotions" <email@hidden>)

  • Prev by Date: Re: EPS to PDF Watch Folder Dilemma
  • Next by Date: Re: Jon's commands renameFile not working?
  • Previous by thread: Re: EPS to PDF Watch Folder Dilemma
  • Next by thread: Re: EPS to PDF Watch Folder Dilemma
  • Index(es):
    • Date
    • Thread