• 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
whose class is folder...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

whose class is folder...


  • Subject: whose class is folder...
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Sat, 07 Apr 2018 06:49:04 +0900

I'm having issues understanding basic filtering it seems:

tell application "Finder"
        class of item 1 of (selection as list)
end tell

this returns folder
(if I select a folder, that is)

but if I do

tell application "Finder"
        item of (selection as list) whose class is folder
end tell

I get a "can't get item of {...}" -1,728 error...


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: whose class is folder -- and Filtering AppleScript List Objects
      • From: Christopher Stone <email@hidden>
    • Re: whose class is folder...
      • From: Shane Stanley <email@hidden>
    • Re: whose class is folder...
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: insertion location...
  • Next by Date: Re: Finder's "insertion location"
  • Previous by thread: Re: insertion location...
  • Next by thread: Re: whose class is folder...
  • Index(es):
    • Date
    • Thread