Hey, first time asking here, and this might be a bit out there, but... I'm trying to write a macro that positions all windows based on some logic, across three monitors.
This is what I have currently, which works for the first window of each application, but I'm not sure how to do it for all windows.
Summary of the following macro screenshots:
Position All Windows
focus each application and then invoke "Position Window by Type" which operates on the front window of the front app
Position Window by Type
Invoke "Get Target Screen", which sets the "target_screen" variable
Move/Resize window based on title
place on screen target_screen
set size to e.g. edge to edge, or right half of the screen
It's pretty amazing what you can get done without dropping into code, but I need some help with this one. I'm a programmer, but I haven't used applescript at all. I'd prefer to do it in the UI, but open to scripting.
You could create a separate macro (I call them "Sub-Macros") for each type of window arrangement, and then call the sub-macro you want using a Execute a Macro action.
I couldn't Move/Resize to take a window number (gave a generic error, I forget what it was), but I just set it to all matching the regex . and it works well.