App Expose Applescript

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

  1. sui.page macrumors member

    Joined:
    May 13, 2012
    #1
    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

    Dalton63841

    Joined:
    Nov 27, 2010
    Location:
    SEMO, USA
    #2
    The easiest way would probably be to use the key binding to activate it. Something like this:

    Code:
    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")
    [​IMG]
    [​IMG]
     
  3. sui.page thread starter macrumors member

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

Share This Page