Telling spotlight to activate via AppleScript

Discussion in 'Mac Programming' started by alec6542, Jan 2, 2013.

  1. macrumors regular

    Joined:
    Jan 16, 2012
    #1
    Hi guys,

    My ultimate goal is setup a hotkey so that when I press command twice it activates spotlight. I have Alfred's powerpack, which has a nice feature where you can create your own hotkeys and assign them to do certain things, including opening applications and running applescripts. Hitting command is a hotkey that Alfred supports, but, as far as I can tell, there is no "Spotlight.app" that I can simply assign a hotkey to open. So my only option is to construct a simple applescript that does it. Any ideas?

    Thanks for your help!

    Alec
     
  2. macrumors newbie

    NovaScotian

    Joined:
    Jun 28, 2008
    Location:
    Dartmouth, Nova Scotia
    #2
    Spotlight has a system preference pane in which you can set a hot key to open it.
     

Share This Page