#!/bin/bash
clear
echo
while true
do
  read -p 'Use the brushed metal system theme? (Enter yes or no, then authenticate)' answer
  case $answer in
   [yY]* )
echo
cd "$(dirname "$0")"
sudo mv -f /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/ExtrasOriginal.rsrc /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras.rsrc
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
mv -f 'Use Brushed Metal System Theme.command' 'Use Brushed Metal System Theme (Active).command'
mv -f 'Use Pinstripes System Theme (Active).command' 'Use Pinstripes System Theme.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