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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to