This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |