Created
October 24, 2012 03:20
-
-
Save jasonburk/3943477 to your computer and use it in GitHub Desktop.
Utility to quickly switch your OS X dock between 2D and 3D views.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Jason Burk | jasonburk@gmail.com | twitter: @twothirtyam | app.net: @burk | |
--http://230.am | |
--Application to let user choose if they would like a 2D or 3D dock | |
set mainList to {"2D", "3D"} | |
choose from list mainList with prompt "Would you like your dock to be 2D or 3D?" | |
set listchoice to result as text | |
if listchoice = "2D" then | |
tell application "Terminal" | |
do shell script "defaults write com.apple.dock no-glass -boolean YES" | |
delay 2 | |
do shell script "killall Dock" | |
end tell | |
else if listchoice = "3D" then | |
tell application "Terminal" | |
do shell script "defaults write com.apple.dock no-glass -boolean NO" | |
delay 2 | |
do shell script "killall Dock" | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment