• 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
Works in Terminal, not as "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Works in Terminal, not as "do shell script"


  • Subject: Works in Terminal, not as "do shell script"
  • From: Rob Lewis <email@hidden>
  • Date: Sun, 4 Apr 2010 07:34:59 -0700

Could someone please explain why this works fine in Terminal: 

     /usr/bin/which exiftool

returning the correct path: /opt/local/bin/exiftool

while in AppleScript, this: 

     do shell script "/usr/bin/which exiftool"

returns: error "The command exited with a non-zero status." number 1

Other shell commands like "ls" work OK. 
And this works too: 

     do shell script "which which"

returning: "/usr/bin/which"

The exiftool command is installed and works when invoked with /opt/local/bin/exiftool
???
 _______________________________________________
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: Works in Terminal, not as "do shell script"
      • From: Axel Luttgens <email@hidden>
    • Re: Works in Terminal, not as "do shell script"
      • From: Doug McNutt <email@hidden>
    • Re: Works in Terminal, not as "do shell script"
      • From: James Bensley <email@hidden>
  • Prev by Date: Re: Pages and Applescript
  • Next by Date: Re: Works in Terminal, not as "do shell script"
  • Previous by thread: Re: Index a given folder
  • Next by thread: Re: Works in Terminal, not as "do shell script"
  • Index(es):
    • Date
    • Thread