Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Close windows from within Expose
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="phosphide" data-source="post: 1006805" data-attributes="member: 145426"><p>Hi</p><p></p><p>Some time ago I was looking for a way to close windows/apps while in Expose and didn't find an answer.</p><p></p><p>Today I wrote a simple Applescript and assigned it to Four Finger Click in BetterTouchTool:</p><p>[CODE]tell application "System Events"</p><p> key code 36</p><p> delay 0.5</p><p> keystroke "w" using command down</p><p>end tell[/CODE]</p><p></p><p>It selects the highlighted window and closes it (Cmd+W) (your key codes may vary).</p><p>If you want Expose to launch again add these two lines inside tell:</p><p>[CODE] delay 0.1</p><p> key code 101[/CODE]</p><p>Maybe it's not the most elegant way, but it does the job for me.</p><p></p><p>If you know of some better way, please share your knowledge!</p><p></p><p>--</p><p>phosphide</p></blockquote><p></p>
[QUOTE="phosphide, post: 1006805, member: 145426"] 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[/CODE] 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[/CODE] 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 [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Close windows from within Expose
Top