Re: Get list of Finder items in a window
Re: Get list of Finder items in a window
- Subject: Re: Get list of Finder items in a window
- From: John Louch <email@hidden>
- Date: Sat, 03 Mar 2007 08:06:21 -0800
- Thread-topic: Get list of Finder items in a window
tell application "Finder"
set x to {}
repeat with i in Finder windows
set x to x & items of i
end repeat
x
end tell
> Thanks for the response. That's what I imagined.
>
> Does anyone have a suggestion of a better way to get the list of
> selected items of all Finder windows?
>
> Daniel
>
>
> On Mar 3, 2007, at 2:02 AM, Bill Cheeseman wrote:
>
>> on 2007-03-03 2:11 AM, Daniel Gobera at email@hidden wrote:
>>
>>> I need to get the list of Finder windows (that works). For each
>>> window I would like to get the list of items it contains. Is there a
>>> consistent way to do this? It seems like the path to follow depends
>>> on the configuration of each window (icon/list/columns view, with
>>> toolbar, with side bar, etc.), which makes this approach really
>>> fragile.
>>
>> One of the key things to remember about the Accessibility API is
>> that it is
>> intended to reflect the GUI. It is not written as a general-purpose
>> API for
>> getting at the innards of applications. This is because its goal is to
>> enable disabled users to work with the computer as nearly as
>> possible the
>> way non-disabled users do. Thus, when the GUI shows the icon view of a
>> window, that's what the Accessibility API will give you, and when
>> the GUI
>> shows the list view, that's what the Accessibility API will give
>> you. When
>> you use the Accessibility API to get at something other than the
>> GUI of an
>> application, you have to accommodate these restrictions.
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Accessibility-dev mailing list (Accessibility-
>> email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> 40gmail.com
>>
>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Accessibility-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--------------------------------------------------
John Louch Internet #: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden