Skip to content

Instantly share code, notes, and snippets.

@jasonburk
Created October 24, 2012 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonburk/3943477 to your computer and use it in GitHub Desktop.
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.
--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