Skip to main content
Loop can be controlled using AppleScript, allowing you to integrate window management into your macOS automation workflows.

Basic AppleScript Commands

Activating Loop

Bring Loop to the foreground:
Shell execution:

URL Scheme Integration

Execute Loop commands using the URL scheme:
Shell execution:

Common Use Cases

Window Positioning

Move windows to specific positions:

Screen Management

Move windows between displays:

Integration with Other Tools

Keyboard Maestro

Create a Keyboard Maestro macro that executes AppleScript:
  1. Create a new macro
  2. Add “Execute AppleScript” action
  3. Use the AppleScript command:

Alfred Workflows

Create an Alfred workflow that runs AppleScript:
  1. Create a new workflow
  2. Add a “Run Script” action
  3. Set language to “AppleScript”
  4. Add your Loop commands

Automator

Create Automator workflows with Loop commands:
  1. Create a new Automator workflow
  2. Add “Run AppleScript” action
  3. Include Loop URL scheme commands

Shell Scripts

Combine AppleScript with shell scripts for more complex automation:

Tips

All Loop URL scheme commands can be executed through AppleScript using the open location syntax.
For quick one-off commands, use osascript -e directly from the terminal.
Chain multiple commands together in a single AppleScript or shell script for complex workflows.

Next Steps

URL Scheme Reference

Complete URL command reference

Scripting Examples

Real-world automation examples