Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read Dock Information OSX?

I am trying to read information about the dock and retrieve the applications and their positions on the dock.

Can anyone give me a pointer on how to do this?

Edit: From ~/Library/Preferences/com.apple.dock.plist, I can get all information related to static(fixed) apps and folder but not about launched and minimized application tiles.

For launched apps, we can use NSWorkspace.

Big question is still minimized application tiles?

like image 975
RLT Avatar asked Apr 11 '12 16:04

RLT


1 Answers

~/Library/Preferences/com.apple.dock.plist has information about which applications are displayed in the Dock. However, it only lists which ones are permanently stored there--not any other applications that may be open.

like image 76
Isabel Avatar answered Oct 27 '22 06:10

Isabel