• 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: Finder selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder selection


  • Subject: Re: Finder selection
  • From: Emmanuel <email@hidden>
  • Date: Mon, 14 Mar 2005 12:07:10 +0100

At 11:08 AM +0100 3/14/05, Brennan wrote:

The Finder selection is a strange beast. I wish to use it often, and then am confounded by the inscrutable results.

It appears to be a list, but isn't. I've learned that, regardless of how
many items are selected:

(count selection)    -- always returns 0
(files of selection) -- always returns {}
(items of selection) -- always returns {}

I'm not sure whether this is obvious to you, but you are counting a property of Finder, not a list. You've got to force evaluation. (count (get selection)), etc.


If you feel like you can use some help on that, why not visit our page on the topic.
<http://www.satimage.fr/software/en/gotchas.html>


Emmanuel
Satimage-software
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Finder selection (From: Brennan <email@hidden>)

  • Prev by Date: Finder selection
  • Next by Date: Re: Finder selection
  • Previous by thread: Finder selection
  • Next by thread: Re: Finder selection
  • Index(es):
    • Date
    • Thread