Jump to content

jviotti

Member
  • Posts

    1
  • Joined

  • Last visited

jviotti's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. 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?
×
×
  • Create New...