You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the Hammerspoon console shows "Google Chrome" for Chrome, and "Firefox" for Firefox. These are the identifiers I'm using as the "name" parameter to hs.application.launchOrFocus(name).
A workaround is to switch from hs.application.launchOrFocus(name) to hs.application.launchOrFocusByBundleID(bundleID), and specify bundleID as "com.google.chrome" or "org.mozilla.firefox".
The text was updated successfully, but these errors were encountered:
hmm, I can't reproduce this, I can launchOrFocus() both Firefox and Google Chrome. Does anything change if you add hs.application.enableSpotlightForNameSearches(true) to your config?
It seems to be related to the browser automatically updating itself. I've found that it's a problem even after switching to hs.application.launchOrFocusByBundleID(bundleID) whenever Chrome auto-updates. In that case, restarting Chrome solves the problem until the next auto-update. I can't reproduce it on demand, but I'll try switching back to hs.application.launchOrFocus(name) and including hs.application.enableSpotlightForNameSearches(true) in my config.
I recently encountered the same issue as #1602 for both Chrome and Firefox. Using launchOrFocus with other applications appears to be working fine.
I'm running:
macOS 10.13.1 (High Sierra)
Hammerspoon: 0.9.60
Google Chrome: 64.0.3282.167 (Official Build) (64-bit)
Firefox: 58.0.2 (64-bit)
Executing:
hs.fnutils.each(hs.application.runningApplications(), function(app) print(app:name()) end)
in the Hammerspoon console shows "Google Chrome" for Chrome, and "Firefox" for Firefox. These are the identifiers I'm using as the "name" parameter to hs.application.launchOrFocus(name).
A workaround is to switch from hs.application.launchOrFocus(name) to hs.application.launchOrFocusByBundleID(bundleID), and specify bundleID as "com.google.chrome" or "org.mozilla.firefox".
The text was updated successfully, but these errors were encountered: