This file contains 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 run {input, parameters} | |
tell application "Finder" | |
set dir to quoted form of (POSIX path of (folder of the front window as alias)) | |
if application "iTerm" is running then | |
tell application "iTerm" | |
tell current window | |
create tab with default profile |