#!/bin/bash
clear
echo
while true
do
  read -p 'Use the Aqua icon theme? (Enter yes or no, then authenticate)' answer
  case $answer in
   [yY]* )
echo
cd "$(dirname "$0")"
sudo rm -rf /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
sudo mv -f /System/Library/CoreServices/CoreTypes.bundle/Contents/Resourcesoriginal /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
sudo mv -f /System/Library/CoreServices/Dock.app/Contents/Resources/finderoriginal.png /System/Library/CoreServices/Dock.app/Contents/Resources/finder.png
sudo mv -f /System/Library/CoreServices/Dock.app/Contents/Resources/trashemptyoriginal.png /System/Library/CoreServices/Dock.app/Contents/Resources/trashempty.png
sudo mv -f /System/Library/CoreServices/Dock.app/Contents/Resources/trashfulloriginal.png /System/Library/CoreServices/Dock.app/Contents/Resources/trashfull.png
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/Resources/burnableFolderOriginal.icns /System/Library/CoreServices/Finder.app/Contents/Resources/burnableFolder.icns
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/Resources/FinderOriginal.icns /System/Library/CoreServices/Finder.app/Contents/Resources/Finder.icns
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/Resources/new_folderoriginal.icns /System/Library/CoreServices/Finder.app/Contents/Resources/new_folder.icns
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/Resources/SmartFolderOriginal.icns /System/Library/CoreServices/Finder.app/Contents/Resources/SmartFolder.icns
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/Resources/UserOriginal.icns /System/Library/CoreServices/Finder.app/Contents/Resources/User.icns
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/Resources/GroupOriginal.icns /System/Library/CoreServices/Finder.app/Contents/Resources/Group.icns
sudo mv -f /System/Library/CoreServices/Finder.app/Contents/Resources/EveryoneOriginal.icns /System/Library/CoreServices/Finder.app/Contents/Resources/Everyone.icns
sudo mv -f /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/ExternalOriginal.icns /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/External.icns
sudo mv -f /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/InternalOriginal.icns /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/Internal.icns
sudo mv -f /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/RemovableOriginal.icns /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/Removable.icns
sudo mv -f /System/Library/Extensions/IOSCSIArchitectureModelFamily.kext/Contents/Resources/FireWireHDOriginal.icns /System/Library/Extensions/IOSCSIArchitectureModelFamily.kext/Contents/Resources/FireWireHD.icns
sudo mv -f /System/Library/Extensions/IOSCSIArchitectureModelFamily.kext/Contents/Resources/USBHDOriginal.icns /System/Library/Extensions/IOSCSIArchitectureModelFamily.kext/Contents/Resources/USBHD.icns
sudo mv -f /System/Library/Extensions/IOCDStorageFamily.kext/Contents/Resources/CD-ROriginal.icns /System/Library/Extensions/IOCDStorageFamily.kext/Contents/Resources/CD-R.icns
sudo mv -f /System/Library/Extensions/IOCDStorageFamily.kext/Contents/Resources/CD-RWOriginal.icns /System/Library/Extensions/IOCDStorageFamily.kext/Contents/Resources/CD-RW.icns
sudo mv -f /System/Library/Extensions/IOCDStorageFamily.kext/Contents/Resources/CDOriginal.icns /System/Library/Extensions/IOCDStorageFamily.kext/Contents/Resources/CD.icns
sudo mv -f /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD-ROriginal.icns /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD-R.icns
sudo mv -f /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD-RAMOriginal.icns /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD-RAM.icns
sudo mv -f /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD-RWOriginal.icns /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD-RW.icns
sudo mv -f /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVDOriginal.icns /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD.icns
sudo mv -f /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD+ROriginal.icns /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD+R.icns
sudo mv -f /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD+RWOriginal.icns /System/Library/Extensions/IODVDStorageFamily.kext/Contents/Resources/DVD+RW.icns
sudo mv -f /System/Library/CoreServices/loginwindow.app/Contents/Resources/MacOSXOriginal.tif /System/Library/CoreServices/loginwindow.app/Contents/Resources/MacOSX.tif
sudo mv -f /System/Library/CoreServices/loginwindow.app/Contents/Resources/MacOSXServerOriginal.tif /System/Library/CoreServices/loginwindow.app/Contents/Resources/MacOSXServer.tif
sudo rm -rf /Library/Desktop\ Pictures
sudo mv -f /Library/Desktop\ Pictures\ Original /Library/Desktop\ Pictures
sudo rm -rf /Applications/X-Assist.app
sudo rm -rf /Library/Caches/*
defaults write ~/Library/Preferences/com.apple.Dock autohide -bool false
mv -f 'Use Platinum Icon Theme (Active).command' 'Use Platinum Icon Theme.command'
mv -f 'Use Aqua Icon Theme.command' 'Use Aqua Icon Theme (Active).command'
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Aqua Blue.jpg"'
sudo killall loginwindow
           break;;
   [nN]* ) killall Terminal;;
   * )  echo
	echo 'Please enter yes or no to proceed.'
	echo;;
  esac
done
