<?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>Adam Merrifield { the collective } &#187; apple</title>
	<atom:link href="http://adam.merrifield.ca/tag/apple/feed/" rel="self" type="application/rss+xml" />
	<link>http://adam.merrifield.ca</link>
	<description>the collective thoughts and web works of adam merrifield</description>
	<lastBuildDate>Sun, 05 Sep 2010 09:59:00 +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>Apple Baked Oatmeal</title>
		<link>http://adam.merrifield.ca/2009/11/29/apple-baked-oatmeal/</link>
		<comments>http://adam.merrifield.ca/2009/11/29/apple-baked-oatmeal/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 15:11:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yummy]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[breakfast]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[oatmeal]]></category>
		<category><![CDATA[recipe]]></category>

		<guid isPermaLink="false">http://adam.merrifield.ca/2009/11/29/apple-baked-oatmeal/</guid>
		<description><![CDATA[Shared by rbngndl Category: Breakfast &#160; Ingredients 1 C home made applesauce with cinnamon/sugar3/4 C brown sugar1/2 c white sugar4 eggs6 C quick oats4 tsp baking powder1 tsp salt and cinnamon1 tsp cinnmon or 1/2 cinnamon and 1/2 apple pie spice2 C milk2 apples peeled and chopped (I like granny smith)2 C coconut1 -2 C [...]]]></description>
			<content:encoded><![CDATA[<h3>Shared by rbngndl</h3>

<div>Category: Breakfast</div>

<p>&nbsp;</p>

<h2>Ingredients</h2>

<ol><li>1 C home made applesauce with cinnamon/sugar</li><li>3/4 C brown sugar</li><li>1/2 c white sugar</li><li>4 eggs</li><li>6 C quick oats</li><li>4 tsp baking powder</li><li>1 tsp salt and cinnamon</li><li>1 tsp cinnmon  or 1/2 cinnamon and 1/2 apple pie spice</li><li>2 C milk</li><li>2 apples peeled and chopped (I like granny smith)</li><li>2 C coconut</li><li>1 -2 C craisins or raisins</li><li>1/2 C chopped walnuts or pecans</li></ol>

<h2>Directions</h2>

<ol><li>Beat together 1st four ingredients. Add remaining, mix well. Add apples, coconut, craisins last. Sprinkle nuts on top and pour into greased 9 x 13 and cover and refrigerate overnight.  Remove from refrigerator while you preheat the oven. Or go ahead and bake at 350 for about 45 minutes or until center is set.</li></ol>

<p>Search, share, and cook your recipes on Mac OS X with <a href='http://acaciatreesoftware.com/souschef/'>SousChef</a>!</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2007/04/09/witch-app-is-witch/" title="Witch app is witch (April 9, 2007)">Witch app is witch</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2010/01/21/turkey-rotini-in-cream-sauce/" title="Turkey Rotini in Cream Sauce (January 21, 2010)">Turkey Rotini in Cream Sauce</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2008/01/15/there-is-something-fishy-in-the-air-my-2008-macworld-prediction/" title="There is something fishy in the air&#8230; my 2008 Macworld prediction (January 15, 2008)">There is something fishy in the air&#8230; my 2008 Macworld prediction</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2008/01/12/the-spanish-inquisitor-ition-get-real/" title="The Spanish Inquisitor-ition? Get real! (January 12, 2008)">The Spanish Inquisitor-ition? Get real!</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/11/29/apple-baked-oatmeal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RapidWeaver Add-ons Version Identifier</title>
		<link>http://adam.merrifield.ca/2009/11/03/rapidweaver-add-ons-version-identifier/</link>
		<comments>http://adam.merrifield.ca/2009/11/03/rapidweaver-add-ons-version-identifier/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 18:12:28 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rapidweaver]]></category>
		<category><![CDATA[rw]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://seydoggy.com/?p=597</guid>
		<description><![CDATA[One thing RapidWeaver does poorly &#8212; at this current moment &#8212; is help the end user determine the product version they are using on any given 3rd party add-on. Knowing your add-ons (theme or plugin) version number is critical when asking for support and is often one of the first things the developer will ask [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://images.seydoggy.com/RapidWeaver_Add-ons_Version_Identifier-20091103-105935.jpg" alt="RapidWeaver Add-ons Version Identifier" class="image-left"/>One thing RapidWeaver does poorly &#8212; at this current moment &#8212; is help the end user determine the product version they are using on any given 3rd party add-on. Knowing your add-ons (theme or plugin) version number is critical when asking for support and is often one of the first things the developer will ask you for.</p>

<p>If you know where the add-ons are kept (<code>~/Library/Application Support/RapidWeaver/</code>) then you might be able to determine a plugin or themes version number with the Finder, or if you have RapidWeaver open you can find out a plugin&#8217;s version by opening the plugin browser, or if you show a themes package contents and&#8230;</p>

<p>Well, I like to have these sorts of things at my fingertips and do as little thinking as possible, so I wrote an AppleScript to gather this information for me no matter where I am or what I am doing<a href="http://seydoggy.com/2009/11/03/rapidweaver-add-ons-version-identifier/#a_091103113228">*</a>:</p>

<pre><code>-- file types to choose from
set rwTypeArray to {"Theme", "Plugin"}

-- choose from those file types
set rwTypeLong to {choose from list rwTypeArray ¬
    with prompt "Which RapidWeaver product type ¬
        you like to find the version of?" ¬
    with title "Theme or Plugin"} as string

-- logic from result
if rwTypeLong is "Theme" then
    set rwType to "rwtheme"
else
    set rwType to "rwplugin"
end if

-- get name of hard drive
tell application "System Events"
    set diskName to (get name of startup disk) as string
end tell

-- get name of user
set userName to (do shell script "whoami") as string

-- select file from RW directory
tell application "Finder"
    set rwFile to (choose file with prompt ¬
        "Please select your RapidWeaver " &amp; rwTypeLong &amp; ":" ¬
        default location (diskName &amp; ":Users:" &amp; userName &amp; ¬
            ":Library:Application Support:RapidWeaver" as alias) ¬
        of type rwType without invisibles)

    -- read version number
    tell application "System Events"
        set rwInfo to (get version of the file (rwFile as string))
    end tell

    -- and display it
    if rwInfo = "" then
        display dialog ¬
            "It seems that your " &amp; rwTypeLong &amp; ¬
                " doesn't have a version number that I can read. ¬
                Sorry.\n\n¬
                Would you like me to reveal it's ¬
                package contents for you?" ¬
            buttons {"Cancel", "Yes"} default button (2)
        set rwPath to rwFile &amp; "Contents" as text
        open rwPath
    else
        display dialog "The version information:\n\n" &amp; rwInfo &amp; ¬
            "\n\n ...has been copied to your clipboard." ¬
        buttons {"OK"} default button (1)
        -- copy to clipboard
        set the clipboard to rwInfo

    end if
end tell
</code></pre>

<h3>Notes</h3>

<p><span id="a_091103113228">* If a theme is to have it&#8217;s version number read, it must have an Info.plist in it&#8217;s package contents. Some theme developers do not include this file. For those that don&#8217;t, the script will reveal the theme&#8217;s package contents so that you can inspect the version number at the bottom of the Theme.plist file</span></p>

<h3>Download</h3>

<p>Get your fresh copy of <a href="http://www.codecollector.net/view/BB433BE1-0BD0-43C6-AE7A-CFEE8E623AB8" title="RapidWeaver_Addons_Version.scpt">RapidWeaver&#95;Addons&#95;version.scpt</a> from CodeCollector.net</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/02/18/life-as-a-theme-developer/" title="Life As a Theme Developer (February 18, 2009)">Life As a Theme Developer</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/" title="Creating Unique ID&#039;s For&#8230; Anything! (October 27, 2009)">Creating Unique ID&#039;s For&#8230; Anything!</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2007/07/30/pathfinder-is-the-only-finder-you-need/" title="Pathfinder is the only Finder you need (July 30, 2007)">Pathfinder is the only Finder you need</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/02/01/web-search-with-quicksilver-the-definitive-how-to/" title="Web Search with Quicksilver: how-to (February 1, 2008)">Web Search with Quicksilver: how-to</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2009/01/26/use-rapidweavers-pathto-syntax-in-javascript-files/" title="Use RapidWeaver&#039;s %pathto()% syntax in javascript files (January 26, 2009)">Use RapidWeaver&#039;s %pathto()% syntax in javascript files</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/11/03/rapidweaver-add-ons-version-identifier/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating Unique ID&#039;s For&#8230; Anything!</title>
		<link>http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/</link>
		<comments>http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 01:14:59 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[bundles]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unique id]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/10/27/creating-unique-ids-for-anything/</guid>
		<description><![CDATA[There are numerous reasons you might need a unique identifier on something; you upload files with common names to the same ftp site, you use the id attribute for internal links on a blog that might display multiple posts (the chances of repeating yourself are good), you want to sign your emails with a unique, [...]]]></description>
			<content:encoded><![CDATA[<p>There are numerous reasons you might need a unique identifier on something; you upload files with common names to the same ftp site, you use the id attribute for internal links on a blog that might display multiple posts (the chances of repeating yourself are good), you want to sign your emails with a unique, one time id for your own verification&#8230; Whatever the case, a unique id could come in handy.</p>

<p>The easiest thing to do is use a timestamp and a shell script can do that easily enough for us. For everyday use, the year, month, day, hour, minutes and seconds should suffice (unless you need multiple unique id&#8217;s per second). Here is how the bash script would look:</p>

<pre><code>date +%y%m%d%H%M%S
</code></pre>

<p>Entering this string into the Terminal.app would yield a twelve digit number like this:</p>

<pre><code>091027191546
</code></pre>

<p>The first pair of digits is the year, the second pair is the month, the third pair is the day, then the hour, minutes and seconds (all in pairs). Run this script in Terminal.app as many times as you like and you will never get the same number.</p>

<p>So you could enter this into your terminal every time you wanted a unique id&#8230; or you could make this shell script work <em>for</em> you from anywhere.</p>

<h2>TextMate Snippet</h2>

<p><img src="http://images.seydoggy.com/Unique_ID_TextMate_Snippet_in_Bundle_Editor-20091027-191359.jpg" alt="TextMate Snippet for Unique ID" class="image-right"/> TextMate makes running shell scripts dead easy &#8212; all you need to do is create your own snippet. To do this:</p>

<ul>
<li>open your Bundle editor &#8212; <code>Bundles &gt; Bundle Editor &gt; Show Bundle Editor</code> <strong><em>or</em></strong> <code>⌃⌥⌘B</code></li>
<li>create a new bundle (if you don&#8217;t already have your own) from the + icon</li>
<li>within that bundle create a new snippet from the + icon</li>
<li><p>in the edit window, type:</p>

<pre><code>`date +%y%m%d%H%M%S`
</code></pre></li>
<li>define a Tab Trigger or Key Equivalent</li>
<li>leave the scope selector blank to have the snippet apply to all language types</li>
</ul>

<p>Now you have a snippet that is accessible in any language scope you use TextMate for. This is handy if you write reference links in HTML articles, such as:</p>

<pre><code>&lt;a href="#note_091027194043"&gt;See this note&lt;/a&gt;
&lt;div id="note_091027194043"&gt;
    This is the special note I wanted you to see.
&lt;/div&gt;
</code></pre>

<p>Or for reference style links in MarkDown:</p>

<pre><code>Check out our site, [seyDoggy][a_091027194631], for some
really cool tips and tricks.

[a_091027194631]: http://www.seydoggy.com/  "seyDoggy's really cool site"
</code></pre>

<h3>Download</h3>

<p>Download your fresh copy of &#8220;<a href="http://www.seydoggy.com/downloads/UniqueID.tmSnippet.zip" title="Download from seyDoggy.com">Unique ID.tmSnippet</a>&#8221; from seyDoggy.com.</p>

<h2>AppleScript to clipboard</h2>

<p><img src="http://images.seydoggy.com/UniqueID_AppleScript_for_creating_unique_id_s-20091027-195458.jpg" alt="UniqueID AppleScript for creating unique id's" class="image-right"/>Say you&#8217;re not a TextMate user but you still want a quick way to run this shell script with as little effort as possible. AppleScript makes quick work of this task with it&#8217;s <code>do shell script</code> functionality. We need to make an AppleScript that runs the shell script, then copies the results to the clipboard. Then we can paste that result into what ever we&#8217;re working with at the time; file renaming, email signing, etc&#8230;</p>

<p>Here is how the script looks:</p>

<pre><code>set uniqueID to (do shell script "date +%y%m%d%H%M%S")
set the clipboard to uniqueID
display alert "\"" &amp; uniqueID &amp; "\"" &amp; "Has been copied to your ¬
    clipboard" giving up after 1
</code></pre>

<h3>Download</h3>

<p>Get your fresh copy of &#8220;<a href="http://www.codecollector.net/view/55260B3D-599D-489A-BC7E-C51AF597B2D0" title="Download from CodeCollector.net">UniqueID.scpt</a>&#8221; from CodeCollector.net</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/11/03/rapidweaver-add-ons-version-identifier/" title="RapidWeaver Add-ons Version Identifier (November 3, 2009)">RapidWeaver Add-ons Version Identifier</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/" title="Keeping unused hard disks unmounted (February 12, 2009)">Keeping unused hard disks unmounted</a> (7)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2009/05/13/the-little-know-clipboard-app-that-can/" title="The Little Know Clipboard App That Can (May 13, 2009)">The Little Know Clipboard App That Can</a> (2)</li>
	<li><a href="http://adam.merrifield.ca/2007/03/27/the-bigbox/" title="The BigBox (March 27, 2007)">The BigBox</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enabling Double Arrows in the Scroll Bar</title>
		<link>http://adam.merrifield.ca/2009/03/09/enabling-double-arrows-in-the-scroll-bar/</link>
		<comments>http://adam.merrifield.ca/2009/03/09/enabling-double-arrows-in-the-scroll-bar/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 15:32:15 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/03/09/enabling-double-arrows-in-the-scroll-bar/</guid>
		<description><![CDATA[Ohh, ohh, ohh, I can&#8217;t forget this one! This is one of those options you forgot you enabled with a utility like Onyx. So when you go and do your clean install of OS X and realize that some things are just not the same as they were, it&#8217;s the the little things like having [...]]]></description>
			<content:encoded><![CDATA[<p>Ohh, ohh, ohh, I can&#8217;t forget this one! This is one of those options you forgot you enabled with a utility like <a href="http://www.titanium.free.fr/pgs/english.html" title="Titanium Software">Onyx</a>. So when you go and do your clean install of OS X and realize that some things are just not the same as they were, it&#8217;s the the little things like having double arrows at the top and bottom (or left and right) of a scroll bar that you miss.</p>

<p>Having vowed to take matters into my own hands with this install and being acutely aware of every system hack I make, I am documenting everything I do (on this blog) and I am making sure it&#8217;s something I can control via the terminal. So, instead of using Onyx, here is the terminal hack for enabling double arrows in your scroll bars:</p>

<div style="margin-bottom: 1em; padding: 5px; border:1px solid; width:98%; overflow:scroll">
<pre>defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth</pre>
</div>

<p>If you ever need to go back you just open the System Preferences (<code>/Applications/System Preferences.app</code>), click on appearance and choose one of the two defaults from &#8220;Place scroll arrows:&#8221;; &#8220;Together&#8221; or &#8220;At top and bottom&#8221;.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/" title="Rebuilding after all of these years! (February 10, 2009)">Rebuilding after all of these years!</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/02/12/mac-os-x-1052-is-here/" title="Mac OS X 10.5.2 is here! (February 12, 2008)">Mac OS X 10.5.2 is here!</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2007/10/09/look-and-learn-your-way-to-better-productivity/" title="Look and learn your way to better productivity (October 9, 2007)">Look and learn your way to better productivity</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/03/09/enabling-double-arrows-in-the-scroll-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto mount/unmount your Mac volumes when required</title>
		<link>http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/</link>
		<comments>http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 18:25:39 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[unmount]]></category>
		<category><![CDATA[volumes]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/</guid>
		<description><![CDATA[Earlier this month you might recall the solution I gave you for keeping unused volumes unmounted on your mac. The next part of the equation, automatically mounting those volumes when needed to run my backup scheme, took me a little longer to sort out. In fact I wasn&#8217;t able to write a solution on my [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this month you might recall the solution I gave you for <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/" title="seyDoggy Web and Graphic Design - seyDoggy weblog - my thoughts on the web and the mac">keeping unused volumes unmounted</a> on your mac. The next part of the equation, automatically mounting those volumes when needed to run my backup scheme, took me a little longer to sort out. In fact I wasn&#8217;t able to write a solution on my own, try as I might, so I finally went searching for one.</p>

<p>I needed a script of some sort that would mount my unmounted volumes when it was time for <a href="http://www.econtechnologies.com/pages/cs/chrono_overview.html" title="ChronoSync | Perform File and Folder Synchronizations and Backups Like Clockwork | Econ Technologies">ChronoSync</a> to run and then unmount my volumes when ChronoSync was finished. After several IRC queries, forum posts here and there and countless Google searches I finally stumbled upon <a href="http://www.macosxhints.com/article.php?story=20060308154312630" title="macosxhints.com - A script to mount/unmount a volume on app launch">this post</a> at Mac OS X Hints. This solution was the answer I needed and it works perfectly. I won&#8217;t recap the whole thing here, but I will give you the bits that were most important to me.</p>

<p>Copy the following script into <em>Script Editor.app</em> (<code>/Applications/AppleScript/Script Editor.app</code>), changing the <code>diskname</code> and <code>appname</code> to suite your needs:</p>

<div style="margin-bottom: 1em; padding: 5px; border:1px solid; width:98%; overflow:scroll">
    <pre>property diskname : "MyDisk"
property appname : "ChronoSync"

on idle
  tell application "System Events"
    set x to the name of every process
    if appname is not in x then
      if (exists the disk diskname) then
        do shell script "disktool -l | egrep -i "Mountpoint = '/Volumes/" &#038; diskname &#038; "" | cut -d\' -f2 | xargs -n1 disktool -p"
      end if
    else
      do shell script "disktool -l | egrep -i "Mountpoint = '', fsType = 'hfs', volName = '" &#038; diskname &#038; "" | cut -d\' -f2 | xargs -n1 disktool -m"
    end if
  end tell
end idle</pre>
</div>

<p>Next you need to save it as a bundled app and select &#8220;<em>Stay Open</em>&#8220;, give it a useful name and save it where you will be able to find it. In my case I chose <code>/Library/Scripts/ChronoSync/</code>:</p>

<p><img src="http://images.seydoggy.com/Save_as_MountDisk_app_bundle-20090225-134228.jpg" alt="Save as dialog box in Script Editor.app" title="Save your script as a bundled application" /></p>

<p>Then you have to make it run in the background. To do this, find your newly created app, right click on it, &#8220;<em>Show Package Contents</em>&#8220;, find the Info.plist and open that in your favorite plain text editor. Above the key that says <code>CFBundleAllowMixedLocalizations</code> you want to add the following:</p>

<p><code><pre>&lt;key&gt;LSBackgroundOnly&lt;/key&gt;
&lt;string&gt;1&lt;/string&gt;</pre></code></p>

<p>Get out of the package and find your app again and double click on it. It should launch in the background but not show in the dock. You can see that it&#8217;s running by opening <em>Activity Monitor.app</em> (<code>/Applications/Utilities/Activity Monitor.app</code>):</p>

<p><img src="http://images.seydoggy.com/Activity_Monitor_showing_MountDisk_app_running-20090225-134317.jpg" alt="Activity Monitor showing our disk mounting app working" title="Activity Monitor showing our disk mounting app working" /></p>

<p>Now to truly make this process automated, you need this app to be on when your computer is on, so it needs to launch when you login. So open your Accounts preference pane in System Preferences.app (<code>/Applications/System Preferences.app</code>), select the <em>Login Items</em> tab, select the <img src="http://images.seydoggy.com/plus_button-20090225-131250.jpg" alt="plus button" title="plus button" /> button and add your newly created app:</p>

<p><img src="http://images.seydoggy.com/add_the_new_disk_mounting_app_to_your_login_items-20090225-134157.jpg" alt="add your newly created disk mounting app to your login items" title="add your newly created disk mounting app to your login items" /></p>

<p>And that&#8217;s it! Next time your backup program fires up to do it&#8217;s regularly scheduled backups, your disk mounting app will mount your volume, wait for your backup app to finish and then quietly tuck your volume back up for the night.</p>

<h2>Other references</h2>

<ol>
<li><a href="http://www.macosxhints.com/article.php?story=20060308154312630" title="macosxhints.com - A script to mount/unmount a volume on app launch">A Script to mount/unmount a volume on app launch</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20040905112951299" title="macosxhints.com - An AppleScript to mount, run, unmount a disk image">An AppleScript to mount, run, unmount a disk image</a></li>
<li><a href="http://www.well.com/~jfw/software/mountpart/" title="John F. Whitehead - MountPart - Mount/Unmount Individual Partitions">MountPart</a></li>
</ol>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/" title="Keeping unused hard disks unmounted (February 12, 2009)">Keeping unused hard disks unmounted</a> (7)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/25/my-top-5-web-development-tools/" title="My top 5 web development tools (August 25, 2008)">My top 5 web development tools</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/07/23/compulsive-blogging-part-4/" title="Compulsive Blogging Part 4 (July 23, 2007)">Compulsive Blogging Part 4</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AppTrap; the unistaller that makes sense</title>
		<link>http://adam.merrifield.ca/2009/02/24/apptrap-the-unistaller-that-makes-sense/</link>
		<comments>http://adam.merrifield.ca/2009/02/24/apptrap-the-unistaller-that-makes-sense/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 21:31:06 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/24/apptrap-the-unistaller-that-makes-sense/</guid>
		<description><![CDATA[One thing that&#8217;s become increasingly important to me over the years is uninstallers. If an app doesn&#8217;t come with one I am reluctant to install it. It became painfully clear recently just how much crap application leave behind when you are done with them and banish them to the trash. In the last few years [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that&#8217;s become increasingly important to me over the years is uninstallers. If an app doesn&#8217;t come with one I am reluctant to install it. It became <a href="http://www.seydoggy.com/2009/02/10/rebuilding-after-all-of-these-years/" title="seyDoggy Web and Graphic Design - seyDoggy weblog - my thoughts on the web and the mac">painfully clear recently</a> just how much crap application leave behind when you are done with them and banish them to the trash.</p>

<p>In the last few years a number of apps have cropped up that not only remove the app, but all of it&#8217;s associated plist files and folders and what ever peripherals the app has added to your system. I have been using <a href="http://www.appzapper.com/" title="AppZapper - The uninstaller Apple forgot.">AppZapper</a> for no better reason than in was there, packaged with some Delicious Generation bundle of the time (probably <a href="http://www.macheist.com/" title="MacHeist &raquo; Welcome">Macheist</a>), but it always struck me as odd that I would have to open an app to move another app to the trash. I presume it&#8217;s just to show off their artwork and screen flashy effect more than any practical reason. But to me it just seems like one step too many.</p>

<p>In my hunt for something smarter, I came across <a href="http://konstochvanligasaker.se/apptrap/" title="AppTrap">AppTrap</a>. This just makes sense to me. It sits in waiting, in your preference pain and if you happen to drop an app in the trash, it pops up and asks if you to get rid of the other crud that goes with it. How smart is that?</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2008/06/24/seydesign-2008-is-nearly-complete/" title="seyDesign 2008 is nearly complete (June 24, 2008)">seyDesign 2008 is nearly complete</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/" title="Auto mount/unmount your Mac volumes when required (February 25, 2009)">Auto mount/unmount your Mac volumes when required</a> (2)</li>
	<li><a href="http://adam.merrifield.ca/2008/02/01/web-search-with-quicksilver-the-definitive-how-to/" title="Web Search with Quicksilver: how-to (February 1, 2008)">Web Search with Quicksilver: how-to</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2008/06/26/we-finally-launched-seydesign-2008/" title="We finally launched seyDesign 2008 (June 26, 2008)">We finally launched seyDesign 2008</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/24/apptrap-the-unistaller-that-makes-sense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Give Apples New Safari 4 Beta a Spin</title>
		<link>http://adam.merrifield.ca/2009/02/24/i-give-apples-new-safari-4-beta-a-spin/</link>
		<comments>http://adam.merrifield.ca/2009/02/24/i-give-apples-new-safari-4-beta-a-spin/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 15:34:04 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[mind]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/24/i-give-apples-new-safari-4-beta-a-spin/</guid>
		<description><![CDATA[Apple announced today the launch of their Safari 4 beta program that claims to lead the way with innovation. I had to test this claim so I immediately downloaded it and gave it a spin. Here are my findings: On initial launch you are presented with the &#8220;Top Sites&#8221; window in which it appears that [...]]]></description>
			<content:encoded><![CDATA[<p>Apple announced today the launch of their <a href="http://www.apple.com/safari/" title="Apple - Safari - Introducing Safari 4 - See the web in a whole new way">Safari 4 beta program</a> that claims to lead the way with innovation. I had to test this claim so I immediately downloaded it and gave it a spin. Here are my findings:</p>

<ul>
<li>On initial launch you are presented with the &#8220;Top Sites&#8221; window in which it appears that Safari scours your history for the most frequently visited sites in your recent cache and then throws up their thumbnails in a Core Animation like black gallery for you to pick from. Selecting the edit button allows you to remove items and make others sticky. I presume you can also add others that might actually be more indicative of your &#8220;Top Sites&#8221;. Again, in true Apple form, Apple seems to be hinging the success of a product on visual wow factor, but admittedly I could see myself making use of this.</li>
<li>My next reaction was when I created a new tab and found that, a la Google Chrome, the tabs are on top. Why? While I will most certainly get used to it, what is the actual reason for this? I can&#8217;t find and difference in their functionality apart from the fact that you can only drag them about from their corner. Aside from that you can still drag them, move them from window to window, create a new window with each tab&#8230; there is one option I hadn&#8217;t noticed in previous version, &#8220;Add bookmark for these X tabs&#8221;. Is that new?</li>
<li>Coverflow in Safari&#8230; there have been a few plugins to address this in the past. I guess they are history now. Do I need Cover Flow in Safari? I don&#8217;t need it iTunes or Finder so I probably won&#8217;t use it here either. But that said, it must be a popular enough technology if they keep throwing it in to their software.</li>
<li>History search. Now <em>that</em> I like! I have always found searching the the history in the bookmarks folder to be painful and unproductive. This history search is insanely fast and (in Cover Flow form) even shows you screen shots of the sites that match your search terms.</li>
<li>It claims to be faster, using the Nitro Engine. It could be but browsers and web technology today is getting so fast I would be hard pressed to notice the difference. It does seem to be faster overall but am I reacting to the guts of a finely tuned OS X Cocoa application or the page load? One note I will make about making browsers faster (and Safari 3 is already guilty of this), they cache things&#8230; unnaturally so which can make web development a nightmare. Safari 3 already caches it&#8217;s javascript and images in ways that cause web developers to have to reset their browsers all too often just to get an accurate response on their new projects. And faster also means pre-load, again which Safari 3 is bad for. Safari 3 will scour your main CSS file in search of things to load (like background images), whether or not that <em>thing</em> is actually needed or even being used. I hope Safari 4 handles this a little better.</li>
<li>The newish developer tools are nice (if your weren&#8217;t already playing with them in webkit), but I don&#8217;t know&#8230; it&#8217;s still not FireBug. You still can&#8217;t select code in the element window! How good is debuggin if I can&#8217;t edit what&#8217;s there or even copy and past it to a text editor? Seriously? As far as developer tools, these will give a glimpse into how your page is working, but they&#8217;re not much good for anything else.</li>
<li>The full page zoom could be useful (hopefully not for a few years for me yet), but wow does it ever slow things down. Zoom in once and try page scrolling&#8230; not so fast now.</li>
<li>I love, love, love the new address bar! If I am going to interface with browser in any way, it&#8217;s through the address bar so this improvement is quite welcome. Basically when you start typing in the address bar you are presented with much the same information your were before, but it&#8217;s clearly defined in two categories; history and bookmarks. In both cases it presents you with the site title followed by the URL which makes it very easy to get your bearings.</li>
<li>The search field is now really slick too. It&#8217;s along the lines of Inquisitor, offering you suggestions and previous search queries. Very nice!</li>
<li>CSS Animation, CSS Effects, CSS 3 Web Fonts&#8230; just more things to tease us web developers with. Stuff we won&#8217;t be able to use in the real world until all other browsers catch up. We can always dream though&#8230;</li>
</ul>

<p>Overall, I think this is two things combined; a promising look at where web browsers should be and a sobering reminder of how much waiting for other browsers to get there will suck.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2008/08/25/my-top-5-web-development-tools/" title="My top 5 web development tools (August 25, 2008)">My top 5 web development tools</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/05/27/flipside5-inc-to-deliver-world-class-iphone-games/" title="FlipSide5, Inc. to Deliver World-Class iPhone Games (May 27, 2008)">FlipSide5, Inc. to Deliver World-Class iPhone Games</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/07/23/compulsive-blogging-part-4/" title="Compulsive Blogging Part 4 (July 23, 2007)">Compulsive Blogging Part 4</a> (4)</li>
	<li><a href="http://adam.merrifield.ca/2008/02/01/web-search-with-quicksilver-the-definitive-how-to/" title="Web Search with Quicksilver: how-to (February 1, 2008)">Web Search with Quicksilver: how-to</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2008/11/05/to-be-strict-or-not-to-be/" title="To be Strict or not to be (November 5, 2008)">To be Strict or not to be</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/24/i-give-apples-new-safari-4-beta-a-spin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping unused hard disks unmounted</title>
		<link>http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/</link>
		<comments>http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 05:02:20 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[hard disk]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rw]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unmount]]></category>
		<category><![CDATA[volumes]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/</guid>
		<description><![CDATA[The question How do you prevent Mac OS X Leopard from auto mounting disks, drives and volumes when the computer boots up or a user logs in? (skip to the solution) The preamble I have spent days (literally) searching for the answer to this one; I have a Mac Pro running Leopard with (count them) [...]]]></description>
			<content:encoded><![CDATA[<h2>The question</h2>

<p>How do you prevent Mac OS X Leopard from auto mounting disks, drives and volumes when the computer boots up or a user logs in? (<a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#shortcut02-11-09-22-27">skip to the solution</a>)</p>

<h2>The preamble</h2>

<p>I have spent days (literally) searching for the answer to this one; I have a Mac Pro running Leopard with (count them) 4 internal hard drives. One is my system disk and the other 3 are backup disks. Two are weekly mirrors of my system while the third is a daily snap shot of my user account. We won&#8217;t even get into the external disks I have. Yes I am THAT anal about my data.</p>

<p>So what is the trouble here? When you have this many disks containing duplicate data, <a href="http://www.apple.com/macosx/features/300.html#spotlight" title="Apple - Mac OS X Leopard - Features - 300+ New Features">Spotlight</a>, <a href="http://groups.google.com/group/blacktree-quicksilver" title="Blacktree: Quicksilver | Google Groups">QuickSilver</a>, <a href="http://www.obdev.at/launchbar/" title="LaunchBar 5 Beta">Launchbar</a>, <a href="http://code.google.com/p/qsb-mac/" title="qsb-mac - Google Code">Google QSB</a>, etc&#8230; they all want to serve up information found on each disk. That would include duplicate information that you most likely don&#8217;t want to inadvertently open and/or edit. But further to this, why spin up a disk, potential shortening it&#8217;s life span and wasting precious energy, when it only gets used on occasion?</p>

<p>One way around this is to diligently eject each volume every time you boot up your system. But that is both a pain in the butt and no where near as geeky as it should be. So do a quick search on Google for a solution to &#8220;unmount disk on login&#8221; or &#8220;prevent volumes from mounting at the boot up in Mac OS X Leopard&#8221; and you get a great deal of outdated info, inefficient Apple Scripts, overly complex bash commands, apps that wrap bash in an executable app that you launch at login when the moon is at&#8230; you get the idea.</p>

<p>So I set forth to put together the best of the best and simplest of the simple and post it here, for my own reference, exactly what <em>I</em> did to prevent my back up volumes from mounting on boot up.</p>

<div id="shortcut02-11-09-22-27"></div>

<h2>My Solution (proceed at your own risk)</h2>

<p>First off, what you are going to find with most solutions out there is the need for a file called <a href="http://en.wikipedia.org/wiki/Fstab" title="fstab - Wikipedia, the free encyclopedia">fstab</a> in the systems hidden &#8220;/etc&#8221; folder. The trouble is that later versions of OS X (10.4.x and later) don&#8217;t have this file. <em>However</em>, there <em>IS</em> a redundant file called fstab.hd. <em>WE ARE NOT USING THIS FILE</em>. Instead we will create our own fstab file. So with <em>that</em> out of the way, let&#8217;s get started:</p>

<h3>The short of it</h3>

<ol>
<li>Start by making a backup of your system. If you bugger up your system you&#8217;ll have something to recover from.</li>
<li>Open terminal (/Applications/Utilities/Terminal.app)</li>
<li>Do one on the following:

<ul>
<li>In Terminal, type the following (with your volume name) and return <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note1"><code>*</code></a>:
<code>diskutil info /volumes/DiskName</code>
<img src="http://images.seydoggy.com/diskutil_info_volume_DiskName-20090211-215727.jpg" alt="diskutil info volumes DiskName" title="diskutil info volumes DiskName" /></li>
<li>Or, you can use Apples Disk Utility app (/Applications/Utilities/Disk Utility.app), select the disk in question and choose &#8220;info&#8221; from the toolbar.
<img src="http://images.seydoggy.com/Disk_Utility_information-20090211-215916.jpg" alt="Disk Utility information" title="Disk Utility information" /></li>
</ul></li>
<li>Find the Volume <a href="http://en.wikipedia.org/wiki/UUID" title="Universally Unique Identifier - Wikipedia, the free encyclopedia">UUID</a> (Universal Unique Identifier). Copy the UUID to your clipboard <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note2"><code>**</code></a>.</li>
<li>In Terminal enter and return <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note3"><code>***</code></a>:
<code>sudo pico /etc/fstab</code></li>
<li>Enter your password and return.</li>
<li>You&#8217;ll enter a window that looks like this:
<img src="http://images.seydoggy.com/sudo_pico_etc_fstab-20090211-220250.jpg" alt="sudo pico etc fstab" title="sudo pico etc fstab" /></li>
<li>Enter the following (with your UUID) and return <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note4"><code>****</code></a>:
<code>UUID=87635CC4-B2EF-3114-B854-F64347A39630 none hfs rw,noauto 0 0</code></li>
<li>Repeat step for each device you with to hide, each on a new line.
<img src="http://images.seydoggy.com/device_id_moint_point_filesystem_options_boolean-20090211-221144.jpg" alt="device id, mount point, filesystem, mount options, dump and fsck options" title="device id, mount point, filesystem, mount options, dump and fsck options" /></li>
<li>Exit pico (&amp;#x2303;X) and save (Y).</li>
<li>Press return when prompted with:
<code>File Name to Write: /etc/fstab</code>
<img src="http://images.seydoggy.com/File_Name_to_Write_etc_fstab-20090211-221654.jpg" alt="File Name to Write: /etc/fstab" title="File Name to Write: /etc/fstab" /></li>
<li>All that&#8217;s left to do is is cross your fingers and reboot your Mac.</li>
</ol>

<h3>The long of it</h3>

<ul>
<li><span id="note1"><code>*</code></span> substitute &#8220;DiskName&#8221; for the name of the volume you wish to hide. If your volume name contains a space, like &#8220;Macintosh HD&#8221; you need to escape the space with a backslash so it looks like &#8220;Macintosh\ HD&#8221;</li>
<li><span id="note2"><code>**</code></span> We use the &#8220;Volume UUID&#8221; as the disk identifier since it is not prone to change like &#8220;Device Identifier&#8221; (i.e. &#8220;disk0s2&#8243;) which can change with each and every start up.</li>
<li><span id="note3"><code>***</code></span> This will create/edit your &#8220;/etc/fstab&#8221; file with <a href="http://tinyurl.com/bstnru" title="Pico (text editor) - Wikipedia, the free encyclopedia">pico</a>, a simple text editor.</li>
<li><p><span id="note4"><code>****</code></span> The string you are entering is the device id followed by the mount point, the filesystem, the mount options, the dump and fsck booleans. In this case:</p>

<ul>
<li>the device is my UUID (UUID=87635CC4-B2EF-3114-B854-F64347A39630)</li>
<li>the mount point is &#8220;none&#8221; (because we won&#8217;t be mounting it)</li>
<li>the file system is &#8220;hfs&#8221; (since it&#8217;s formatted for Mac)</li>
<li>the mount options are &#8220;rw&#8221; (read-write) and &#8220;noauto&#8221; (volume will not auto mount)</li>
<li>the dump option (backup utility) and fsck option (filesystem check utility) booleans are both set to 0 (false, off, nil, nada) since we don&#8217;t plan to mount the volume and therefor don&#8217;t need to backup or check them</li>
</ul>

<p>For more on fstab column structures, visit <a href="http://www.tuxfiles.org/linuxhelp/fstab.html" title="How to edit and understand /etc/fstab">tuxfiles fstab help</a>.</p></li>
</ul>

<h2>The wrap-up</h2>

<p>For whatever reason, Apple decided to nix fstab from it&#8217;s own Unix core. Perhaps for security or perhaps they just deemed it unnecessary. If you look in the <em>other</em> file I mentioned, &#8220;/etc/fstab.hd&#8221; (in terminal, enter and return: <code>sudo pico /etc/fstab.hd</code>), you&#8217;ll see the message:</p>

<blockquote>
  <p>IGNORE THIS FILE.
  This file does nothing, contains no useful data, and might go away in
  future releases.  Do not depend on this file or its contents.</p>
</blockquote>

<p>However, I see no harm in extending the life expectancy of my disks and saving energy at the same time. All while doing away with the annoyance of long indexing times and being inundated with duplicate search results. If you have anything to add, please feel free to leave a comment.</p>

<h2>Other references</h2>

<ol>
<li><a href="http://www.macosxhints.com/article.php?story=20060218083814209" title="macosxhints.com - Unmount a volume (on login) via AppleScript">Mac OS X Hints from 2006</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=2005052804075538" title="macosxhints.com - Unmount a volume at startup">Mac OS X Hints from 2005</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20040624012142602" title="macosxhints.com - A script to unmount cloned backup volumes at login">Mac OS X Hints from 2004</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20030227194830916" title="macosxhints.com - Create a more dynamic fstab using UUIDs">Mac OS X Hints from 2003</a></li>
<li><a href="http://www.macseven.com/files/20070719_how_to_prevent_a_drive_volume_from_mounting.html" title="How to prevent a drive volume from mounting | Tips &amp;amp; Tricks | MacSeven.com">MacSeven from 2007</a></li>
<li><a href="http://www.gigoblog.com/2007/05/01/prevent-mac-os-x-from-mounting-a-hard-drive-volume-at-boot/" title="Garbage In Garbage Out : Tech Blog  -   &amp;raquo; Prevent Mac OS X from mounting a hard drive volume at boot">Garbage In Garbage Out from 2007</a></li>
<li><a href="http://en.wikipedia.org/wiki/UUID" title="Universally Unique Identifier - Wikipedia, the free encyclopedia">UUID on Wikipedia</a></li>
<li><a href="http://tinyurl.com/bstnru" title="Pico (text editor) - Wikipedia, the free encyclopedia">Pico on Wikipedia</a></li>
<li><a href="http://www.tuxfiles.org/linuxhelp/fstab.html" title="How to edit and understand /etc/fstab">How to edit and understand fstab files</a></li>
</ol>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/" title="Auto mount/unmount your Mac volumes when required (February 25, 2009)">Auto mount/unmount your Mac volumes when required</a> (2)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/" title="Creating Unique ID&#039;s For&#8230; Anything! (October 27, 2009)">Creating Unique ID&#039;s For&#8230; Anything!</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2007/03/27/the-bigbox/" title="The BigBox (March 27, 2007)">The BigBox</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Rebuilding after all of these years!</title>
		<link>http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/</link>
		<comments>http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 17:37:37 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[nutmac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[seydesign]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/10/rebuilding-after-all-of-these-years/</guid>
		<description><![CDATA[Rebuilding after all of these years. Seriously, it&#8217;s been years since I have done a clean install&#8230; since Mac OS X 10.2 to be exact. I have been pulling all the crud I have collected over the years along with me like barnacles on the bottom of of the ship of life. And like the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.seydesign.com/images/content/X_145w_192h.jpg" alt="Rebuilding OS X" class="image-left" />Rebuilding after all of these years. Seriously, it&#8217;s been years since I have done a clean install&#8230; since Mac OS X 10.2 to be exact. I have been pulling all the crud I have collected over the years along with me like barnacles on the bottom of of the ship of life. And like the real thing, those barnacles have been slowing me down.</p>

<p>This became painfully obvious recently when I made a new user account to make some tutorial movies. The new account was <em>fast</em> and <em>responsive</em> in a way I hadn&#8217;t experienced in years. If this wasn&#8217;t evidence enough, I was having a nagging problem with <a href="http://www.hogbaysoftware.com/products/taskpaper" title="TaskPaper — Simple to-do list software">TaskPaper from Hogbay Software</a> where for no obvious reason, it would quite with every launch. Between Jesse and Apple they were able to nail it down to a webcam component that was not proper GC code but was pretending to be. The point is, I have no idea where I ever picked up that component or when even. It was time to nuke and rebuild.</p>

<p>The reason I haven&#8217;t in so many years is because I have come to rely on so many hacks over the years, things that Mac OS X wasn&#8217;t either capable of or didn&#8217;t do well enough. It was a scary thought to try and get by on a stock system or try and replicate those hacks again. For the last little while I&#8217;ve been trying to change my habits, trying to use less 3rd party hackery and find native solutions or terminal commands that accomplish the same thing.</p>

<p>For instance, years ago I used to use <a href="http://www.usboverdrive.com/" title="">USB Overdrive</a> to ramp up my mouse tracking and and assign special functions to various mouse button combinations. When support for it waned I turned to <a href="http://plentycom.jp/" title="Main Page">SteerMouse</a> which did almost exactly the same thing. But now-a-days I barely use the mouse and when I do all I really need is a speed boost which is easily <a href="http://www.macworld.com/article/49691/2006/03/turbomice.html" title="Turbocharge mice and trackpads | Mac OS X Hints | Macworld">achieved in the terminal</a>:</p>

<blockquote>
  <p>If you have a mouse:</p>
  
  <blockquote>
    <p><code>defaults write -g com.apple.mouse.scaling some_number</code></p>
  </blockquote>
  
  <p>If you have a trackpad:</p>
  
  <blockquote>
    <p><code>defaults write -g com.apple.trackpad.scaling some_number</code></p>
  </blockquote>
  
  <p>The some_number at the end of each of the above lines must be replaced by, well, an actual number indicating the speed you’d like to use—the higher the number, the faster the tracking will be. As a starting point, the default value for maximum mouse speed is 3.0, and maximum trackpad speed is 1.5. So you might try a starting value of 5.0 for your turbo-charged mouse, and 2.5 or 3.0 for a turbo-charged trackpad.</p>
  
  <p>The easiest way to make your changes take effect is to log out and then log in again (Apple menu: Log Out user name ).</p>
</blockquote>

<p>I guess my point is this (wearing my nutMac/productivity hat), if you are going to spend any time as a developer of any sort, keep your system customizations to a minimum, install only those apps you honestly think you&#8217;ll need or use, find native solutions to mods you can&#8217;t live without, document those mods carefully and alway be prepared to do a clean install from time to time. The less cluttered your system is the better chance you have using a migration assistant so you don&#8217;t have to do it all manually like I did.</p>

<p>That&#8217;s where I am at now. I have spent nearly two whole days manually moving preferences and folders for the apps I need so that I can be sure not to take all the other crap with me again. Now that I have done my clean install I should have no trouble keeping it clean every six months now.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2007/10/09/look-and-learn-your-way-to-better-productivity/" title="Look and learn your way to better productivity (October 9, 2007)">Look and learn your way to better productivity</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/07/30/pathfinder-is-the-only-finder-you-need/" title="Pathfinder is the only Finder you need (July 30, 2007)">Pathfinder is the only Finder you need</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/25/my-top-5-web-development-tools/" title="My top 5 web development tools (August 25, 2008)">My top 5 web development tools</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2009/02/18/life-as-a-theme-developer/" title="Life As a Theme Developer (February 18, 2009)">Life As a Theme Developer</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Path Finder 5, thank you</title>
		<link>http://adam.merrifield.ca/2008/11/04/path-finder-5-thank-you/</link>
		<comments>http://adam.merrifield.ca/2008/11/04/path-finder-5-thank-you/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 01:21:07 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[volumes]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.nutmac.com/2008/11/04/path-finder-5-thank-you/</guid>
		<description><![CDATA[It&#8217;s funny, nearly ironic that I bother to write a blog about Mac productivity when in actual fact there is little about the Mac operating system that I like at face value. When you look at what most people like the Mac for, ease of use with things like Finder and spotlight, and I use [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s funny, nearly ironic that I bother to write a blog about Mac productivity when in actual fact there is little about the Mac operating system that I like at face value. When you look at what most people like the Mac for, ease of use with things like Finder and spotlight, and I use neither one, instead opting for alternatives like Path Finder and QuickSilver respectively.</p>

<p>But some of these tools can fall victim to Apples own drive to improve it&#8217;s OS, leaving some of these tools behind to die a slow death. This is certainly true if QuickSilver, and so too I feared for Path Finder. Until last week when CocoaTech announced the release of Path Finder 5, the long awaited version that would finally take FULL advantage of everything that Leapard has to offer.</p>

<p>Having been out of the country for nearly two weeks I was unable to get into it until Monday. I must say I am completely pleased with the new version which sees many major operational and interface improvements. One can&#8217;t help but notice it&#8217;s smoother handling and faster reaction time.</p>

<p>One welcome feature is that the favorites panel, it&#8217;s sidebar, will now acutarely reflect that of the Finder. Path Finder will also recognize the shared places items, such shared volumes, without you fist having to mount them in Finder.</p>

<p>For more, check out <a href="http:www.cocoatech. com">CocoaTech&#8217;s</a> website.</p>

<p><a href="http://www.seydoggy.com/wordpress/wp-content/uploads/2008/11/p-480-320-f00a14b2-f4b4-4b62-a4b3-7c65b37c343d.jpeg"><img src="http://www.seydoggy.com/wordpress/wp-content/uploads/2008/11/p-480-320-f00a14b2-f4b4-4b62-a4b3-7c65b37c343d.jpeg" alt="" width="200" height="300" class="alignnone size-full wp-image-364" /></a></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2008/02/01/web-search-with-quicksilver-the-definitive-how-to/" title="Web Search with Quicksilver: how-to (February 1, 2008)">Web Search with Quicksilver: how-to</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2007/07/30/pathfinder-is-the-only-finder-you-need/" title="Pathfinder is the only Finder you need (July 30, 2007)">Pathfinder is the only Finder you need</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/24/the-beauty-of-rapidweaver-meets-the-power-of-textmate/" title="The beauty of RapidWeaver meets the power of TextMate (August 24, 2008)">The beauty of RapidWeaver meets the power of TextMate</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/09/24/spotlight-comments-used-like-tags/" title="Spotlight comments used like tags (September 24, 2007)">Spotlight comments used like tags</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/03/10/expandrive-expands-my-horizons/" title="ExpanDrive expands my horizons (March 10, 2008)">ExpanDrive expands my horizons</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2008/11/04/path-finder-5-thank-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
