Created
July 23, 2013 02:01
-
-
Save firesofmay/6059310 to your computer and use it in GitHub Desktop.
Mimics the alt tab behaviour using CornerClick, Witch & MouseTools on Mac.
http://gschueler.github.io/CornerClick/download.html
http://www.hamsoftengineering.com/codeSharing/MouseTools/MouseTools.html
http://manytricks.com/witch/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global windowx | |
| global mousex | |
| tell application "Finder" | |
| set boundlist to get bounds of window of desktop | |
| end tell | |
| set windowx to item 3 of boundlist as string | |
| set mousex to do shell script "/Users/firesofmay/mybin/MouseTools -location | head -n 1" | |
| delay 0.2 | |
| tell application "System Events" | |
| key down option | |
| try | |
| repeat while (windowx = mousex) | |
| keystroke tab | |
| delay 0.2 | |
| tell application "Finder" | |
| set boundlist to get bounds of window of desktop | |
| end tell | |
| set windowx to item 3 of boundlist as string | |
| set mousex to do shell script "/Users/firesofmay/mybin/MouseTools -location | head -n 1" | |
| end repeat | |
| on error errStr number errorNumber | |
| key up option | |
| error errStr number errorNumber | |
| end try | |
| key up option | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment