How To: Restore Mavericks folder icons

Discussion in 'OS X Yosemite (10.10)' started by w0lf, Aug 18, 2014.

  1. w0lf, Aug 18, 2014
    Last edited: Oct 18, 2014

    w0lf macrumors 65816

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #1
    Since so many people seem to hate the new ones I wrote a script to install the old folder icons in Yosemite. This is mainly for those who are not tech savvy or just didn't have a copy of the old CoreTypes bundle.

    Link : Download

    What it looks like :

    [​IMG]

    Code :
    Code:
    #!/bin/bash
    
    # -- Information --
    # Maintained By : Wolfgang Baird
    # Version : 1.0.1
    # Updated : Aug / 18 / 2014
    
    scriptDirectory=$(cd "${0%/*}" && echo $PWD)
    old_icons="$scriptDirectory"/icons
    
    clear
    echo -e "-- Information --\n\
    Maintained By : Wolfgang Baird\n\
    Version : 1.0.0\n\
    Updated : Aug / 18 / 2014\n\n\
    This script requires that you enter your password to continue"
    sudo -v
    clear
    echo -e "Checking for backup."
    if [[ ! -e /System/Library/CoreServices/.CoreTypes.bundle.old ]]; then
    	echo -e "No backup detected...\n"
    	echo -e "Backup existing CoreTypes bundle."
    	sudo cp -rf /System/Library/CoreServices/CoreTypes.bundle  /System/Library/CoreServices/.CoreTypes.bundle.old
    	echo -e "Moving new files."
    	sudo cp -rf "$old_icons"/ /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
    else
    	echo -e "Backup detected!/n"
    	echo -n "Would you like to restore from it now? (y/n): "
    	read res_me
    	if [[ $res_me = "y" ]]; then
    		echo -e "Replacing CoreTypes bundle with backup"
    		sudo rm -rf /System/Library/CoreServices/CoreTypes.bundle
    		sudo mv /System/Library/CoreServices/.CoreTypes.bundle.old /System/Library/CoreServices/CoreTypes.bundle
    	else 
    		exit
    	fi
    fi
    
    echo -e "Clearing icon caches."
    sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
    sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;
    sudo rm -r /Library/Caches/com.apple.iconservices.store
    #sudo mv /Library/Caches/com.apple.iconservices.store com.apple.ic
    
    # Prompt for reboot
    echo -e "Done!"
    echo -e "Now all you need to do is reboot for changes to take effect.\n"
    echo -n "Would you like to reboot now? (y/n): "	
    read rb_now
    if [[ $rb_now = "y" ]]; then sudo reboot; fi
    
     
  2. woodenbrain, Oct 17, 2014
    Last edited: Oct 17, 2014

    woodenbrain macrumors member

    Joined:
    Sep 2, 2009
    #2
    Doesn't work on Yosemite 10.10.0, but…

    Count me among the haters of the Microsoft blue.

    This application does not seem to work on Yosemite 10.10 (release). It bounces and opens a terminal window but nothing further. (Effort appreciated anyway).

    However, looking at the script itself, and using the resources in your package, I can achieve the intended effect. You could do pretty much do this without knowing terminal. What you're doing is just replacing .icns files after making a backup of their containing bundle, clearing system icon caches, and rebooting.

    The process would be more or less as follows:

    1. show package contents on the downloaded "YCF" file from above. Navigate to Contents>Resources>icons. *

    2. open another Finder window and use the "Go To Folder" command to go to:
    /System/Library/CoreServices/

    3. Backup the file: CoreTypes.bundle (put the backup anywhere safe, including that directory with another name, indicating it is the original 10.10 bundle. wolf's script makes it an invisible file called ".CoreTypes.bundle.old")

    4. show package contents on that file and navigate to Contents>Resources/

    5. copy the desired icon replacements from Step 1 to replace equivalents in Step 4.

    6. clear icon caches. there are cache cleaning utilities that can do this, or you can copy and paste into terminal the 3 lines under 'echo -e "Clearing icon caches."' one at a time. **

    7. reboot.

    You'll need to authenticate a lot. To restore, just delete the entire CoreTypes.bundle file and replace with backup. Clear icon caches same way and reboot.

    * If you have access to a 10.9.x system, you could instead get the .icns resources from the CoreTypes.bundle on that system.

    ** note the second command generated an error for me, but didn't seem to matter.
     
  3. Regbial macrumors 6502

    Regbial

    Joined:
    Jul 10, 2010
    #3
    I thought you'd be the guy with the Superman avatar around here. LOL cool wallpaper
     
  4. w0lf thread starter macrumors 65816

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #4
    Did you read the terminal window? That's what it's supposed to do.
     
  5. GrumpyTrucker macrumors 6502a

    Joined:
    Jun 1, 2014
    #5
    w0lf - don't suppose there'd be a way to incorporate this as a setting in cDock? That'd be handy :)
     
  6. adarkenigma macrumors newbie

    Joined:
    Sep 11, 2010
  7. ThemacNub macrumors regular

    Joined:
    Aug 26, 2010
    Location:
    Australia
    #7
    How do I go about reverting to the original icons if Apple releases an update that tones down the blue?
     
  8. ricede macrumors regular

    ricede

    Joined:
    Aug 16, 2010
    Location:
    Inside
    #8
    Thanks so much for that w0lf. You are are star :)
     
  9. Lucianrider macrumors member

    Joined:
    Jan 1, 2012
    Location:
    St. Lucia, West Indies
    #9
    It worked nicely for me on 10.10, I was a little concerned because it threw a few lines about not finding certain files but after reboot the old icons are back, unfortunately the Parallels Applications icon is the new one still....

    If I want to go back is the app file just run again??

    Thanks Wolf!!
     
  10. HenryH, Oct 24, 2014
    Last edited: Oct 25, 2014

    HenryH macrumors newbie

    Joined:
    Dec 14, 2010
    #10
    Thanks guys. I can relax again now.

    For those who what to change individual App icons back also and have a backup of your old OS around, I wrote a script to do that for yous (and me), with some help from Wolfgang's script above.

    You can download the script from here.

    The script goes through every App in your old OS's Applications folder and if the same App exists in your current Applications folder it will replace any icons it finds in it with the old ones. It does not create a backup, but does ask for confirmation of each overwrite.
     
  11. Orlandoech macrumors 68040

    Orlandoech

    Joined:
    Jun 2, 2011
    Location:
    Salt Lake City, UT
  12. HenryH, Oct 24, 2014
    Last edited: Oct 25, 2014

    HenryH macrumors newbie

    Joined:
    Dec 14, 2010
    #12
    To replace the finder icons also...

    Edit: I've removed the code - its all available in the new script instead.
     
  13. HenryH, Oct 25, 2014
    Last edited: Oct 25, 2014

    HenryH macrumors newbie

    Joined:
    Dec 14, 2010
    #13
    Below are more terminal commands for restoring the old Dock icons including the Trash Can.

    Edit: I've removed the code - its all available in the new script instead.
     
  14. HenryH macrumors newbie

    Joined:
    Dec 14, 2010
    #14
    The script above now replaces the folder icons, app icons, finder icon and dock icons, all in one, without backing up anything, but requiring confirmation of all actions.

    The last major thing that needs to be done IMO is the ugly flat maximize, minimize and close buttons, but I can't figure out how to do this yet. Any ideas anyone?
     
  15. daverose1, Oct 27, 2014
    Last edited: Oct 27, 2014

    daverose1 macrumors newbie

    Joined:
    Mar 18, 2011
    #15
    Thanks Henry - worked for me - appreciated. And it was nice at the end to have a choice which icons could be restored to Mavericks and which you wanted to keep as per Yosemite.
     
  16. HaruAoki macrumors member

    HaruAoki

    Joined:
    Oct 14, 2014
    Location:
    Australia
    #16
    You can also use a software called "LiteIcon" it allows you to change all icons on the computer and with a click of the button change them back.
     
  17. snail22 macrumors newbie

    Joined:
    Aug 7, 2012
  18. Razer(x) macrumors regular

    Razer(x)

    Joined:
    May 7, 2014
  19. w0lf thread starter macrumors 65816

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #19
    Run it again and choose to restore from the backup.
     
  20. usego macrumors newbie

    Joined:
    Aug 18, 2014
    #20
    Hi

    thats what i search but unter 10.02 it wont work ! the script run and after choising Reboot the hole system crash stop reply no more thin g can be sone i have to push teh Power button !!

    is there also a cashe for dock icons to Make it back to MArvericks ?

    thanks a lot
     
  21. w0lf thread starter macrumors 65816

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #21
    Not sure I quite understand what you're asking/saying.
     

Share This Page