<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>polyphase.ca &#187; apple mac osx quicksilver</title>
	<atom:link href="http://polyphase.ca/tag/apple-mac-osx-quicksilver/feed/" rel="self" type="application/rss+xml" />
	<link>http://polyphase.ca</link>
	<description>In Soviet Canuckistan, Blogs Read You!</description>
	<lastBuildDate>Wed, 09 May 2012 22:28:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Quicksilver and screen locking.</title>
		<link>http://polyphase.ca/2008/06/01/apple-screen-lock/</link>
		<comments>http://polyphase.ca/2008/06/01/apple-screen-lock/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 18:42:56 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Switch]]></category>
		<category><![CDATA[apple mac osx quicksilver]]></category>

		<guid isPermaLink="false">http://polyphase.ca/?p=232</guid>
		<description><![CDATA[A few people have asked me how I lock my screen so conveniently when I walk away from my Mac. Here are two approaches that I&#8217;ve used. Both of them have relied on Quicksilver, a wonderfully powerful application that I &#8230; <a href="http://polyphase.ca/2008/06/01/apple-screen-lock/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few people have asked me how I lock my screen so conveniently when I walk away from my Mac. Here are two approaches that I&#8217;ve used. Both of them have relied on <a href="http://quicksilver.blacktree.com/">Quicksilver</a>, a wonderfully powerful application that I cannot stand to be without.</p>
<h2>Method 1 : Activate the Screen Saver on Hotkey activation.</h2>
<p>This one is slightly easier than the login window tip, since it does not require any supporting scripts. There are reasons to prefer one over the other, so I leave the choice to the reader. This one is easy, but requires that you set the security properties so that your screen saver requires a password to disable &#8211; otherwise there is no security benefit to this variant.</p>
<ol>
<li>Fire up Quicksilver&#8217;s Preference panel and select Triggers:<br />
<a rel="lightbox[trigger]" href="http://polyphase.ca/wordpress/wp-content/uploads/2008/06/qstrig.png"> <img src="http://polyphase.ca/images/qstrig.jpg" alt="qstrig.jpg" border="0"/></a>
</li>
<li>Create a new item that opens<br />
<code>/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app</code><br />
when the hotkey is pressed. You will have to navigate to this file in order to have Quicksilver find it. (Start by typing / S y s and navigate the directories.<br />
<a rel="lightbox[trigger]" href="http://polyphase.ca/wordpress/wp-content/uploads/2008/06/qstrigact.png"> <img align="center" src="http://polyphase.ca/images/qstrigact.jpg" alt="qstrigact.png" /></a>
</li>
<p>That&#8217;s it. Once you press your hotkey, you should see a little Quicksilver indication and the screen saver will start. Make sure you select a screen saver AND that you have your security settings to request a password to turn off the screen saver.</p>
<h2>Method 2 : Activate the Login Window on Hotkey activation.</h2>
<p>Using a tiny glue script (in bash, thankyouverymuch), we tell the session manager to suspend the current login session. I do not know if this <em>requires</em> fast-user switching to be activated, but I have it setup on my Mac.</p>
<p>I prefer this one since it uses less CPU and puts the machine in a state where someone else could use it more readily &#8212; this is handy at home where the machine is truly multiuser.</p>
<ol>
<li>Open the Quicksilver Triggers panel (as above).</li>
<li>Create <code>~/bin/LoginScreen.sh</code>. Open Terminal.app and paste this into it:
<pre>
[ -d ~/bin ] || mkdir ~/bin
cd ~/bin
cat > LoginScreen.sh << EOF
#!/bin/bash
x="/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession"
[ -x "$x" ] &#038;&#038; "${x}" -suspend
EOF
chmod +x ~/bin/LoginScreen.sh
</pre>
<p>If you are familiar with shell scripts and having your own <code>bin</code> directory, feel free to create LoginScreen.sh you own way. You can also just download it <a href="http://polyphase.ca/misc/LoginScreen.sh">here</a>, right click and save as in a well known place.
</li>
<li>Create a hotkey trigger that will launch <code>LoginScreen.sh</code>.<br />
Navigate to the script (perhaps in ~/bin) and get Quicksilver to launch it when you press the hotkey.</li>
</ol>
<h3> LoginScreen.sh </h3>
<p>This is a <em>super</em> simple script to tell the session manager to return to the login screen (suspend the active user's login session).</p>
<p><quote >
<pre style="margin: 2em 2em 2em 2em">
#!/bin/bash
x="/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession"
[ -x "$x" ] &#038;&#038; "${x}" -suspend
</pre>
<p></quote></p>
]]></content:encoded>
			<wfw:commentRss>http://polyphase.ca/2008/06/01/apple-screen-lock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

