`app:hide()` not work for some specific apps and always returns `false`
keidarcy opened this issue · comments
Xing Yahao commented
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
I'm binding cmd+h
for arc
as a workaround.
I have accessibility enabled.
More details in my runnning script: hide,bind cmd + h