Solved

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error received then I try to empty my trash bin on my Mac 5 47
Reset MacBook Air to factory settings 2 32
Thoughts on PC Doctor 11 47
facebook change 4 36
This article will cover some tips for successfully installing the new update to OS X; 10.5.7. Although the information contained within could be used for any OS X point release.  Please note that this information applies to point releases to a parti…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
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 …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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