Re: "do shell script" into directory with a dot
Re: "do shell script" into directory with a dot
- Subject: Re: "do shell script" into directory with a dot
- From: "Steven D. Majewski" <email@hidden>
- Date: Thu, 24 May 2007 11:19:35 -0400
On May 24, 2007, at 11:01 AM, Doug McNutt wrote:
set scr to quoted form of "/usr/bin/perl /Volumes/Echo/
Documents/.fun/myperlcode.pl"
do shell script scr
Fails complaining "no such file or directory"
The command works fine in a BBEdit worksheet or in Terminal.app.
Fails if presented as an osasrcipt.
I think you need to take out the "quoted form of" --
that is making the shell look for a command with the name of
'/usr/bin/perl /Volumes/Echo/Documents/.fun/myperlcode.pl'
rather than running /usr/bin/perl with the argument of: /Volumes/Echo/
Documents/.fun/myperlcode.pl
If you type 'ls .' ( including the quotes ) in Terminal.app you'll
get an error too.
Although, on 10.4.x, I get a different error message:
sdm7g$ 'ls .'
-bash: ls .: command not found
-- Steve Majewski
_______________________________________________
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