Re: Get current working directory
Re: Get current working directory
- Subject: Re: Get current working directory
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 2 Oct 2005 16:49:42 -0400
On 10/2/05, Gary (Lists) <email@hidden> wrote:
> Well, you must mean "in the shell, via AppleScript" because AS does not have
> "working directories".
C'est impossible. Every single process that ever runs in OS X has a
current working directory defined at all times. AppleScript may not
provide any means to find out what that is for the AS interpreter
process, but that doesn't change the fact that it's there.
If you coerce a relative path to an alias in AS, what does it use as
the containing folder? Is it always the root of the hard disk? Or
the folder containing the script? Or does it depend on the
interpreter (osascript vs Script Editor vs Smile vs Folder Actions . .
.). I'd guess the latter, and I further assume that folder actions
run with the cwd set to the folder to which the actions are attached .
. .
--
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:
This email sent to email@hidden