Skip to content

Commit

Permalink
Trying to fix issues in Catalina
Browse files Browse the repository at this point in the history
- Some users report that osascript cannot run our browser detection code
due to permissioin issues. This commit checks for macOS version and
skips the call that we guess is the root of error (asking System Events
to return name of all running processes)
  • Loading branch information
spamwax committed Mar 12, 2020
1 parent 005194f commit fbbe1d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions res/workflow/get-current-url.applescript
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
on appIsRunning(appName)
set osver to system version of (system info)
considering numeric strings
set catalina to (osver >= "10.15" and osver < "10.16")
end considering
if catalina then
return true
end if
tell application "System Events" to (name of processes) contains appName
-- set processName to run script "tell application \"System Events\" to (name of processes)"
-- set ret to processName contains appName
-- return ret
end appIsRunning


Expand Down

0 comments on commit fbbe1d5

Please sign in to comment.