JohnMcSilver wrote:
A series of steps in a script at startup would be something as:
Open App -> Make App full screen -> Go to Mission Control -> Move full screen App to the left of the main Desktop -> Go to main Desktop.
Hi JohnMcSilver. One option is to use GUI scripting in an AppleScript. Keep in mind GUI scripting can be finicky and unreliable. You can start with the following basic script without error handling. It requires the mouse and keyboard command-line tool Cliclick. Download, open the DMG by double-clicking and drag or copy/paste the binary into /usr/local/bin/. To navigate to the folder in Finder use Command-Shift-G. Use the command cliclick -h in Terminal to get help or run do shell script "usr/local/bin/cliclick -h" in its own script in Script Editor and read the results at the bottom. You can drag a full screen app space in Mission Control to the left of the desktop space. To read the start and end coordinates to use with Cliclick's start a drag (dd:x,y) and end a drag (du:x,y), with an app in full screen mode and Mission Control engaged, you can use Command-Shift-4 to open the screenshot crosshair pointer. Press Esc to exit without taking a screenshot.
(*
script assumes:
no apps are full screen
no other desktops are open
apps don't open full screen
Install Cliclick into usr/local/bin/
key code 3 is the "F" key
key code 126 is the “Up Arrow” key
key code 18 is the “1” key
adjust delays as required
adjust Cliclick coordinates specific to your setup
*)
-- substitute any full screen capable app
tell application "Safari" to activate
delay 4
tell application "System Events"
-- enter app full screen mode
key code 3 using {command down, control down}
delay 3
-- enter Mission Control
key code 126 using control down
end tell
delay 3
-- drag the space Safari occupies to the left
do shell script "usr/local/bin/cliclick dd:830,70 w:1000 du:500,70"
delay 2
tell application "System Events"
-- exit Mission Control
key code 126 using control down
delay 2
-- switch to the desktop (e.g. main/Desktop 1)
key code 18 using control down
end tell