Re: whose class is folder...
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