<?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>skate dork dot com &#187; applescript</title>
	<atom:link href="http://www.sk8dork.com/tag/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sk8dork.com</link>
	<description>the blog of ron g</description>
	<lastBuildDate>Sat, 23 Apr 2011 17:38:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>lock screen in os x</title>
		<link>http://www.sk8dork.com/2009/01/lock-screen-in-os-x/</link>
		<comments>http://www.sk8dork.com/2009/01/lock-screen-in-os-x/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 16:48:22 +0000</pubDate>
		<dc:creator>ronji</dc:creator>
				<category><![CDATA[techie]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[aspire one]]></category>
		<category><![CDATA[hackintosh]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[quicksilver]]></category>

		<guid isPermaLink="false">http://www.sk8dork.com/?p=61</guid>
		<description><![CDATA[i love os x, and now that i have it running well on my acer aspire one i&#8217;ve been sorting out the little things. the biggest little thing for me is being able to lock the screen quickly and easily. for some reason, even though i have the screensaver set to require a password, it [...]]]></description>
			<content:encoded><![CDATA[<p>i love os x, and now that i have it running well on my acer aspire one i&#8217;ve been sorting out the little things. the biggest little thing for me is being able to lock the screen quickly and easily. for some reason, even though i have the screensaver set to require a password, it just doesn&#8217;t work. i think it may have something to do with disabling sleep, which is practically a required step in the setup because sleep doesn&#8217;t work, and closing the lid would otherwise attempt to sleep which would result in rebooting the system. i don&#8217;t like to have to do two clicks into a menu bar function, so after a bit of searching i have found my answer.</p>
<p>i found the answer in <a href="http://forums.macosxhints.com/showthread.php?t=87489" target="_blank">this forum thread</a>. some applescript to switch to the login window. note that for this to work you need to enable fast user switching and disable automatic login. switching to the login window will suspend your session, keeping everything open and even pausing itunes if necessary. of course, i didn&#8217;t want to download Spark for hotkeys. i&#8217;m sure it&#8217;s a fine program, but it&#8217;s just something else for me to download and install and that&#8217;s not what i was looking for.</p>
<p>however, i recall reading somewhere that <a title="blacktree - home of quicksilver" href="http://www.blacktree.com/" target="_blank">quicksilver</a>, my very favorite keystroke app, could do applescript stuff, and it can do custom hotkeys. i already had quicksilver installed, so i went into quicksilver&#8217;s preferences, custom triggers, copied the code text and pasted it into a custom quicksilver trigger like so:</p>
<div id="attachment_62" class="wp-caption alignnone" style="width: 419px"><a href="http://www.sk8dork.com/wp-content/uploads/2009/01/picture-1.png"><img class="size-full wp-image-62" title="custom trigger config" src="http://www.sk8dork.com/wp-content/uploads/2009/01/picture-1.png" alt="picture-1" width="409" height="220" /></a><p class="wp-caption-text">login window custom trigger (click image for large view)</p></div>
<p>so no matter where i am, all i do is press windows key + L and i get the login window, securely locking my screen. the windows key on my aspire one is really the option key in os x, and in windows i always use win + L to lock the screen, so that is why i chose this key combination. i&#8217;m sure this will work with a legit copy of os x on a mac, in case you were wondering.</p>
<p><em>Update:</em> so, i updated to 10.5.6 and now the screen is successfully locked when the screensaver is activated, so that&#8217;s great, but now that i have the login screen thing working i think i&#8217;ll either disable the password on screensaver option or use them both depending on how i&#8217;m feeling =p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sk8dork.com/2009/01/lock-screen-in-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

