macos – Tips on how to Programmatically Open Two Apps in **Full Display** Break up View?

0
21
macos – Tips on how to Programmatically Open Two Apps in **Full Display** Break up View?


Many discussions exist and options for programmatically opening two apps within the default desktop, together with Rectangle, Tiles, Moom, and plenty of AppleScripts. I’ve tried all of them, and none of them is actually full-screen. What I need is to realize both guide processes programmatically:

(say I need Safari on the left and Google Chrome on the proper)

  1. Begin Safari => Enter Full Display Mode on Safari => Begin Google Chrome => Enter Full Display Mode on Google Chrome => Triple Swipe Up/Ctrl+Up for Mission Management => Manually Drag the Safari Full Display into =

  2. Begin Safari => Hover over the inexperienced dot and click on on “Tile Window to the Left of the Display” => Use the mouse to establish and choose the Google Chrome window among the many Mission Management-like mini-windows on the proper pane.

At the moment, not one of the third-party apps I’ve tried are capable of obtain this exterior of the default desktop. This is the AppleScript I’ve developed in an try to simulate the #2 route, however

set leftApp to "Safari"
set rightApp to "Google Chrome"

inform utility leftApp to activate
inform utility "System Occasions"
    inform course of leftApp
        click on menu merchandise "Tile Window to Left of Display" of menu "Window" of menu bar 1
        -- Execution is caught right here for a mouse collection of Google Chrome window. The remainder of the script isn't executed.
    finish inform
    delay 0.5 -- a shorter worth will most likely work
    inform utility rightApp to activate
    inform course of rightApp
        inform utility rightApp to get bounds of window 1
        click on button 1 of window 1
    finish inform
finish inform

The error is System Occasions acquired an error: Cannot get utility "Google Chrome" of course of "Google Chrome". I think it’s because the “Tile Window to Left of Display” awaits a guide clicking course of for Mission Management-like home windows and blocks the remainder of the code from executing.

LEAVE A REPLY

Please enter your comment!
Please enter your name here