display dialog "Enable the Autoplay option when opening media files on QuickTime 10." buttons {"Enable", "Disable", "Cancel"} with title "QuickTime Player Autoplay"
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.QuickTimePlayerX MGPlayMovieOnOpen 1"
else if the button_pressed is "Disable" then
do shell script "defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 0"
end if
Doesn't seem to work on macOS Sierra.
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.