If you enable access for assistive devices in the Universal Access pane of System Preferences, you can do this with the following Applescript:
tell application "System Events" to keystroke "w" using command down Save this as "Close Window" in ~/Library/Scripts, and make a trigger to run it. All this script is doing is pressing ⌘W for you, which is the standard keyboard shortcut to close a window. It should work in any application. On Mar 30, 11:07 am, lucite <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking to create a mouse trigger to close the active window (more > precisely in Firefox). > > But I can't find a 'close window' command... Anyone have any > suggestions? > > Thanks
