macOS Single Application Mode (SAM)

display dialog "Single Application Mode" buttons {"Enable", "Disable", "Cancel"} set the button_pressed to the button returned of the result if the button_pressed is "Enable" then do shell script "defaults write com.apple.dock single-app -bool true; killall Dock" else if the button_pressed is "Disable" then do shell script "defaults write com.apple.dock single-app -bool false; killall Dock" end if

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.