If you’re running multiple apps across multiple monitors all day, window management makes a real difference. A good setup means less dragging, less clicking, and more time focused on the actual work.
To address this common annoyance, here’s a simple but powerful AppleScript solution that instantly brings any active window back to your main display:
tell application "System Events"
set frontApp to first application process whose frontmost is true
tell front window of frontApp
set position to {0, 22} -- Moves the window to the top-left corner of the main display
end tell
end tell
How It Works
- Identifies the currently frontmost application.
- Moves the front window of that application to the top-left corner of your main display, ensuring immediate visibility.
Setting Up the Script
- Open Script Editor on your Mac.
- Paste the above script into a new document.
- Save the script as an application.
- Keep it in your Dock or assign a keyboard shortcut for quick access.
Integration with Stream Deck
For even faster and easier access, integrate this script with an Elgato Stream Deck:
- Open the Stream Deck app.
- Drag the “Open” action from the System actions panel onto your desired Stream Deck button.
- Set the button action to launch your saved AppleScript application.
- Customize the button icon and title as desired for clarity.
Now, with a single button press, you can immediately move hidden windows back to your primary display, simplifying your workflow on set.
Advanced Solution: Screening Room
Once you get your window management dialed in, you’ll wonder how you worked without it.
