Re: [late reply] Re: Parameters for "path to" Command
Re: [late reply] Re: Parameters for "path to" Command
- Subject: Re: [late reply] Re: Parameters for "path to" Command
- From: Christopher Nebel <email@hidden>
- Date: Fri, 23 Aug 2002 15:08:26 -0700
On Tuesday, August 20, 2002, at 01:44 AM, Paul Berkowitz wrote:
On 8/20/02 1:31 AM, "Nigel Garvey" <email@hidden>
wrote:
What does work for me is:
file ":" as file specification as string -- NB 'file'
I've no idea if this works in 10.
It works in AS 1.8.3 here in OS X. It didn't work in some earlier
versions,
I seem to recall.
AppleScript 1.7 had a number of bugs related to partial HFS paths.
They're supposedly fixed in 1.8.3; if anyone has counter-examples,
please file bugs.
But
alias ":" as string
now returns the name of your startup disk here, not the container path
of
'me', presumably on the basis that ":" is equivalent to the POSIX path
"/".
In fact, HFS ":" is equivalent to POSIX ".", i.e., the current
directory. Of course, the idea of a current directory was never very
well defined in Mac OS because it wasn't relevant, which is why I don't
trust this technique any further than I can throw it. Why 'alias ":"'
should produce a different place than 'file specification ":"' is a
mystery to me at the moment; I've filed a bug.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.