• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 2.4
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      The beta of iTerm's next release, 2.9.x, changed their scripting support and is incompatible with the iTerm 2 support in SourceTree.

      "Please see https://iterm2.com/applescript.html for the full details."

            [SRCTREE-3594] Add support for iTerm 2.9

            As I already commented, it's fixed for the next release, which is currently in beta.

            Brian Ganninger (Inactive) added a comment - As I already commented, it's fixed for the next release, which is currently in beta.

            Nathan McC added a comment -

            This is still an issues in 2.3.1 & iTerm2 3.0.8. Will this ever be fixed?

            Nathan McC added a comment - This is still an issues in 2.3.1 & iTerm2 3.0.8. Will this ever be fixed?

            This has been addressed for the next release by Manjunath.

            Brian Ganninger (Inactive) added a comment - - edited This has been addressed for the next release by Manjunath.

            It's not as simple as just dropping in a new AppleScript. This is on my shortlist but no timeline or expected version will be given.

            Brian Ganninger (Inactive) added a comment - It's not as simple as just dropping in a new AppleScript. This is on my shortlist but no timeline or expected version will be given.

            SourceTree Version 2.3.1 (69) has been released. The issue still reproduces with this version of SourceTree.

            Aaron Brager added a comment - SourceTree Version 2.3.1 (69) has been released. The issue still reproduces with this version of SourceTree.

            iTerm 3.0.0 has been released.

            This issue still reproduces with iTerm 3.0.0.

            Aaron Brager added a comment - iTerm 3.0.0 has been released. This issue still reproduces with iTerm 3.0.0.

            What's the status of this? Seems like a straightforward fix that would be really helpful.

            Aaron Brager added a comment - What's the status of this? Seems like a straightforward fix that would be really helpful.

            qoomon added a comment -

            it's maybe easier to just do the following

            tell application "Finder"
                set itermPath to (path to application "iTerm")
                set folderPath to POSIX file "/Users/anonymous/Desktop" as alias
                open folderPath using itermPath
            end tell
            

            qoomon added a comment - it's maybe easier to just do the following tell application "Finder" set itermPath to (path to application "iTerm" ) set folderPath to POSIX file "/Users/anonymous/Desktop" as alias open folderPath using itermPath end tell

            David Schargel added a comment - - edited

            Perhaps this code will help:

            set iterm2_v2_script to ¬
                  "
                  tell application \"iTerm\"
                        tell current terminal
                              launch session \"Default Session\"
                              delay 0.1
                              activate
                              tell the last session
            #                        INSERT CUSTOM ACTION CODE HERE
                              end tell
                        end tell
                  end tell
                  "
            set iterm2_v3_script to ¬
                  "
                  tell application \"iTerm\"
                        activate
                        tell current window
                              create tab with default profile
                              tell current session
            #                        INSERT CUSTOM ACTION CODE HERE
                              end tell
                        end tell
                  end tell
                  "
            if application "iTerm"'s version >= "2.9" then
                  run script iterm2_v3_script
            else
                  run script iterm2_v2_script
            end if
            

            I release all worldwide rights to this code; it is now in the public domain. I need no compensation, kudos, nor credit.

            David Schargel added a comment - - edited Perhaps this code will help: set iterm2_v2_script to ¬ " tell application \"iTerm\" tell current terminal launch session \"Default Session\" delay 0.1 activate tell the last session # INSERT CUSTOM ACTION CODE HERE end tell end tell end tell " set iterm2_v3_script to ¬ " tell application \"iTerm\" activate tell current window create tab with default profile tell current session # INSERT CUSTOM ACTION CODE HERE end tell end tell end tell " if application "iTerm"'s version >= "2.9" then run script iterm2_v3_script else run script iterm2_v2_script end if I release all worldwide rights to this code; it is now in the public domain. I need no compensation, kudos, nor credit.

              Unassigned Unassigned
              bganninger Brian Ganninger (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: