Many discussions exist and options for programmatically opening two apps within the default desktop, together with Rectangle, Tiles, Moom, and lots of AppleScripts. I’ve tried all of them, and none of them is actually full-screen. What I need is to realize both handbook processes programmatically:
(say I need Safari on the left and Google Chrome on the precise)
Begin Safari => Enter Full Display screen Mode on Safari => Begin Google Chrome => Enter Full Display screen Mode on Google Chrome => Triple Swipe Up/Ctrl+Up for Mission Management => Manually Drag the Safari Full Display screen into =
Begin Safari => Hover over the inexperienced dot and click on on “Tile Window to the Left of the Display screen” => Use the mouse to determine and choose the Google Chrome window among the many Mission Management-like mini-windows on the precise pane.
At the moment, not one of the third-party apps I’ve tried are in a position to obtain this exterior of the default desktop. Here 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 screen" of menu "Window" of menu bar 1
-- Execution is caught right here for a mouse number 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 believe it’s because the “Tile Window to Left of Display screen” awaits a handbook clicking course of for Mission Management-like home windows and blocks the remainder of the code from executing.