Skip to content

Instantly share code, notes, and snippets.

@ctanis
ctanis / switch-win.applescript
Created December 14, 2011 14:20
task switcher to complement command tab (i have it on option-tab)
activate
on expose_app(appname)
-- figure out if the current frontmost application is full screen
-- set isFull to false
-- tell application "System Events"
-- set firstProc to (name of first process whose frontmost is true)
-- try
-- tell process firstProc