• 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: Name of this folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of this folder


  • Subject: Re: Name of this folder
  • From: "Arthur J Knapp" <email@hidden>
  • Date: Mon, 12 Mar 2001 11:48:36 -0500

> Date: Sun, 11 Mar 2001 12:36:23 -0600
> Subject: Re: Name of this folder
> From: Bryan Harris <email@hidden>

>> Explanation:
>>
>> ":" as alias
>>
>> retuns the path to the container of the script. Note this is a 'trick' you
>> won't find in the dictionary. In fact, I don't understand it myself. Just
>> something some clever dude figured out ;)

It returns an alias to the folder containing the script "runner". When\
run from a script editor, the path will be to the script editor's folder.
Once saved as a script application, it should return an alias to the folder
containing the script itself.


> This just returns "Applescript" for me. Does it only work when running from
> other apps?

Just "AppleScript"? If you're testing it with Apple's Script Editor,
you should get a full alias like:

":" as alias

-- > alias "MacHD:Apple Extras:AppleScript:Script Editor:"

"::" as alias

-- > alias "MacHD:Apple Extras:AppleScript:"

":::" as alias

-- > alias "MacHD:Apple Extras:"


Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden

Hey, check out:
http://www.AppleScriptSourceBook.com


  • Follow-Ups:
    • Re: Name of this folder
      • From: Sander Tekelenburg <email@hidden>
  • Prev by Date: Re: TIDs case insensitive?
  • Next by Date: Re: Name of this folder
  • Previous by thread: Re: Name of this folder
  • Next by thread: Re: Name of this folder
  • Index(es):
    • Date
    • Thread