macos – How to go fullscreen with multiple instances of an application started in a shell script on OSX?

Spread the love


This script somewhat works, it sets one or a couple of instances fullscreen once they are clicked on. Looking for a way to go fullscreen with each one after another.

set REAKTOR to "Reaktor 6"


tell application "System Events"
    
    repeat with reaktorInstance in (every process whose name contains REAKTOR)
        
        tell application "System Events"
            tell reaktorInstance
                activate
                set value of attribute "AXFullScreen" of every window to true
            end tell
        end tell
        
    end repeat
end tell

Anyone has any idea on how to get this working reliably every time?

Author: Dhanraj7978

Leave a Reply

Your email address will not be published. Required fields are marked *