Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 612 Bytes

open-in-iterm.md

File metadata and controls

29 lines (23 loc) · 612 Bytes

Open In iTerm

Open current Finder path in iTerm

on BrowserDeputyScript(input, link, title)
	tell application "Finder"
		set frontWin to URL of folder of front window
		set len to length of frontWin
		set pather to text 8 thru (len - 1) of frontWin
		tell application "iTerm"
			launch "iTerm"
			delay 1
			set newWindow to (create window with default profile)
			tell current session of newWindow
				write text "cd " & pather
			end tell
		end tell
	end tell
end BrowserDeputyScript

Settings

Download

Download open-in-iterm.json