display dialog "Finder Internal Debug Menu Enabler for OS X Developer Preview" 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.finder ShowDebugMenu -bool true;killall Finder"
else if the button_pressed is "Disable" then
do shell script "defaults write com.apple.finder ShowDebugMenu -bool false;killall Finder"
end if
2 Responses
Write a 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.