Re: no such file or directory:
Re: no such file or directory:
- Subject: Re: no such file or directory:
- From: John W Baxter <email@hidden>
- Date: Wed, 20 Mar 2002 07:56:17 -0800
At 22:40 -0500 3/19/2002, Richard Brosnahan wrote:
>
Sorry if this has been discussed before. My search found lots of references
>
to do shell script, but none that addressed this issue.
>
>
When trying to execute a shell script called doIt, with
>
do shell script "/doIt"
>
I see this error
>
zsh: no such file or directory: /doIt
>
doIt is at the root of the machine. Copying the path with BBEdit's info
>
command confirms this. Using Volumes/Disk Name/doIt does not help.
do shell script "/doit"
works for me, producing
"I'm working."
which is what it is supposed to do. Mac OS X 10.1.3 WITHOUT the beta of
the new AppleScript, but with the December developer tools.
Aside:
The top level of the file system is not a good place to do this sort of
thing. Try using /tmp (/private/tmp) instead for temporary play things,
and perhaps make a folder inside /Users/Shared for stuff you want to keep.
In a proper Unix environment, you couldn't put the file in / except as root
(I've made mine "proper" to keep sendmail happy...I set it back to Apple's
improper form before running installers, some of which fail without the
ability to write in the / directory).
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.