Re: Newly bust in OSX: ":" as alias
Re: Newly bust in OSX: ":" as alias
- Subject: Re: Newly bust in OSX: ":" as alias
- From: Charles Arthur <email@hidden>
- Date: Sat, 3 Nov 2001 22:53:35 +0000
On Sat, 03 Nov 2001 17:27:05 +1100, David Lloyd <email@hidden> wrote:
re..
>
> Newly bust in OSX: ":" as alias (Charles Arthur)
>
>
It has indeed broken, 3":" as alias2 was truly useful.
>
>
So I've gone back to..
>
>
copy (path to me as string) to pathToMe
>
set AppleScript's text item delimiters to ":"
>
copy text items 1 thru -2 of pathToMe as string to pathToContainer
>
set applescript's text item delimiters to ""
>
>
... to get the path name of the container.
>
>
Oh well.
Don't be downhearted. A mysterious but smart person emailed me with the
following, which is very fast and a single line (though invoking the Finder
is necessary because of the "container" statement:
"It does work. Try this:
tell application "Finder" to set x to container of (path to me)
activate
display dialog (x as string)
The --":" as alias-- is broken and I advise you stop using it altogether - even
in OS 9 apps."
I've tried it and hey, it works across the divide.
Charles, relieved.
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...