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: "Mark J. Reed" <email@hidden>
- Date: Thu, 24 May 2007 11:23:14 -0400
Applescript has nothing to do with it; it couldn't discriminate
against hidden directories like that if it wanted to.
The problem is the "quoted form". By quoting the entire command
string in one go, you turn the whole thing into one big command name;
the shell is looking for some executable named "/usr/bin/perl
/Volumes/Echo/Documents/.fun/myperlcode.pl", and since the "perl "
subdirectory of /usr/bin doesn't exist, it gives up.
Use quoted form for individual arguments before appending them to a
shell command string. Don't use it for the whole command string
itself.
On 5/24/07, Doug McNutt <email@hidden> 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.
Does AppleScript discriminate against hidden directories? The directory .fun has permissions set to 700, but I am the owner and executor of the "do shell script". The volume Echo has a case sensitive file system. I'm using OS 10.3.9 because I MUST be able to use my SE/30 file server for a few more years.
Do I need to "tell" someone what I want to do?
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
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
--
Mark J. Reed <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