• 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
Creating PDFs with Ghostscript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating PDFs with Ghostscript


  • Subject: Creating PDFs with Ghostscript
  • From: Simon Topliss <email@hidden>
  • Date: Fri, 31 Jan 2003 16:13:05 +0000

Hi,

I'm trying to create PDFs using AppleScript and Ghostscript. I have
Ghostscript all installed correctly and I'm now able to create a PDF in the
Terminal with the following (all 1 line):

% ps2pdf13 '/Users/simontop/Desktop/test.ps'
'/Users/simontop/Desktop/test.pdf'

In order to get that working though, I had to edit the setenv PATH in
csh.login (as described at:
<http://www.macwrite.com/criticalmass/mac-os-x-jag-tweaks-part-1.php>) to:

setenv PATH
"/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin
:"

if (! $?DISPLAY) then # added for sake of X11 displays in Terminal by DMG
setenv DISPLAY :0.0
endif

#EOF

However, if I run the ps2pdf13 command above with a 'do shell script' I get
an error (similar to what I was getting before I edited the PATH):

--> sh: ps2pdf13: command not found

If I try to specify the full path to it:

do shell script "/usr/local/bin/ps2pdf13 '/Users/simontop/Desktop/test.ps'
'/Users/simontop/Desktop/test.pdf'" -- all 1 line

I get a different error:

--> /usr/local/bin/ps2pdf13: exec: ps2pdfwr: not found

So now I'm stuck. I guess it's something to do with the shell AppleScript is
using, but I don't know enough unix to fix it.

Does anyone have Ghostscript working with AppleScript? If so how?

Thanks to anyone who can help,

simon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Creating PDFs with Ghostscript
      • From: Philip Aker <email@hidden>
    • Re: Creating PDFs with Ghostscript
      • From: "John C. Welch" <email@hidden>
  • Prev by Date: Re: GUI Scripting & Missing Values
  • Next by Date: RE: Applescript to burst multi-page PDFs into a series of single pages
  • Previous by thread: Image size & resolution in QuarkXPress
  • Next by thread: Re: Creating PDFs with Ghostscript
  • Index(es):
    • Date
    • Thread