• 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: How to save a PDF as a postscript file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to save a PDF as a postscript file?


  • Subject: Re: How to save a PDF as a postscript file?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 29 May 2007 12:02:44 -0400

On 5/29/07, Philip Aker <email@hidden> wrote:
What you want to do first is set your PPD environment variable to the
POSIX path of your favorite .ppd.

Ok, that would be the piece that sets up the page size...

For the uninitiated: a PPD is the printer description file used by
CUPS.  The one for your printer should be fine if printing to your
printer from the GUI achieves a satisfactory result.

They live in /usr/share/cups/model/, and laserjet.ppd is a reasonable
fallback default.

To set up the environment variable for the benefit of the command in
the script I posted, just prefix the assignment to the front of the
string (pay attention to the spaces before the closing quotes).  I've
also incorporated Philip's suggestions of leaving the arbitrary
strings blank (I wasn't sure that was OK) and redirecting error output
to nowheresville:

set shellCommand to "PPD=/usr/share/cups/model/laserjet.ppd " ¬
& "/usr/libexec/cups/filter/cgpdftops '' '' '' 1 '' <" ¬
& quoted form of pdfFile & " >" & quoted form of psFile & " 2>/dev/null"



--
Mark J. Reed <email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to save a PDF as a postscript file?
      • From: Richard Rönnbäck <email@hidden>
References: 
 >How to save a PDF as a postscript file? (From: Richard Rönnbäck <email@hidden>)
 >Re: How to save a PDF as a postscript file? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: How to save a PDF as a postscript file?
  • Next by Date: Re: Splash screen for AppleScript bundle Apps?
  • Previous by thread: Re: How to save a PDF as a postscript file?
  • Next by thread: Re: How to save a PDF as a postscript file?
  • Index(es):
    • Date
    • Thread