window-management

Automate macOS window management tasks with osascript.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/igot-ai/os-twin --skill window-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: window-management
Source: https://github.com/igot-ai/os-twin/tree/main/.agents/skills/roles/macos-automation-engineer/window-management
Command: npx skills add https://github.com/igot-ai/os-twin --skill window-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates macOS window management tasks by programmatically moving, resizing, minimizing, restoring, toggling fullscreen, and inspecting window bounds via osascript, reducing manual window manipulation.

Core Features & Use Cases

  • Move and resize the front window while preserving its size or position to fit a workflow.
  • Minimize, restore, and toggle fullscreen of the active application window for quick layout changes.
  • Read current window bounds to drive automated layouts and screen orchestration.

Quick Start

Use ostwin mac window move to reposition the front window to coordinates 100 200 while preserving its size.

Frequently Asked Questions about window-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate macOS window management tasks like moving and resizing?

Automate macOS window management by programmatically moving, resizing, minimizing, restoring, toggling fullscreen, and inspecting window bounds via osascript to reduce manual window manipulation across your workflows.

Do I need accessibility permissions to run osascript for window manipulation on macOS?

Yes, osascript window manipulation requires macOS environments with accessibility permissions granted to control window bounds, minimize applications, and toggle fullscreen across single or multi-monitor setups.

Can I read current window bounds to drive automated layouts on a multi-monitor setup?

Yes, you can read current window bounds to drive automated layouts and screen orchestration, supporting automated layout workflows across both single and multi-monitor macOS setups.

How do I reposition the front window to specific coordinates using bash scripting?

Reposition the front window by executing a bash shell command via ostwin to move the window to specific coordinates like 100 200 while preserving its size for deterministic layout tasks.

What is the best way to script deterministic window layouts for daily use on macOS?

The best way to script deterministic window layouts is integrating existing bash scripts with osascript commands to automate moving, resizing, and fullscreen toggling for daily use or scripted setups.

Are there limitations when automating window minimize and restore operations with osascript?

osascript window management is limited to macOS environments requiring accessibility permissions and depends on bash shell execution via ostwin, meaning it cannot operate without explicit accessibility access.