App Expose Applescript

Discussion in 'macOS' started by, Jun 28, 2013.

  1. macrumors member

    May 13, 2012
    I'm trying to configure my Logitech mouse so that it runs app expose when I click a button. Currently 'mission control' comes up as a command option but there's no app expose command. Does anyone know the Applescript to activate the app expose function. That way I can select it as an app instead which run when I click the mouse button
  2. Dalton63841, Jun 28, 2013
    Last edited: Jun 28, 2013

    Dalton63841 macrumors 65816


    Nov 27, 2010
    The easiest way would probably be to use the key binding to activate it. Something like this:

    tell application "System Events" to key code 125 using control down
    Here's a list of key codes for doing all kinds of everything with Applescript. Any time you use a modifier key you follow the line above.(For instance copy would be "key code 34 using command down")
  3. thread starter macrumors member

    May 13, 2012
    perfecto! exactly what I needed. Thanks for the little insight too.

Share This Page