New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Close windows from within Expose


Post Reply New Thread Subscribe

 
Thread Tools
phosphide

 
Member Since: Feb 24, 2010
Location: Kalisz/Poznan, Poland
Posts: 2
phosphide is on a distinguished road
Mac Specs: MBP 13,3

phosphide is offline
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
QUOTE Thanks
saci

 
Member Since: Jul 12, 2010
Posts: 1
saci is on a distinguished road

saci is offline
Sorry if this is a dumb question, but how do you assign the script in BetterTouchTool?... I am having trouble.

Thanks much
QUOTE Thanks
phosphide

 
Member Since: Feb 24, 2010
Location: Kalisz/Poznan, Poland
Posts: 2
phosphide is on a distinguished road
Mac Specs: MBP 13,3

phosphide is offline
The predefined actions list contains "Open Application / File / Script" option.
I simply saved the script as an application and pointed it in BTT.
QUOTE Thanks

Post Reply New Thread Subscribe


« How can I use my external hard drive for my Mac and PC | Macbook Browser Slideshows not loading »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Running Windows on a Mac: A Switcher's Guide cwa107 Running Windows (or anything else) on your Mac 290 09-18-2014 02:51 PM
Calling all Windows Power Users consultant Switcher Hangout 6 08-20-2012 04:27 PM
Question about Bootcamp Melorock089 Switcher Hangout 12 06-29-2009 07:53 PM
NTFS-formatted Windows XP installed via Bootcamp 1.3 Jrstrdr Running Windows (or anything else) on your Mac 4 06-28-2007 11:46 PM
Have to be SP2? joe.morgan Running Windows (or anything else) on your Mac 5 01-12-2007 10:11 PM

All times are GMT -4. The time now is 12:31 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?