Open two applications in full spit screen using Bash script I am trying to write a Bash script to open two applications in full split screen, for example:

#!/bin/bash

LESSON="$1"

echo operating on lesson $LESSON

open /Applications/Pages.app /Users/username/Library/Mobile\ Documents/com~apple~Pages/Documents/$LESSON*
open /Users/username/courses/chemistry/$LESSON*


This works, but I want to open Pages and Preview in full screen and split view.
Get the Magnet app from the App Store, far less effort and does exactly what you want.