Solved

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

Posted on 2010-09-08
2
1,018 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

With the major release of Apple's 7th addition to the Mac OS X family, Mac OS X 10.6 Snow Leopard, there are a lot of enhancements which have arrived with this new OS X upgrade. With the number of enhancements and refinements I can provide deta…
Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now