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: Daniel Gobera <email@hidden>
- Date: Sat, 3 Mar 2007 23:23:51 -0800
I also tried something like that. However I couldn't find a way to
tell which items are selected (for other than the front window),
something critical to my application. It gives you the URL, dates,
size, comments, and all possible information about the file, but not
something as simple as a "selected" attribute (did I miss it?). For
now I think I'll use the Accessibility approach and try to plan for
as many different cases as possible.
It would make sense to have an "Items" attribute for finder windows
(probably as LinkedUIElements). How can an assistive application tell
a person the list of files in a window? It's true that Accessibility
is designed to get information about what is currently being
displayed, but there are actually some examples where it makes
available more information, like each item's URL.
Daniel
On Mar 3, 2007, at 8:06 AM, John Louch wrote:
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 (Accessibility-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
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