Results 1 to 3 of 3
  1. #1


    Member Since
    Feb 24, 2010
    Location
    Kalisz/Poznan, Poland
    Posts
    2
    Specs:
    MBP 13,3
    Close windows from within Expose
    Hi

    Some time ago I was looking for a way to close windows/apps while in Expose and didn't find an answer.

    Today I wrote a simple Applescript and assigned it to Four Finger Click in BetterTouchTool:
    Code:
    tell application "System Events"
    	key code 36
    	delay 0.5
    	keystroke "w" using command down
    end tell
    It selects the highlighted window and closes it (Cmd+W) (your key codes may vary).
    If you want Expose to launch again add these two lines inside tell:
    Code:
    	delay 0.1
    	key code 101
    Maybe it's not the most elegant way, but it does the job for me.

    If you know of some better way, please share your knowledge!

    --
    phosphide

  2. #2


    Member Since
    Jul 12, 2010
    Posts
    1
    Sorry if this is a dumb question, but how do you assign the script in BetterTouchTool?... I am having trouble.

    Thanks much

  3. #3


    Member Since
    Feb 24, 2010
    Location
    Kalisz/Poznan, Poland
    Posts
    2
    Specs:
    MBP 13,3
    The predefined actions list contains "Open Application / File / Script" option.
    I simply saved the script as an application and pointed it in BTT.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Exposť doesn't expose all windows within a desktop
    By Command Alt Ego in forum OS X - Operating System
    Replies: 1
    Last Post: 08-16-2011, 10:51 AM
  2. Close multiple windows
    By mdko in forum OS X - Apps and Games
    Replies: 5
    Last Post: 04-29-2011, 09:26 PM
  3. Firefox windows will not close
    By tspeegle09 in forum OS X - Apps and Games
    Replies: 4
    Last Post: 11-13-2009, 12:17 PM
  4. please help weird thing in expose all windows*
    By mikelcatracho in forum Switcher Hangout
    Replies: 4
    Last Post: 07-29-2008, 05:36 PM
  5. ever have a windows user see you using expose?
    By Berman in forum Switcher Hangout
    Replies: 8
    Last Post: 11-20-2005, 11:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •