Replace /Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/iterm.scpt with this.
set itermRunning to (application "iTerm" is running) | |
set scriptPath to quoted form of POSIX path of ((path to me as text) & "::" & "start.sh") | |
set user_shell to do shell script "dscl /Search -read /Users/$USER UserShell | awk '{print $2}'" | |
tell application "iTerm" | |
activate | |
if not (exists window 1) or (itermRunning = false) then | |
reopen | |
end if | |
try | |
tell current window | |
set newTab to (create tab with default profile) | |
tell current session of newTab | |
write text "bash --login " & scriptPath | |
end tell | |
end tell | |
on error | |
tell current session of (create window with default profile) | |
write text "bash --login " & scriptPath | |
end tell | |
end try | |
end tell |
This comment has been minimized.
This comment has been minimized.
Thanks!!! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thank you, it works perfect!!! |
This comment has been minimized.
This comment has been minimized.
Thanks!!! |
This comment has been minimized.
This comment has been minimized.
If you have multiple computers, easiest thing to do is to save this file to your iCloud drive and then link from it. $ sudo mv /Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/iterm.scpt /Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/iterm.scpt.bak
$ sudo ln ~/Library/Mobile\ Documents/com~apple~ScriptEditor2/Documents/iterm.scpt /Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/iterm.scpt |
This comment has been minimized.
This comment has been minimized.
Thanks!!! It works very well!!! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
With respect to "Expected end of line", I needed to replace in the .scpt file, "iTerm" with "iTerm2". |
This comment has been minimized.
This comment has been minimized.
Yes master! This is it looking for I was. |
This comment has been minimized.
This comment has been minimized.
This works. Thanks. |
This comment has been minimized.
This comment has been minimized.
Cheers, thanks for sharing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
nice - thank you!