capture screen

Other Community

Skill notes

Overview

Three-step workflow:

Step 1: Get Window ID (Swift)

Use Swift with CoreGraphics to enumerate windows. This is the only reliable method on macOS.

Using the bundled script

Output format: WID=12345 | App=Microsoft Excel | Title=workbook.xlsx Parse the WID number for use with screencapture -l.

Step 2: Control Window (AppleScript)

Verified commands for controlling application windows before capture.

Timing and Timeout

Always add sleep 1 after AppleScript commands before capturing, to allow UI rendering to complete. IMPORTANT: osascript hangs indefinitely if the target application is not running or not responding. Always wrap with timeout:

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Other
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@daymade · no license declared
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
macOS · Windows
Runtime requirements
Python
Detected file/system behavior
  • Read-only
  • Write / modify
  • Shell exec
Network behavior
External requests
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

01
Step 1: Get Window ID (Swift)

Use Swift with CoreGraphics to enumerate windows. This is the only reliable method on macOS.

02
Step 2: Control Window (AppleScript)

Verified commands for controlling application windows before capture.

03
Step 3: Capture (screencapture)

Step 3: Capture (screencapture)

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.