This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- allSettings is a list of records containing {width:? height:? apps:{{win:? name:? pos:? size:?},...} | |
-- for each display setup store the apps with each window and their associated position and size | |
property allSettings : {} | |
on run argv | |
-- if ran from the CLI, check if the "Save" or "Restore" argument was provided to bypass the prompt | |
if (count of argv) > 0 then | |
set myAction to item 1 of argv | |
else | |
set myAction to "" |