Instantly share code, notes, and snippets.

Embed
What would you like to do?
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