Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix “Run in Terminal” for macOS High Sierra" #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Commands/Open directory in Terminal.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ def terminal_script_new_tab(dir)
return <<-APPLESCRIPT
tell application "Terminal"
activate
set originalContent to contents of tab in window 1
set numberOfTabs to count tabs in window 1
tell application "System Events"
repeat while "Terminal" is not name of (process 1 where frontmost is true)
delay 0.1
end repeat
tell process "Terminal" to keystroke "t" using command down
end tell
set startedAt to current date
repeat while (contents of tab in window 1) is originalContent
repeat while (count tabs in window 1) is numberOfTabs
delay 0.1
if (current date) - startedAt > 2 then
if (current date) - startedAt > 2 then
error "Could not open new tab"
end if
end repeat
Expand Down