Re: Do shell script vs terminal discrepancy
Re: Do shell script vs terminal discrepancy
- Subject: Re: Do shell script vs terminal discrepancy
- From: Paul Scott <email@hidden>
- Date: Fri, 04 Dec 2009 17:13:32 -0800
Perhaps this might work. Install this content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MAGICK_HOME</key>
<string>/opt/local/bin/</string>
<key>PATH</key>
<string>/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
</string>
</dict>
</plist>
into .MacOSX/environment.plist in your home directory (note leading period).
Paul Skinner wrote:
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
_______________________________________________
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