Re: Name of this folder
Re: Name of this folder
- Subject: Re: Name of this folder
- From: Sander Tekelenburg <email@hidden>
- Date: Sun, 11 Mar 2001 18:19:30 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 11:07 -0500 UTC, on 11/03/2001, Robert Poland wrote:
>
Hi,
>
>
Someday I'll be able to find commands on my own, I hope.
>
>
I'm trying to write a script that will get the name of the folder
>
it's placed in so I won't have to enter it manually.
>
>
The name command just gets me "Finder" and not the folder I have open.
tell app "Finder"
set myContainer to name of (":" as alias)
end
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 ;)
HTH
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBOquzlusywKfXgqKdEQJc9wCfYHyXEfF4Kinh38wkYbpK9E0ZNKcAoKz0
I9rd7bEGmtup/rgVRxpQpXNK
=PNrn
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <
mailto:email@hidden>
Web site at <
http://www.euronet.nl/~tekelenb/>
Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"