AUTOMATOR - Help - Open App in full screen

Discussion in 'Mac Programming' started by sawakuro, Sep 5, 2018.

Tags:
  1. sawakuro macrumors newbie

    Joined:
    Sep 5, 2018
    #1
    Save everyone.
    I would like this:
    When I turn on the computer, I would like to automatically open (after logging in) specific software and launch the full screen mode.
    Now for this I use the keyboard commands: CMD + 1.

    (My software is a playout of a video signal like quick time player)

    thank you

    Emanuele
     
  2. DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #2
    Hey sawakuro,

    try to add a Run Applescript action after you open the application:
    Code:
    on run {input, parameters}
        tell application "QuickTime Player"
            activate
            tell application "System Events" to tell process "QuickTime Player"
                set value of attribute "AXFullScreen" of window 1 to true
            end tell
        end tell
        return input
    end run
    
    This will make the window go full screen of the application QuickTime Player.
    Obviosly this will fail if there is no window preset.
     
  3. sawakuro thread starter macrumors newbie

    Joined:
    Sep 5, 2018
    #3
    Thank you so much for the information. I explain better what I need.
    First of all I need to act as a computer that commands others through the LAN network.

    From a single computer (Apple mac of course) I have to open on the 8 different computers the same application (called MODO PLAYOUT) and launch it in full screen.
     
  4. DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #4
    Hi Sawakuro,

    Why don't you make 1 thread for this. :)
    You could adjust the script above and put it in between osascript <<END and END and run it via remote desktop. Or ssh connection
    Code:
    osascript <<END
    tell application "QuickTime Player"
           activate
           tell application "System Events" to tell process "QuickTime Player"
               set value of attribute "AXFullScreen" of window 1 to true
           end tell
       end tell
    END
    
     
  5. sawakuro thread starter macrumors newbie

    Joined:
    Sep 5, 2018
    #5
    Excuse my lack of knowledge in this field. I need a little "for dummies" guide to do this. can you help me?
    thnk you very much. I've haven't Remote Desktop
     

Share This Page

4 September 5, 2018