• 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 10:26:33 +1000

On 7 Apr 2018, at 10:16 am, Jean-Christophe Helary
<email@hidden> wrote:
>
> But I tried the same with selection only and I don't get any closer.

"selection" is a property, not a collection. Something like "files" or "items"
is a collection.
>
> I guess I must transform the contents of selection into a "collection" of
> Finder items, but I have no idea where to start from.

It doesn't work that way, either. Whose clause filtering is done as part of the
fetching. When you say "files of someFolder whose ...<whatever>", you're
telling the Finder to do the filtering and return the filtered list.

You're (understandably) thinking of it in terms of object-oriented code. But in
this case it's a facade: it's really more akin to a Web query.

--
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>)
 >Re: whose class is folder... (From: Shane Stanley <email@hidden>)
 >Re: 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