Re: do shell script "command not found"
Re: do shell script "command not found"
- Subject: Re: do shell script "command not found"
- From: Axel Luttgens <email@hidden>
- Date: Mon, 21 Sep 2009 08:10:19 +0200
Le 21 sept. 2009 à 07:12, Paul Scott a écrit :
On Sep 20, 2009, at 9:52 PM, Rounak Jain wrote:
That answers Question 1. This works:
do shell script "/usr/local/bin/7za"
What is the default path?
Technical Note TN2065 is a must read for anyone using "do shell
script".
http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
And, since experimentation is always worth a try:
do shell script "echo $PATH"
That said, it is often safer not to rely on implementation details; in
this precise case, using absolute paths to binaries always is a good
idea.
HTH,
Axel _______________________________________________
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