Solved

How can I force the OS X Dock to reload an icon without using killall Dock?

Posted on 2010-09-08
2
1,030 Views
Last Modified: 2013-11-12
If you change the icns file in an application via MyApp/Contents/Resources/app.icns the icon for MyApp updates in Finder immediately but the corresponding icon in the Dock does not.

How can I update the dock icon using the command line or Java code so that the new icon is used, without reloading the dock by the killall Dock command? Using killalll Dock makes it very visible.

Is there Dock cache somewhere I can clear, or something else I can do?

I have an installer for my application and the installer changes the icon but the dock icon doesn't change unless the user clicks on the dock icon.
0
Comment
Question by:ctangent
2 Comments
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33627323
Reloading the dock is the only way to do what you are wanting to accomplish.  When installing any applications that modify the contents of the dock, it is how they do it (like Microsoft Office and Adobe Creative Suite).

The problem is that the dock content is loading into memory and even if you cleared some file cache (though I don't believe there is one), it wouldn't be updated until you flushed out what was in memory.  The only way to do that is to reload the dock.
0
 

Author Closing Comment

by:ctangent
ID: 33629440
Thank you very much for the quick reply!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The error "There was an error performing the update" occurred on a Mac OS X client workstation running  Symantec AntiVirus for Mac (http://www.symantec.com/business/products/purchasing.jsp?pcid=pcat_security&pvid=825_1) - the Enterprise product vers…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question