diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-03 01:22:44 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-03 01:22:44 -0400 |
| commit | 0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch) | |
| tree | 6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/run-command-in-iterm2.applescript | |
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc
nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/run-command-in-iterm2.applescript')
| -rwxr-xr-x | users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/run-command-in-iterm2.applescript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/run-command-in-iterm2.applescript b/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/run-command-in-iterm2.applescript new file mode 100755 index 0000000..ab00115 --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/run-command-in-iterm2.applescript | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | on run argv | ||
| 2 | set commandToRun to item 1 of argv | ||
| 3 | tell application "iTerm" | ||
| 4 | set newWindow to (create window with default profile) | ||
| 5 | tell current session of newWindow | ||
| 6 | write text commandToRun | ||
| 7 | end tell | ||
| 8 | end tell | ||
| 9 | end run \ No newline at end of file | ||
