Re: How to know which items are selected in the Finder?
Re: How to know which items are selected in the Finder?
- Subject: Re: How to know which items are selected in the Finder?
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 29 May 2006 12:59:34 -0400
- Thread-topic: How to know which items are selected in the Finder?
on 2006-05-29 10:39 AM, David Niemeijer at email@hidden wrote:
> I need to keep track of what items(s) are selected in the Finder as
> the user navigates around with the tab and cursor keys. Which
> notifications should I ask for an on which elements. I am a bit at
> loss here. When an AXBrowser gets focus, how to know what is
> currently selected and how to observe changes of the selection in
> that browser?
If you register to observe the root application element, you receive
notifications for every UI element in the application. This is intended to
make it easy to monitor all of the application's UI elements at once,
without having to register to observe each element separately.
But that doesn't answer the heart of your question, which is What
notification to monitor? I'm finding that the Finder is very buggy with
regard to accessibility. Once a Finder window is in browser mode, changing
the selection does NOT issue Focused UI Element Changed notifications --
this actually isn't a bug, though, because the Assitive Applications release
note explains that the only UI elements that can receive focus are those
that are settable. However, the Selected Children Changed notification is
quite reliable for Finder browser view navigation. In table views, you might
want to try Selected Rows Changed and Selected Columns Changed. Some of
these are new in Tiger.
In general, the best (and only practical) way to explore and experiment with
notifications is to use PreFab UI Browser's Notifications drawer to register
notifications, then open its Notification Log window to watch the
notifications roll in in real time. You can learn a lot about how
notifications actually work this way, and see the differences among
different target applications. Go to <http://www.prefab.com/uibrowser/> to
download a free 30-day trial version.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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