Command Tab AppleScript

Discussion in 'Mac Programming' started by wrignj08, Jan 27, 2012.

  1. macrumors newbie

    Jun 13, 2009
    Hey All,

    I would like an applescript that would get the command tab (application switcher) up and hold it there until the mouse was clicked. Currently i have the below script but it ends at a set amount of time not a click. I would be very pleased if some one could help me out.

    tell application "System Events"
    key down command
    keystroke tab
    key code 123
    delay 2
    key up command
    end tell


Share This Page