• 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
'do shell script' error has me stumped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'do shell script' error has me stumped


  • Subject: 'do shell script' error has me stumped
  • From: Matthew Strange <email@hidden>
  • Date: Sun, 5 Jul 2009 19:05:16 -0400

I have encountered a problem that has me stumped. I'm hoping it's a simple thing for those with more 'do shell script' experience than I...

I'm trying to script the sending of a fax. Step 1 is converting a postscript file into the proper format. In Terminal, it goes like this (given the .ps file is at the root of the boot volume):
fax make /faxfile.ps


That is simple enough, and it works perfectly. My simple understanding is that I ought to be able to AppleScript that thusly:
do shell script "fax make /faxfile.ps"


But it fails. Following the command with ' 2>&1' to get the standard error reveals the error:
/usr/bin/fax: line 801: gs: command not found


My limited experience tells me perhaps the wrong shell is being used, but I'm at a loss on what to do next. I've tried variations on the theme (quoted form, different file locations, etc.) all without success. So... what I am doing wrong?

Thanks in advance,
Matt Strange
Autograph Systems
www.autographsystems.com


_______________________________________________ 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: 'do shell script' error has me stumped
      • From: "Mark J. Reed" <email@hidden>
    • Re: 'do shell script' error has me stumped
      • From: Philip Aker <email@hidden>
  • Prev by Date: Mystery Dialog
  • Next by Date: Re: 'do shell script' error has me stumped
  • Previous by thread: Mystery Dialog
  • Next by thread: Re: 'do shell script' error has me stumped
  • Index(es):
    • Date
    • Thread