Ben100 Posted September 28, 2020 Share Posted September 28, 2020 Trying to just make a shortcut to launch Chrome but if it's active, launch Safari (Launch = If app is running then activate its window, same behaviour as "Launch Apps/Files") I couldn't find easy way to answer "Is Chrome window currently focused/active" Link to comment
deanishe Posted September 28, 2020 Share Posted September 28, 2020 1 hour ago, Ben100 said: I couldn't find easy way to answer "Is Chrome window currently focused/active" If you use an Alfred Hotkey to run your workflow, it can set a variable with the bundle ID of the currently-active app. Link to comment
Ben100 Posted September 29, 2020 Author Share Posted September 29, 2020 On 9/28/2020 at 11:46 AM, deanishe said: If you use an Alfred Hotkey to run your workflow, it can set a variable with the bundle ID of the currently-active app. Thanks! I'm ashamed to admit I didn't know "Related Apps" had this functionality - I can just make 2 separate hotkeys and have each active or inactive based on chrome: Link to comment
deanishe Posted September 29, 2020 Share Posted September 29, 2020 1 minute ago, Ben100 said: I can just make 2 separate hotkeys and have each active or inactive based on chrome: Or use a Conditional to open one or the other browser, depending on which application is currently active. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now