Solved

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

Posted on 2010-09-08
2
1,038 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built onto of the OSX Server NetBoot system and uses images & workflows as its core assets. While work…
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 …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

624 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