GeforceLee
V2EX  ›  Apple

go2shell 在 iTerm2 v3 失灵了

  •  
  •   GeforceLee · Jun 16, 2016 · 3565 views
    This topic created in 3796 days ago, the information mentioned may be changed or developed.

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

    4 replies  •  2016-06-17 17:59:11 +08:00
    steveshi
    steveshi
    Jun 16, 2016
    1
    没有,仍然能使用
    Tink
    Tink
    Jun 16, 2016 via iPhone
    2
    workflow 那个是失灵了
    GeforceLee
    GeforceLee
    OP
    Jun 17, 2016
    3
    果断换回 2.1.4 了
    bumaociyuan
    bumaociyuan
    Jun 17, 2016
    4
    ```

    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


    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1655 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:04 · PVG 19:04 · LAX 03:04 · JFK 06:04
    ♥ Do have faith in what you're doing.