我想在totalfinder中打开iterm2,但是它不起作用。脚本在下面
on alfred_script(q)
tell application "TotalFinder"
set pathList to (quoted form of POSIX path of (folder of the front window as alias))
end tell
tell application "System Events"
if not (exists (processes where name is "iTerm")) then
do shell script "open -a iTerm " & pathList
else
tell application "iTerm"
activate
tell application "System Events" to tell process "iTerm.app" to keystroke "t" using command down
do script ("cd " & pathList) in first window
end tell
end if
end tell
end alfred_script