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