• 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: 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!"


  • Follow-Ups:
    • Re: Name of this folder
      • From: Bryan Harris <email@hidden>
References: 
 >Name of this folder (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Name of this folder
  • Next by Date: Re: [OT] CarbonLib & AppleWorks bugs
  • Previous by thread: Re: Name of this folder
  • Next by thread: Re: Name of this folder
  • Index(es):
    • Date
    • Thread