Works in Terminal, not as "do shell script"
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