'do shell script' error has me stumped
'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