- Joined
- Feb 24, 2010
- Messages
- 2
- Reaction score
- 0
- Points
- 1
- Location
- Kalisz/Poznan, Poland
- Your Mac's Specs
- MBP 13,3
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:
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:
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
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
If you know of some better way, please share your knowledge!
--
phosphide