• 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
Re: Do shell script vs terminal discrepancy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Do shell script vs terminal discrepancy
      • From: Paul Scott <email@hidden>
References: 
 >Re: Do shell script vs terminal discrepancy (From: airdrummer <email@hidden>)
 >Re: Do shell script vs terminal discrepancy (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Do shell script vs terminal discrepancy
  • Next by Date: Re: Do shell script vs terminal discrepancy
  • Previous by thread: Re: Do shell script vs terminal discrepancy
  • Next by thread: Re: Do shell script vs terminal discrepancy
  • Index(es):
    • Date
    • Thread