Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sui.page

macrumors member
Original poster
May 13, 2012
38
0
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
 

Dalton63841

macrumors 65816
Nov 27, 2010
1,449
8
SEMO, USA
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")
MLKlh.png

z8boX.png
 
Last edited:

sui.page

macrumors member
Original poster
May 13, 2012
38
0
perfecto! exactly what I needed. Thanks for the little insight too.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.