Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Bind Spaces To F-Keys?

Bind Spaces To F-Keys?
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Oct 27, 2007, 11:13 AM
 
Hello,
I've been trying to figure out how to bind individual spaces to F-keys in Leopard. The actual spaces Preference Pane doesn't have a way of doing this. I tried adding a keyboard shortcut in the keyboard pref pane but no luck there either. It asks for the Menu Item you want to call and I don't know what to do for that.

Anyone have any ideas? Thanks!
Gabe
     
Fresh-Faced Recruit
Join Date: Oct 2007
Status: Offline
Reply With Quote
Oct 30, 2007, 01:22 PM
 
Well, after some effort I came up with a way to do it. Unfortunately, this method is not foolproof, and about 5 - 10% of the time the Spaces window sticks open for me. A second press or mouse click clears it. But I still find it more convenient than having to do a two-handed combo to get to my higher numbered spaces. Anyone know if there's a way to disable the Spaces window on switching?

Create AppleScripts for as many spaces as you have that call the appropriate Spaces shortcuts. I've created AppleScripts for Spaces 1 - 8, with Spaces set to Control+<number>: http://www.psychosis.net/F-Keys.zip.

Install QuickSilver if you don't already have it. Go to Triggers, and add a HotKey for each F-key you want. For each one, set it to call the appropriate AppleScript. Set the appropriate trigger Hot Key to the proper F-key, and change the Activate setting from "On Press" to "On Release". (If you use "On Press", often the command doesn't go through for some reason.) Enjoy your new F-keyed Spaces!

I hope someone comes up with a much less clumsy solution soon.
     
Fresh-Faced Recruit
Join Date: Oct 2007
Status: Offline
Reply With Quote
Oct 30, 2007, 03:11 PM
 
I updated the scripts to send a control keypress after switching. This seems to eliminate the problem of the Spaces window getting stuck sometimes.
     
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status: Offline
Reply With Quote
Oct 30, 2007, 04:56 PM
 
If you've got Quicksilver, just add a trigger for each F key you wish to use and have it type the appropriate number key. For example, in every virtual desktop implementation I've ever used it's control-F keys (or more rarely option-F keys), so my triggers are control-F1 simply types the character 1, control-F2 types 2 and so on. Chances are that my finger is slower than the computer and is still sitting fat, dumb and happy on the control key when quicksilver issues the '1' keypress hence ending up with control-1 which spaces interprets as me wanting desktop 1.

It's a kludge, but it works for me.
ClamXav - the free virus scanner for Mac OS X | Geobunny learns to fly
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 08:54 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2