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

Re: whose class is folder...


  • Subject: Re: whose class is folder...
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 07 Apr 2018 09:48:57 +1000

On 7 Apr 2018, at 7:49 am, Jean-Christophe Helary
<email@hidden> wrote:
>
> 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...

I suspect you mean "item 1 of..." or "items of...".

Whose clauses filter collections of elements. The selection property returns a
list, but is not itself a collection.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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...
      • From: Jean-Christophe Helary <email@hidden>
References: 
 >whose class is folder... (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: Re: whose class is folder...
  • Next by Date: Re: whose class is folder...
  • Previous by thread: Re: whose class is folder...
  • Next by thread: Re: whose class is folder...
  • Index(es):
    • Date
    • Thread