Save and Restore Workspaces (Positions/Sizes of Windows for Finder Folders, Applications and Webpages).
During the long lockdown I had many online meetings where I arranged several Finder Windows and Apps on my monitors and had certain Webpages open. At the end of the meeting those Windows got moved and closed and I wanted a way to Restore my nicely arranged Workspace the next time I had a similar meeting.
Here are the Instructions (fuller instructions in the ReadMe included in the Group).
Tested with Keyboard Maestro 9.2 and Big Sur 11.3.1
Latest Version: 3.10 (version notes in ReadMe in Group)
Disable (or Delete) any previous Zabobon's Dynamic Workspaces Macro Group. Probably a good idea to just Disable the old Group at first in case you prefer it to the new version.
NOTE: This version is backwards compatible with any Workspaces created from version 2.83 onwards. From version 2.83 multiple Websites and any number or Workspaces can be saved. The Window data is saved in a different form to before 2.83 and means you would need to manually recreate any Workspaces if you are upgrading from earlier than 2.83. I have arrived at the "final" form of data saving now as it allows for unlimited Workspaces and multiple Webpages per Workspace. Any future upgrades will be tweaks and bug fixes and will stick to this data saving method.
The Macro Group will come in disabled so, you will need to enable it to work.
Change the Trigger Shortcuts for the 3 main Macros to what you would like. I have them as:
⌃⌘S Save to a Workspace
⌃⌘R Restore Workspace
(Detailed Instructions and Notes are in the ReadMe file.)
Position and size up to 8 open Applications and Finder Windows in a way that works well for a task. Additionaly, open any URL in Safari or Chrome Website Windows and position them too (note that this Macro saves individual Window Postions - it ignore Tabs).
Once all are nicely positioned, click on the first Window that you want to save the Position/Size/Path/URL and press ⌃⌘S followed by Return to Save the Window Position/Size to the Selected Workspace. Repeat for each window you want to Save. (Click Help for detailed instructions.)
To Restore a Workspace, press ⌃⌘R followed by Return to restore the Selected Workspace. (Click Help for detailed instructions.)
Open Options directly by pressing ⌃⌘O
Or, from either Save to a Workspace or Restore Workspaces click Options
From here you can make new Workspaces with more useful names, like "Start of Week Meeting" "Edit Review" "Zoom Studio Meeting" - that sort of thing. You can also delete Workspaces, change their names, order the list of Workspace alphabetically etc.
• Minor Interface change.