• 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: Bill Briggs <email@hidden>
  • Date: Sun, 11 Mar 2001 12:46:30 -0400

At 11:07 AM -0500 11/03/01, Robert Poland wrote:
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.

Here's the long winded form, so you can see what the steps are:

tell application "Finder"
set theFolder to container of (path to me)
set theFolderName to name of theFolder
display dialog theFolderName
end tell

And here's the short form:

tell application "Finder"
display dialog (name of container of (path to me))
end tell

- web


References: 
 >Name of this folder (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Move aFile to aFolder with replacing ???
  • Next by Date: Re: Name of this folder
  • Previous by thread: Name of this folder
  • Next by thread: Re: Name of this folder
  • Index(es):
    • Date
    • Thread