• 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: Jean-Christophe Helary <email@hidden>
  • Date: Sat, 07 Apr 2018 09:39:49 +0900


> On Apr 7, 2018, at 9:26, Shane Stanley <email@hidden> wrote:

>> 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.

I'm not sure I was thinking in terms of OOC, but I had understood that
selection was a property and I was just trying things :)

Ok, since I need a collection that includes the selected items in the front
window, I can start by the window, then it's target (and that won't work if the
window is a search window) then its items but then I'd like to have a
"selected" property for the items and I don't see one...

So I'm kind of stuck aren't I ?


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