Workflow to focus applications in Workflow Help & Questions Posted April 30, 2015 Hi, I'm trying to make a workflow that allows me to switch between my mostly used applications using hot keys. For example, I want to use Option+Command+M to bring the "Mail" application to the front, and if the app is not running, open it. I've created the corresponding hot keys and setup a NSAppleScript: on alfred_script(q) tell application "Mail" to activate end alfred_script The script works fine if the application is already running, but doesn't open the app in the opposite case. Also, with some apps, such as MacVim, the above script creates a new window instead of focusing on the current opened window. How should the AppleScript be formulated?
Workflow to focus applications
in Workflow Help & Questions
Posted
Hi, I'm trying to make a workflow that allows me to switch between my mostly used applications using hot keys.
For example, I want to use Option+Command+M to bring the "Mail" application to the front, and if the app is not running, open it.
I've created the corresponding hot keys and setup a NSAppleScript:
The script works fine if the application is already running, but doesn't open the app in the opposite case.
Also, with some apps, such as MacVim, the above script creates a new window instead of focusing on the current opened window.
How should the AppleScript be formulated?