Re: Do shell script vs terminal discrepancy
Re: Do shell script vs terminal discrepancy
- Subject: Re: Do shell script vs terminal discrepancy
- From: Paul Skinner <email@hidden>
- Date: Fri, 04 Dec 2009 19:59:04 -0500
In Applescript:
do shell script "echo $PATH"
-->"/usr/bin:/bin:/usr/sbin:/sbin"
do shell script "which convert"
-->ERROR: The command exited with a non-zero status.
in terminal:
-bash-3.2$ echo $PATH;which convert
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin:/usr/X11/bin:/Users/paul/bin/:/Users/paul/.gem/ruby/1.8/bin
/opt/local/bin/convert
Paul
On Dec 4, 2009, at 7:50 PM, Paul Skinner wrote:
do shell script "which convert"
-->The command exited with a non-zero status.
hmmm
On Dec 4, 2009, at 3:54 PM, airdrummer wrote:
the other thing to check is your path to convert: the a/s
environment may be different from the terminal's. what does
do shell script 'which convert'
return, and is it the same in terminal?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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