Re: Name of this folder
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