From 53f7c10726f301531bd7eff1cc11eb83fde9b4df Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 22 Jun 2019 21:45:31 +0200 Subject: gdrive_mouseover_item_open: Ensure Chrome is active Before doing anything, activate Chrome. Normally it should be active anyway, but I just tried this with Finder active and no windows open, not realising that Chrome wasn't the frontmost application. --- gdrive_mouseover_item.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdrive_mouseover_item.lua b/gdrive_mouseover_item.lua index 8d49482..5e07a8b 100644 --- a/gdrive_mouseover_item.lua +++ b/gdrive_mouseover_item.lua @@ -46,6 +46,8 @@ end function gdrive_mouseover_item_run_and_exit(f) return function() + hs.application.find('com.google.Chrome'):activate() + f() gdrive_mouseover_item_open() -- cgit v1.2.3