go2shell 在 iTerm2 v3 失灵了

2016-06-16 16:24:12 +08:00
 GeforceLee

iTerm2 在升级的 v3 版以后 go2shell 失灵了,大家遇到了吗?

2539 次点击
所在节点    Apple
4 条回复
steveshi
2016-06-16 16:56:35 +08:00
没有,仍然能使用
Tink
2016-06-16 16:58:02 +08:00
workflow 那个是失灵了
GeforceLee
2016-06-17 17:18:52 +08:00
果断换回 2.1.4 了
bumaociyuan
2016-06-17 17:59:11 +08:00
```

tell application "Finder"
set pathList to (quoted form of POSIX path of (folder of the front window as alias))
set command to "clear; cd " & pathList
end tell

tell application "System Events"
-- some versions might identify as "iTerm2" instead of "iTerm"
set isRunning to (exists (processes where name is "iTerm")) or (exists (processes where name is "iTerm2"))
end tell

tell application "iTerm"
activate
set hasNoWindows to ((count of windows) is 0)
if isRunning and hasNoWindows then
create window with default profile
end if
select first window

tell the first window
if isRunning and hasNoWindows is false then
create tab with default profile
end if

tell current session to write text command
end tell
end tell


```

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/286202

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX