Skip to content

Instantly share code, notes, and snippets.

View kamontat's full-sized avatar
💭
I may be slow to respond.

Kamontat Chantrachirathumrong kamontat

💭
I may be slow to respond.
View GitHub Profile
@kamontat
kamontat / New iTerm2 Tab at Finder
Last active October 8, 2020 11:38
The AppleScript service, For open the new tab (if window exist) or new window (if window not launch before)
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
on CD_to(theDir)
set go_dir to "cd " & theDir & " && clear"
-- check running name in `activity Monitor` this must matching.
set isRunning to is_running("iTerm2")