Re: Finder selection
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