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

Update Refresh Running Browsers.tmCommand #96

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
9 changes: 9 additions & 0 deletions Commands/Refresh Running Browsers.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if application "Safari" is running then
tell application "Safari"
set sameURL to URL of current tab of front window
set URL of current tab of front window to sameURL
set application "Safari" to activate
end tell
end if

Expand Down Expand Up @@ -63,6 +64,12 @@ on error
-- do nothing
end try

set doesExist to false
try
do shell script "osascript -e 'exists application \"Opera\"'"
set doesExist to true
end try
if doesExist then
try
tell application "Finder"
name of application file id "com.operasoftware.Opera"
Expand All @@ -77,6 +84,8 @@ try
on error
-- do nothing
end try
endif

</string>
<key>input</key>
<string>none</string>
Expand Down