Applescript help!

Discussion in 'Mac OS X Lion (10.7)' started by bogeybro, Oct 31, 2011.

  1. bogeybro macrumors newbie

    Joined:
    Apr 17, 2011
    #1
    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!:)
     
  2. auschase macrumors newbie

    Joined:
    Sep 26, 2011
    #2
    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
     

Share This Page