Skip to content

Instantly share code, notes, and snippets.

@helmuthauser
Last active August 29, 2015 14:08
Show Gist options
  • Save helmuthauser/e75d6da1f55fe34e961d to your computer and use it in GitHub Desktop.
Save helmuthauser/e75d6da1f55fe34e961d to your computer and use it in GitHub Desktop.
switches to presentation mode off
# Script to switch on again all needed applications after the presentation
#
# Latest update: October 27, 2014
# work.smart.and.be.remarkable@gmail.com
# www.helmuthauser.com
set question to display dialog "Ready to switch off presenation mode?" buttons {"Yes", "Cancel"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
tell application "Dropbox" to activate
tell application "OmniFocus" to activate
tell application "TextExpander" to activate
tell application "nvALT" to activate
tell application "Mail" to activate
tell application "HazelHelper" to activate
# switch off
tell application "Caffeine" to quit
# unmuted
set volume without output muted
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment