• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newly bust in OSX: ":" as alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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...


  • Prev by Date: Re: Entourage Question
  • Next by Date: Re: Entourage Question
  • Previous by thread: Newly bust in OSX: ":" as alias
  • Next by thread: itunes2 and applescript
  • Index(es):
    • Date
    • Thread