env/scripts/NvimLauncherKitty.applescript

10 lines
291 B
AppleScript
Raw Normal View History

2022-08-24 17:36:18 -07:00
# Based on the iTerm script
on run {input, parameters}
set myPath to POSIX path of input
set cmd to "/opt/homebrew/bin/nvim -p " & quote & myPath & quote
tell application "System Events" to tell process "kitty"
click menu item "New Tab" of menu "Shell" of menu bar 1
end tell
end run