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 > Quick key/command for user switch

Quick key/command for user switch
Thread Tools
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status: Offline
Reply With Quote
Jun 19, 2009, 07:46 PM
 
Been doing some testing this eve and I have been going between two users on my Mac here and right now I have the choice to go up to the top right select the user menu then select the other account I want to enter, but was wondering if there is a quick command for this?
     
Junior Member
Join Date: Aug 2005
Status: Offline
Reply With Quote
Jun 19, 2009, 09:08 PM
 
If you use quicksilver you can assign a hotkey to a script such as this:

Code:
#!/bin/sh USERID=`id -u`; if [[ $USERID == 501 ]]; then /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502 else /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 501 fi;
I especially like this because you don't need to enable fast user switching (though it still does, no logging in each time) so you don't see the icon in the menubar. You may have to change the numbers 501 and 502 to something else (use 'id -u' to determine what your number is) and it doesn't give you a choice as to which user to switch to, though this could easily be done with a parameter to the script.
     
Posting Junkie
Join Date: Oct 2000
Location: Los Angeles
Status: Online
Reply With Quote
Jun 22, 2009, 08:01 AM
 
Good suggestion david, but I wanted to point out that you can hold the command key and drag the FUS menu out of the menu bar if you don't like seeing it.

PPC4Ever
     
Mac Elite
Join Date: Jan 2002
Location: Durham, NC
Status: Offline
Reply With Quote
Jun 22, 2009, 10:11 AM
 
Well, if you have Quicksilver and don't mind having FUS turned on, you can also just install the user account plugin. Then launch Quicksilver and start typing the account name. A bit more than one keystroke, but using QS with abbreviations always seems plenty fast to me.
     
Junior Member
Join Date: Aug 2005
Status: Offline
Reply With Quote
Jun 22, 2009, 09:14 PM
 
Originally Posted by Big Mac View Post
Good suggestion david, but I wanted to point out that you can hold the command key and drag the FUS menu out of the menu bar if you don't like seeing it.
Just tested it and this doesn't work for me. I enabled FUS in Accounts and command+drag it out of the menubar. It shows the poof animation but replaces itself in the menubar.
     
Posting Junkie
Join Date: Oct 2000
Location: Los Angeles
Status: Online
Reply With Quote
Jun 22, 2009, 10:02 PM
 
Hmm, works here.

PPC4Ever
     
Junior Member
Join Date: Aug 2005
Status: Offline
Reply With Quote
Jun 24, 2009, 07:09 PM
 
Originally Posted by Big Mac View Post
Hmm, works here.
Got it. Any time you open the accounts pref pane it reappears and I was trying it with the pane open.
     
   
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:01 AM.
All contents of these forums © 1995-2009 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.4 © 2000-2009, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2