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
Chrome works fine with app:hide() but ARC not and app.hide() always returns false even hide() worked.
local log = hs.logger.new("toggle-me", "debug")
bundleId = "com.google.Chrome"
// bundleId = "company.thebrowser.Browser"
local app = hs.application.find("com.google.Chrome")
if app:isFrontmost() then
local h = app:hide()
log.i(h) // alway false
end
Came here to report the same problem and found this issue.
For now, I'm special-casing Arc in my openOrHideOrShowApp key-handler function and calling selectMenuItem instead of hide when isFrontmost is Arc (just like @theutz suggested above).
Chrome works fine with
app:hide()
but ARC not andapp.hide()
always returnsfalse
evenhide()
worked.I'm binding
cmd+h
forarc
as a workaround.I have accessibility enabled.
More details in my runnning script: hide,bind cmd + h
The text was updated successfully, but these errors were encountered: