Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bogeybro

macrumors newbie
Original poster
Apr 17, 2011
17
0
Hi everyone,
Thank you in advance for those who help me. Can anyone tell me how I can open a movie in full screen without having to click the full screen button in quicktime and make the movie play by using an applescript?

Thanks!:)
 
This script will work. You need to use GUI scripting that is why it asks you to check the box.

PHP:
GUI()
tell application "QuickTime Player" to activate
tell application "System Events"
	tell process "QuickTime Player"
		click menu item "Enter Full Screen" of menu 1 of menu bar item "View" of menu bar 1
	end tell
end tell
on GUI()
	tell application "System Events"
		if UI elements enabled then
		else
			repeat until UI elements enabled is true
				beep
				tell application "System Preferences"
					activate
					set current pane to pane "com.apple.preference.universalaccess"
				end tell
				tell application "Finder"
					activate
					display dialog "UI element scripting is not enabled. Please check \"Enable access for assistive devices\"  Then click \"ok\""
				end tell
			end repeat
		end if
	end tell
end GUI
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.