Re: Get the list of Places in Finder?
Re: Get the list of Places in Finder?
- Subject: Re: Get the list of Places in Finder?
- From: has <email@hidden>
- Date: Wed, 18 Mar 2009 18:28:18 +0000
Oleg Krupnov wrote:
I wonder if there is a programmatic way in Cocoa to get the list of
"Places" from the left panel of Finder? (by default populated with
Documents, Desktop, Home, Application, but can be customized with drag
and drop). Thanks!
There's no public API, unfortunately. You could try scraping Finder's
preferences file (this info must be stored somewhere, most likely as
serialised AliasHandles), or manipulating its GUI via the
Accessibility APIs/GUI Scripting. Both would be hacks, however, and
prone to breakage, so YMMV.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden