Automates the generation of robust AppleScript for controlling iTerm2 windows, tabs, and panes with standardized error handling.
The iTerm2 AppleScript Generator skill provides a standardized pattern for programmatically controlling iTerm2 through AppleScript. It addresses common automation pitfalls by implementing window existence validation, a dual-tell block structure for reliable session targeting, and safe string escaping for shell-to-script communication. This skill is essential for developers looking to automate their terminal workspace, allowing Claude to create complex layouts, manage session names, and execute commands across multiple panes with consistent reliability and multi-window safety.
主要功能
01Multi-window aware targeting using 'first window' conventions
02Pre-operation window existence validation and error reporting
03Standardized dual-tell block structure for reliable session targeting
04Automated session configuration including naming and command execution
050 GitHub stars
06Robust string escaping for safe AppleScript injection
使用场景
01Executing contextual startup commands in dedicated iTerm2 sessions
02Programmatically splitting panes and creating tabs via CLI arguments
03Automating complex terminal layout setups for specific development projects