Re: alias is folder?
Re: alias is folder?
- Subject: Re: alias is folder?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 26 Apr 2003 17:34:05 -0700
On 4/26/03 5:14 PM, "matt neuburg" <email@hidden> wrote:
>
Given an alias, what's the best way to ask the Mac OS X Finder whether
>
it's a folder? Thx - m.
set filePath to someAlias as Unicode text
tell application "Finder"
exists (folder filePath)
end tell
or in one line:
tell application "Finder" to exists (folder (someAlias as Unicode text))
Another way:
tell application "Finder" to (kind of item (someAlias as Unicode text))
--> "Folder"
or
tell application "Finder" to (kind of item (someAlias as Unicode text) is
"Folder")
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.