Question

I have just uninstalled a program from my new mac. The program was making itself default to open all .r files. I installed a new program, and I maked it default for opening .r files, but the old icon of the files remains. The icon of the old program is stil at every .r-files.

How can I update the icons of the .r-files, so they view the icons of the new program? And why do this icon still exist at my mac, can I remove the icon of the old program?

Was it helpful?

Solution

You can try to rebuild LaunchServices database from Terminal:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Path to lsregister on Mavericks is:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister

OTHER TIPS

For Yosemite 10.10.4 use:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user

On macOS Sierra 10.12.1 the lsregister solution provided by @Mateusz Szlosek hasn't worked.

But this solution worked: Reset icon cache on MacBook

Nevertheless, changing the default application for a file type via Finder's "Open with…" causes no immediate refresh of icons on the Desktop and in the Finder windows. This is a bug.


Some criticism at the end: As a long time Apple user I always preferred the instant feedback and GUI refresh of macOS as opposed to Windows, where you had and still have to do a lot of manual refreshing & more burdens/precaution for the user due to a lack of cross process sync/awareness (i.e. renaming a file in Explorer while it is open in another app, will cause you problems, still in 2016).

Instant cross process interaction of all stock apps and all apps using standard frameworks is what's so fine on the Mac, i.e. Re-enabling a network interface and Safari automatically loads the content of an idle browser tab, Renaming a file in Finder while it was opened hassle free, Changing an icon and its updated in every view instance (Finder, file dialog of apps, icon in app's title bar), etc.

Hate to see these qualities vanishing. Apple clearly neglects its professional Mac users over its iOS users and their Cloud services. With iCloud Apple perfects cross device sync but does not deliver the perfect synchronism within the Mac as it once did.

the above solution didn't worked for me ... so this is what I have tried and it worked ... I am explaining this here because if the above solution is not working for someone then he/she can just reboot their mac in Safe Mode login and then shutdown and boot in to normal mode ... Problem solved :)

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top