<?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>Erik's Lab &#187; OS X</title>
	<atom:link href="http://erikslab.com/category/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://erikslab.com</link>
	<description>Things I'm working on, not necessarily functioning yet.</description>
	<lastBuildDate>Thu, 12 Jan 2012 14:20:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to deal with Spaces in Filenames?</title>
		<link>http://erikslab.com/2012/01/12/how-to-deal-with-spaces-in-filenames/</link>
		<comments>http://erikslab.com/2012/01/12/how-to-deal-with-spaces-in-filenames/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 14:16:36 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[AppleScript]]></category>

		<guid isPermaLink="false">http://erikslab.com/?p=102</guid>
		<description><![CDATA[As an AppleScripter, you always have to deal with the creativity of your users regarding filenames. A simple fact of life. AppleScript is handing you the tools on a silver platter. So, let&#8217;s deal with it. Why is a Space character a problem? A short detour is in order, I presume. The Mac (and the [...]]]></description>
			<content:encoded><![CDATA[<p>As an AppleScripter, you always have to deal with the creativity of your users regarding filenames. A simple fact of life. <em>AppleScript</em> is handing you the tools on a silver platter. So, let&#8217;s deal with it.</p>
<p><span id="more-102"></span></p>
<h3 id="whyisaspacecharacteraproblem">Why is a Space character a problem?</h3>
<p>A short detour is in order, I presume. The <em>Mac</em> (and the <em>iPhone/iPad</em>) encourage you to name things naturally, so instead of <code>MYGRIDEA.TXT</code> <em>Mac users</em> tend to use <code>My great ideas.txt</code> as filename, the same holds true for directory names. <em>OS X</em> is able to deal with spaces in filenames or paths without problems, the UNIX-underpinnings not so much. This means, should you try to feed the latter filename to a shell command, interesting things will happen.</p>
<p>Open AppleScript Editor and type the following line</p>
<pre><code>set myFileName to "My great ideas.txt"
</code></pre>
<p>and click &#8220;Run&#8221; to see the result in the lower pane of the editor window. I should look like this: <code>"My great ideas.txt"</code>.</p>
<p>Now if you want to hand this filename over to a command like <code>print</code>, <code>grep</code>, etc. then these programs will see not one single argument but three arguments:</p>
<ol>
<li><code>My</code></li>
<li><code>great</code></li>
<li><code>ideas.txt</code></li>
</ol>
<p>because the space character is used as a so called <em>delimiter</em>, thus separating (or splitting) your filename into three arguments to the program.</p>
<h3 id="howdoesapplescripthelpsmedealingwithspaces">How does AppleScript helps me dealing with Spaces?</h3>
<p>Good question, simple answer: Just tell <em>AppleScript</em> to do so. The magic happens by using <code>quoted form of</code>. For example</p>
<pre><code>set myFileName to quoted form of "My great ideas.txt"
</code></pre>
<p>gives you the following result: <code>"'My great ideas.txt'"</code>. The key here is the <em>quoting</em> done by <code>'</code>, these single quotes will be handed over to the program as part of the argument, thus telling the program to leave the spaces inside the quotes alone.</p>
<p>I told you, you just have to ask. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2012/01/12/how-to-deal-with-spaces-in-filenames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download additional content for FCPX and Motion 5</title>
		<link>http://erikslab.com/2011/06/21/download-additional-content-for-fcpx-and-motion-5/</link>
		<comments>http://erikslab.com/2011/06/21/download-additional-content-for-fcpx-and-motion-5/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 15:57:37 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://erikslab.com/?p=94</guid>
		<description><![CDATA[The new Final Cut Pro X is available in the App Store as of now. Some of the complaints I read in the usual channels circled around the fact that the supplied templates for Final Cut Pro X and Motion 5 seem to be smaller in weight as usual. Do not despair young padwan, help [...]]]></description>
			<content:encoded><![CDATA[<p>The new <a href="http://www.apple.com/finalcutpro/">Final Cut Pro X</a> is available in the <em>App Store</em> as of now. Some of the complaints I read in the usual channels circled around the fact that the supplied templates for <em>Final Cut Pro X</em> and <em>Motion 5</em> seem to be smaller in weight as usual. Do not despair young padwan, help is on the way. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>If you follow <a href="http://support.apple.com/kb/DL1394">this link</a>, then you will find, and I quote: &#8220;Over 1300 sound effects&#8221; and &#8220;Additional presets for the Space Designer plug-in&#8221;, courtesy of Apple (about 640 MB to download).</p>
<p>If you are more of the <em>Motion</em>-type, then following <a href="http://support.apple.com/kb/DL1395">this link</a> allows you to access about 1.15 GB of Motion-goodness like Templates, Graphics, and sample media.</p>
<p>May the bandwith-cap-defying™ deity of your choice be with you. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2011/06/21/download-additional-content-for-fcpx-and-motion-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging with launchd</title>
		<link>http://erikslab.com/2011/02/04/logging-with-launchd/</link>
		<comments>http://erikslab.com/2011/02/04/logging-with-launchd/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 11:04:35 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://erikslab.com/?p=75</guid>
		<description><![CDATA[Apple switched from cron to launchd a while ago, but the fact that launchd allows you to log the output of your program or script quite easily seems to be shrouded in mystery for no apparent reason. Do you know how to create/write logfiles using launchd-plists? If not, read on. Every program/script should write its [...]]]></description>
			<content:encoded><![CDATA[<p><em>Apple</em> switched from <code>cron</code> to <code>launchd</code> a while ago, but the fact that <code>launchd</code> allows you to log the output of your program or script quite easily seems to be shrouded in mystery for no apparent reason. Do you know how to create/write logfiles using <code>launchd</code>-plists? If not, read on.</p>
<p><span id="more-75"></span></p>
<p>Every program/script should write its messages to a logfile, period. It just makes sense to be able to figure out what happened or went wrong after the fact. So far, so obvious. A program or script usually takes advantage of, either some kind of framework to write the logs, or relays the work — by using <code>STDOUT</code> and <code>STDERR</code> — to the executing shell. (I know I&#8217;m simplifying here, but bear with me.) Let&#8217;s assume, that we are using a <em>bash</em>-script, controlled by <code>launchd</code>, to do some work and relay the logging to the shell. Meaning we use <code>echo</code> inside the script to write out diagnostic messages like so:</p>
<p><code>echo &quot;`date +&quot;%b %d %Y %H:%M&quot;` $0: Everything is peachy.&quot;</code></p>
<p>We write the date and time, the name of the program, and the message we want to convey. When run on the command-line, the message shows up in the terminal. When run via <code>launchd</code> there is no <code>STDOUT</code> to write to; the string probably ends up in the <code>system.log</code> and we have to search for it. Enter the magic of <code>launchd</code>.</p>
<p>The <em>PropertyList-1.0.dtd</em> for <code>launchd</code> luckily contains two keys to make our life easier, the first one is called <em>StandardOutPath</em> and is used inside a <em>launchd-plist</em> like so:</p>
<p><code>&lt;key&gt;StandardOutPath&lt;/key&gt;<br />
&lt;string&gt;/var/log/progname.log&lt;/string&gt;</code></p>
<p><code>launchd</code> interprets this key and string as &#8220;if there is something written to STDOUT, then write it to the file pointed to by the string.&#8221; In the example above to the file <code>/var/log/progname.log</code>. Great, but what about the errors? Glad you asked.</p>
<p>The second key is called <em>StandardErrorPath</em> and will process everything written to <code>STDERR</code>.</p>
<p><code>&lt;key&gt;StandardErrorPath&lt;/key&gt;<br />
&lt;string&gt;/var/log/progname_err.log&lt;/string&gt;</code></p>
<p>You could use the same file for both by using the same filename, should you be inclined to do so. I prefer to separate the messages.</p>
<p>Happy logging everyone.</p>
<p>Don&#8217;t you hate it when posts like this do not contain a full example? <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  I do. So here it goes:</p>
<p>The <em>bash</em>-script (named <code>sillyscript.sh</code>) doesn&#8217;t do much, but you get the idea:</p>
<p><code>#!/usr/bin/env bash<br />
MYLOGLINE=&quot;`date +&quot;%b %d %Y %H:%M&quot;` $0:&quot;<br />
echo &quot;$MYLOGLINE I&#8217;m alive!&quot;<br />
#uncomment to create an error<br />
#cp /testfoobar /tmp/`</code></p>
<p>And here is a simple <em>launchd</em>-plist to put the script in action:</p>
<p><code>&lt;?xml version=&quot;1.0" encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;<br />
&lt;plist version=&quot;1.0&quot;&gt;<br />
&lt;dict&gt;<br />
    &lt;key&gt;label&lt;/key&gt;<br />
    &lt;string&gt;com.erikslab.sillyscript&lt;/string&gt;<br />
    &lt;key&gt;ProgramArguments&lt;/key&gt;<br />
    &lt;array&gt;<br />
        &lt;string&gt;/Users/Shared/sillyscript/sillyscript.sh&lt;/string&gt;<br />
    &lt;/array&gt;<br />
    &lt;key&gt;StandardErrorPath&lt;/key&gt;<br />
    &lt;string&gt;/Users/Shared/sillyscript/sillyscript_err.log&lt;/string&gt;<br />
    &lt;key&gt;StandardOutPath&lt;/key&gt;<br />
    &lt;string&gt;/Users/Shared/sillyscript/sillyscript.log&lt;/string&gt;<br />
    &lt;key&gt;StartInterval&lt;/key&gt;<br />
    &lt;integer&gt;120&lt;/integer&gt;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;</code></p>
<p>Note that everything takes place in a folder named <code>sillyscript</code> located in <code>/Users/Shared</code>, meaning if you want to start trying using the example shown, you would have to create that folder.</p>
<p>Now back to work. What? Still not satisfied? OK.</p>
<p>Use</p>
<p><code>launchctl load ~/Library/LaunchAgents/com.erikslab.sillyscript.plist</code></p>
<p>(after copying the file <code>com.erikslab.sillyscript.plist</code> to <code>~/Library/LaunchAgents</code> of course) and watch your logfile in <code>/Users/Shared/sillyscript/</code> grow in two-minute intervals.</p>
<p>Again, happy logging everyone. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  (And don&#8217;t forget to <code>launchctl unload</code> and remove the plist after you are done playing with it. )</p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2011/02/04/logging-with-launchd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X: Go to (certain) Pref-Panes fast</title>
		<link>http://erikslab.com/2009/11/10/os-x-go-to-certain-pref-panes-fast/</link>
		<comments>http://erikslab.com/2009/11/10/os-x-go-to-certain-pref-panes-fast/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 10:06:35 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://erikslab.com/?p=65</guid>
		<description><![CDATA[Did you know that there is a shortcut to open certain panes in System Preferences in OS X? If you want to open the Sound-Pane in System Preferences then try this key combination: &#x2325; – any of the keycaps to modify the volume on your Mac The same goes for the Monitors-Pane: &#x2325; – keycap [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that there is a shortcut to open certain panes in <em>System Preferences</em> in <em>OS X</em>?</p>
<p>If you want to open the Sound-Pane in <i>System Preferences</i> then try this key combination:</p>
<p><kbd>&#x2325;</kbd> – <kbd>any of the keycaps to modify the volume on your Mac</kbd></p>
<p>The same goes for the Monitors-Pane:</p>
<p><kbd>&#x2325;</kbd> – <kbd>keycap to increase or decrease monitor backlight</kbd></p>
<p>Just a quick tip for the impatient. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Works in 10.5.x and 10.6.x.</p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2009/11/10/os-x-go-to-certain-pref-panes-fast/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tip: Launching Dashboard via AppleScript</title>
		<link>http://erikslab.com/2008/11/13/tip-launching-dashboard-via-applescript/</link>
		<comments>http://erikslab.com/2008/11/13/tip-launching-dashboard-via-applescript/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 08:26:13 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Dashboard]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/11/13/tip-launching-dashboard-via-applescript/</guid>
		<description><![CDATA[Just a short tip: Your Dashboard in OS X contains up to the minute information about things that are of interest to you, right? I use a script to launch iTunes and Mail in the morning while making coffee, the other thing I launch every morning is the Dashboard to get an overview of things [...]]]></description>
			<content:encoded><![CDATA[<p>Just a short tip: Your <em>Dashboard</em> in <em>OS X</em> contains up to the minute information about things that are of interest to you, right? I use a script to launch <i>iTunes</i> and <i>Mail</i> in the morning while making coffee, the other thing I launch every morning is the <em>Dashboard</em> to get an overview of things I want to know, e.g. weather-reports, stocks and the like.</p>
<p>It seems that it is not that widely known, that you are able to launch <em>Dashboard</em> via <em>AppleScript</em>, as well. If you got an error message like &#8216;Dashboard got an error: Application isn’t running.&#8217; while using <code>activate</code>, <code>launch</code> does the trick. It is as simple as that:</p>
<pre><code class="as">
<span class=bluebold>tell</span> <span class=bluereg>application</span> "Dashboard"
	<span class=bluereg>launch</span>
<span class=bluebold>end tell</span>
</code></pre>
<p>Bonus: If you are administering one or more <em>OS X servers</em>, then check your available Widgets in <em>Dashboard</em>, there is one to give you information about the vitals of your server(s).</p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/11/13/tip-launching-dashboard-via-applescript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X: Daylight Savings Time switch and launchd</title>
		<link>http://erikslab.com/2008/10/27/os-x-daylight-savings-time-switch-and-launchd/</link>
		<comments>http://erikslab.com/2008/10/27/os-x-daylight-savings-time-switch-and-launchd/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 11:30:37 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[launchd]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/10/27/os-x-daylight-savings-time-switch-and-launchd/</guid>
		<description><![CDATA[The end of the Daylight Time is near, this year, the switch takes place on November 2nd, to be precise. Usually no biggie, but Europe switched back last weekend and I switched a couple of jobs from cron to launchd, as prescribed by Apple, during the year on servers located in Europe. cron, the one [...]]]></description>
			<content:encoded><![CDATA[<p>The end of the <a href="http://aa.usno.navy.mil/faq/docs/daylight_time.php">Daylight Time</a> is near, this year, the switch takes place on November 2nd, to be precise. Usually no biggie, but Europe switched back last weekend and I switched a couple of jobs from <code>cron</code> to <code>launchd</code>, as prescribed by Apple, during the year on servers located in Europe.</p>
<p><code>cron</code>, the one available on <em>OS X</em>, is capable of handling the switch from <em>daylight time</em> to &#8216;normal&#8217; without problems. Meaning jobs starting between 2 AM and 3AM won&#8217;t run twice. I always thought, that this behavior is built into <code>launchd</code> as well. Long story short: Three OS X Servers started the jobs twice last weekend.</p>
<p>Just an FYI in case you need to know.</p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/10/27/os-x-daylight-savings-time-switch-and-launchd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X Server: Reset diradmin&#8217;s Password</title>
		<link>http://erikslab.com/2008/10/02/os-x-server-reset-diradmins-password/</link>
		<comments>http://erikslab.com/2008/10/02/os-x-server-reset-diradmins-password/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 11:46:20 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[OS X Server]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/10/02/os-x-server-reset-diradmins-password/</guid>
		<description><![CDATA[The admin-password does not work with the diradmin-account? First things first: Don&#8217;t panic! There might be a way out of this. What happened? The passwords for the administrative account on OS X Server, I&#8217;m talking about the one created during installation, and the diradmin-account are the same, right? Are you sure? They probably are, if [...]]]></description>
			<content:encoded><![CDATA[<p>The admin-password does not work with the <em>diradmin</em>-account? First things first:</p>
<ul>
<li><i>Don&#8217;t panic!</i></li>
<li>There might be a way out of this.</li>
</ul>
<h3>What happened?</h3>
<p>The passwords for the administrative account on <em>OS X Server</em>, I&#8217;m talking about the one created during installation, and the <em>diradmin</em>-account are the same, right? Are you sure? They probably are, if you didn&#8217;t change one of them. These two passwords are the same <i>after</i> the installation, because they have been synchronized <i>during</i> the installation. If you should change one of them later, then they won&#8217;t be synced again. Shouldn&#8217;t be a problem, though, everyone keeps records of vital data like this, most of the time.</p>
<p>On the other hand, if one of us sets up a machine, then said machine should get a healthy workout before deployment, to make sure the hardware is OK. This usually includes the installation and configuration of all needed hard- and software. So, in theory, the machine would be ready for deployment. But, during these tests, nobody cares about passwords; the system runs in a controlled environment and access from outside of this environment is either impossible or severely restricted. This could mean—if the <em>Open Directory</em>-user-accounts have been created during this phase—that nobody tried to connect to the directory-tree as <em>diradmin</em> after the change to the &#8220;real&#8221; administrative password. Same goes for periodic changes to the administrative password, depending on your policy.</p>
<h3>It happened, I cannot login as diradmin any more…</h3>
<p>Regardless how it happened, don&#8217;t do anything in a rush now; breathe. Spare yourself the trouble to try <code>passwd diradmin</code> as super-user, it won&#8217;t work; you need the old password to make changes. If you have access to the system, either physically or via <code>ssh</code>, ARD or screen-sharing, then the situation can be rectified.</p>
<p>If possible, make a backup of the system, seriously! Then retrace the steps in <a href="http://support.apple.com/kb/HT1194">How to reset the Open Directory administrator password</a> and you should be OK.</p>
<p>In a nutshell: The documents describes how to use <em>Workgroup Manager</em> to gather information about the password and uses <code>mkpassdb</code> to dump the password-database and overwrite the old password with a new one. It seems, that on 10.5 all you need to do is to use</p>
<p><code>sudo mkpassdb -dump</code></p>
<p>to get the <em>slot-ID</em> and</p>
<p><code>mkpassdb -setpassword [slot-ID]</code></p>
<p>executed as super-user, a.k.a. <code>root</code> (one way to get there is <code>sudo su</code>), to create a new password for <em>diradmin</em>.</p>
<p>The latter is my experience, your mileage my vary.</p>
<p><i>Disclaimer:</i> The fact that it worked for me, does not necessarily mean it will work for you. You have to do it on your own risk, I&#8217;m not responsible if something goes wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/10/02/os-x-server-reset-diradmins-password/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OS X: Capturing Packets</title>
		<link>http://erikslab.com/2008/06/02/os-x-capturing-packets/</link>
		<comments>http://erikslab.com/2008/06/02/os-x-capturing-packets/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 14:44:08 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/06/02/os-x-capturing-packets/</guid>
		<description><![CDATA[Being kind of &#8220;Solaris-infested&#8221; at times (a.k.a. old habits die hard), I had a hard time capturing network-packets on OS X the other day. Not the capturing in itself, but remembering to use tcpdump instead of snoop. The command I was looking for was sudo tcpdump host [ip-address] It lists the packets as they go [...]]]></description>
			<content:encoded><![CDATA[<p>Being kind of &#8220;Solaris-infested&#8221; at times (a.k.a. <i>old habits die hard</i>), I had a hard time capturing network-packets on OS X the other day. Not the capturing in itself, but remembering to use <code>tcpdump</code> instead of snoop. The command I was looking for was</p>
<p><code>sudo tcpdump host [ip-address]</code></p>
<p>It lists the packets as they go by, regardless if <code>[ip-address]</code> is the source or the destination. The use of <code>sudo</code> is a necessity on OS X, you&#8217;ll end up with a <code>tcpdump: no suitable device found</code>-message otherwise and rightly so, &#8220;normal&#8221; users have no rights to <del>snoop</del> tpcdump packets. <img src='http://erikslab.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/06/02/os-x-capturing-packets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X: The Location for &#8220;Folder Action Scripts&#8221;</title>
		<link>http://erikslab.com/2008/04/19/os-x-the-location-for-folder-action-scripts/</link>
		<comments>http://erikslab.com/2008/04/19/os-x-the-location-for-folder-action-scripts/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 19:27:10 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Folder Actions]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/04/19/os-x-the-location-for-folder-action-scripts/</guid>
		<description><![CDATA[Since it bit me a couple of days ago: The AppleScripts to be used as Folder Actions must be stored in ~/Library/Scripts/Folder Action Scripts or /Library/Scripts/Folder Action Scripts. The former is the location for Scripts available to the user of the account, the latter for all users of a machine. Don&#8217;t get fooled by the [...]]]></description>
			<content:encoded><![CDATA[<p>Since it bit me a couple of days ago: The AppleScripts to be used as <em>Folder Actions</em> must be stored in <code>~/Library/Scripts/Folder Action Scripts</code> or <code>/Library/Scripts/Folder Action Scripts</code>.</p>
<p>The former is the location for Scripts available to the user of the account, the latter for all users of a machine. Don&#8217;t get fooled by the fact that you are able to choose any script via the context-menu of a folder if <em>Folder Actions</em> are enabled.</p>
<p>Just in case you need to know. <img src='http://erikslab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/04/19/os-x-the-location-for-folder-action-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X: Repairing Permissions from the Command-Line</title>
		<link>http://erikslab.com/2008/04/03/os-x-repairing-permissions-from-the-command-line/</link>
		<comments>http://erikslab.com/2008/04/03/os-x-repairing-permissions-from-the-command-line/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 10:29:43 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://erikslab.com/2008/04/03/os-x-repairing-permissions-from-the-command-line/</guid>
		<description><![CDATA[Just a quick tip: Repairing the permissions on an OS X disk can be done from the command-line as well. The only caveat, you have to know the device of the volume. Getting the right device is easy: diskutil list The device-node in question is in the column titled IDENTIFIER. The device-path to use is [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick tip: Repairing the permissions on an OS X disk can be done from the command-line as well. The only caveat, you have to know the <em>device</em> of the volume. Getting the right device is easy:</p>
<p><code>diskutil list</code></p>
<p>The device-node in question is in the column titled <code>IDENTIFIER</code>. The device-path to use is the one with the name of the volume, e.g. if the column reads <code>disk0s2</code>, then the command would be:</p>
<p><code>diskutil repairPermissions /dev/disk0s2</code></p>
<p>You should see some kind of progress-bar in ASCII.</p>
<p>One thing to note though: Using the command does not prevent the &#8220;meditation&#8221; of the program after 20%. I&#8217;d be interested what the system is doing while it seems to mull over something when it is supposed to repair the permissions. <img src='http://erikslab.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://erikslab.com/2008/04/03/os-x-repairing-permissions-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

