• 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: alias is folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: alias is folder?
      • From: John Delacour <email@hidden>
  • Prev by Date: alias is folder?
  • Next by Date: Re: Scripting Terminal.app
  • Previous by thread: alias is folder?
  • Next by thread: Re: alias is folder?
  • Index(es):
    • Date
    • Thread