<?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>The Adventures of Systems Boy! &#187; ScriptSharing</title>
	<atom:link href="http://systemsboy.com/category/scriptsharing/feed" rel="self" type="application/rss+xml" />
	<link>http://systemsboy.com</link>
	<description>Big, Honkin' Systems Stuff</description>
	<lastBuildDate>Sun, 20 May 2012 16:20:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Software Update Downloader</title>
		<link>http://systemsboy.com/2009/11/software-update-downloader.html</link>
		<comments>http://systemsboy.com/2009/11/software-update-downloader.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 16:22:19 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[ScriptSharing]]></category>
		<category><![CDATA[SnowLeopard]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=3035</guid>
		<description><![CDATA[There are at least a few folks who are less than happy with Apple&#8217;s decision to remove the option to download and keep updates from the Software Update application in Snow Leopard. I count myself among them. Though the option may be gone from the GUI, however, it still exists in the command line version. [...]]]></description>
			<content:encoded><![CDATA[<p>There are at least a few folks who are <a href="http://www.betalogue.com/2009/10/22/software-update/" target="_blank">less than happy</a> with Apple&#8217;s decision to remove the option to download and keep updates from the Software Update application in Snow Leopard. I count myself among them.</p>
<p>Though the option may be gone from the GUI, however, it still exists in the command line version. <a href="http://www.macworld.com/article/143391/2009/10/slupdates.html" target="_blank">Rob Griffiths solution</a> is to use the command:</p>
<p><code>softwareupdate -d</code></p>
<p>There are a couple problems with this. The first is that the command, as listed in Mr. Griffiths article, doesn&#8217;t do anything, at least not when I run it. From what I can tell the command requires the <code>-a</code> flag. So if you want it to actually work, it should look like:</p>
<p><code>softwareupdate -d -a</code></p>
<p>This will download everything you don&#8217;t already have to a directory that the Software Update app can see (/Library/Updates). Now we&#8217;re off to a more promising start.</p>
<p>The other problem with this method is that it doesn&#8217;t offer a great deal of things you normally get with the GUI. In particular, as <a href="http://www.betalogue.com/2009/10/23/softwareupdate-more/" target="_blank">Pierre Igot points out</a>, you don&#8217;t get a progress indicator. Which really blows, I agree.</p>
<p>You also don&#8217;t get prompted to install the updates once downloading has finished. To that end, I&#8217;ve written a little Automator Service. The service, when launched from any Services menu in any app, will prompt you to continue with this confirmation box:</p>
<div id="attachment_3054" class="wp-caption aligncenter" style="width: 510px"><a href="http://systemsboy.com/wp-content/uploads/2009/11/SUDownloaderConfirm3.png"><img class="size-full wp-image-3054" title="SUDownloaderConfirm3" src="http://systemsboy.com/wp-content/uploads/2009/11/SUDownloaderConfirm3.png" alt=" " width="500" height="236" /></a><p class="wp-caption-text"> </p></div>
<p>Once you click OK, the download will begin. When the download is complete, the service will copy the new updates to an Updates folder at the top level your home account (~/Updates) for safe keeping.</p>
<div id="attachment_3055" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/11/SU-updates-folder-2.png"><img class="size-medium wp-image-3055" title="SU-updates-folder-2" src="http://systemsboy.com/wp-content/uploads/2009/11/SU-updates-folder-2-530x351.png" alt=" " width="530" height="351" /></a><p class="wp-caption-text"> </p></div>
<p>Once copying has finished, the Software Update app will launch and ask you if you want to install the updates you just downloaded. Just install as normal. Let Software Update do its business.</p>
<div id="attachment_3041" class="wp-caption aligncenter" style="width: 458px"><a href="http://systemsboy.com/wp-content/uploads/2009/11/SU-Updates.png"><img class="size-medium wp-image-3041" title="SU-Updates" src="http://systemsboy.com/wp-content/uploads/2009/11/SU-Updates-448x530.png" alt=" " width="448" height="530" /></a><p class="wp-caption-text"> </p></div>
<p>In the end everything will get installed and you&#8217;ll be left with copies of all the updates in your home account for later use, all with only a single download.</p>
<p>While I can&#8217;t really offer a progress bar, I like this better than the alternatives. It more closely approximates the old &#8220;Install and Keep&#8221; Software Update method than having to go and open the Terminal and do all that stuff as individual steps. And it&#8217;s almost as user-friendly, being activated from a drop-down menu, just like Software Update usually is.</p>
<p>So here it is. The Software Update Download service:<br />
<a href="http://systemsboy.com/wp-content/uploads/2009/11/SoftwareUpdateDownloadService.zip">Software Update Download Service</a></p>
<p>Download it, unstuff it and put it in ~/Library/Services. You should be able to launch it from the Services menu in any application.</p>
<p>A minor disclaimer: this service has mostly worked well for me, but there was one instance in which it seems to have had troubles. In particular, it seemed to choke on the latest iWork &#8217;09 updates. This may have been a fluke, or it may have had something to do with that particular update. I honestly don&#8217;t know. But if you have troubles, let me know in the comments of this article. I&#8217;ll do my best to figure out what&#8217;s wrong as I&#8217;m using this in my own workflow. But consider this a beta at best; it&#8217;s been through minimal testing.</p>
<p>Also, you should be able to open the workflow up in Automator and make adjustments to the behavior if you so please. Feel free to do so and let me know about it in the comments.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/11/software-update-downloader.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>OGG Theora Converter</title>
		<link>http://systemsboy.com/2009/07/ogg-theora-converter.html</link>
		<comments>http://systemsboy.com/2009/07/ogg-theora-converter.html#comments</comments>
		<pubDate>Fri, 03 Jul 2009 14:54:56 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[ScriptSharing]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=2057</guid>
		<description><![CDATA[John Gruber today opines that there is no GUI interface for the command-line tool for converting Quicktime movies into the OGG Theora format — a very handy thing to be able to do if you want to serve video to Firefox-type browsers using HTML 5&#8242;s &#60;video&#62; and &#60;audio&#62; tags. Since this is something I do [...]]]></description>
			<content:encoded><![CDATA[<p>John Gruber today <a href="http://daringfireball.net/2009/07/ffmpeg2theora" target="_blank">opines</a> that there is no GUI interface for the<a href="http://v2v.cc/~j/ffmpeg2theora/" target="_blank"> command-line tool</a> for converting Quicktime movies into the OGG Theora format — a very handy thing to be able to do if you want to serve video to Firefox-type browsers using HTML 5&#8242;s <code>&lt;video&gt;</code> and <code>&lt;audio&gt;</code> tags.</p>
<p>Since this is something I do a lot — wrap command-line tools in Automator wrappers, that is — I thought I&#8217;d whip up a GUI method for doing this. So here it is.</p>
<p><a href="http://systemsboy.com/wp-content/uploads/2009/07/ConvertToOGG.workflow.zip">The OGG Theora converter</a></p>
<p>It&#8217;s a Finder workflow, so download it, unstuff it and put it in:<br />
<code>~/Library/Workflows/Applications/Finder</code></p>
<p>Placing the workflow there will add the item to the Finder&#8217;s right-click contextual menu. To use the workflow, simply right-click a video you want to convert, navigate to More-&gt;Automator and choose &#8220;Convert To OGG&#8221; from the menu.</p>
<div id="attachment_2059" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/07/ogg-converter-2.png"><img class="size-medium wp-image-2059" title="ogg-converter-2" src="http://systemsboy.com/wp-content/uploads/2009/07/ogg-converter-2-530x397.png" alt="Ogg Converter Workflow" width="530" height="397" /></a><p class="wp-caption-text">Ogg Converter Workflow</p></div>
<p>While this crunches you&#8217;ll see a badge in your menubar:</p>
<div id="attachment_2060" class="wp-caption aligncenter" style="width: 152px"><a href="http://systemsboy.com/wp-content/uploads/2009/07/run-shell-script.png"><img class="size-full wp-image-2060" title="run-shell-script" src="http://systemsboy.com/wp-content/uploads/2009/07/run-shell-script.png" alt="Menubar Progress" width="142" height="22" /></a><p class="wp-caption-text">Progress</p></div>
<p>Wait a few minutes and you&#8217;ll see the OGG version appear right alongside your original movie.</p>
<div id="attachment_2064" class="wp-caption aligncenter" style="width: 425px"><a href="http://systemsboy.com/wp-content/uploads/2009/07/complete.png"><img class="size-full wp-image-2064" title="complete" src="http://systemsboy.com/wp-content/uploads/2009/07/complete.png" alt="complete" width="415" height="309" /></a><p class="wp-caption-text">Completed OGG File</p></div>
<p style="text-align: center;">
<p>And remember, you must first install the OGG Theora converter tool, <a href="http://v2v.cc/~j/ffmpeg2theora/" target="_blank">ffmpeg2theora</a>, for all this to work.</p>
<p>I&#8217;ve made a <a href="http://systemsboy.com/wp-content/uploads/2009/07/ConvertToOGG.app.zip">droplet-style version</a> of this as well. Place this version anywhere — your Desktop, the Applications folder, your Dock — and when you want to convert a video, simply drag the video onto the droplet.</p>
<p>Enjoy!</p>
<p><strong>UPDATE:</strong><br />
Folks, for those of you having trouble installing the workflow version, here&#8217;s a tip, as mentioned in the comments: Double-clicking the unstuffed workflow will open it in Automator. From here you can choose File-&gt;Save As Plug-in&#8230;</p>
<div id="attachment_2094" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/07/auto-install-ogg.png"><img class="size-medium wp-image-2094" title="auto-install-ogg" src="http://systemsboy.com/wp-content/uploads/2009/07/auto-install-ogg-530x396.png" alt="Installing Workflows the Easy Way" width="530" height="396" /></a><p class="wp-caption-text">Installing Workflows the Easy Way</p></div>
<p>Make sure it&#8217;s a Plug-in for: Finder, and hit the Save button. It should now show up as an option in the Finder&#8217;s contextual menu.</p>
<p>And remember, there is a <a href="http://systemsboy.com/wp-content/uploads/2009/07/ConvertToOGG.app.zip">Droplet Version</a> as well whose installation is drag-and-drop. To anywhere!</p>
<p>Hope that helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/07/ogg-theora-converter.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Scripts Part 8: Toggle Hidden Files</title>
		<link>http://systemsboy.com/2009/04/scripts-part-8-toggle-hidden-files.html</link>
		<comments>http://systemsboy.com/2009/04/scripts-part-8-toggle-hidden-files.html#comments</comments>
		<pubDate>Mon, 27 Apr 2009 17:19:41 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>
		<category><![CDATA[TheBlog]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=1468</guid>
		<description><![CDATA[Yes, you read that right. It&#8217;s time for another entry in the Script Sharing category. It&#8217;s been a damn long time since I&#8217;ve posted anything here, but I&#8217;ve actually been doing a lot of scripting, and I just realized that I had some potentially useful stuff lying around. So hopefully I&#8217;ll be able to post [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, you read that right. It&#8217;s time for another entry in the <a href="http://systemsboy.com/category/scriptsharing" target="_blank">Script Sharing</a> category. It&#8217;s been a damn long time since I&#8217;ve posted anything here, but I&#8217;ve actually been doing a lot of scripting, and I just realized that I had some potentially useful stuff lying around. So hopefully I&#8217;ll be able to post some new stuff to this section once and a while.</p>
<p>Also, in reviving the Script Sharing series, I realized that all the old scripts were missing. Seems when I <a href="http://systemsboy.com/2009/03/the-saga-of-the-new-web-hosting-provider.html">switched ISPs</a> a while back, I forgot to move over the archive. Well, never fear, they&#8217;re all back now.</p>
<p>Today&#8217;s script is actually an Automator workflow for the Finder. (What sort of <a href="http://systemsboy.com/2009/03/workflow-design.html">workflow designer</a> would I be if I didn&#8217;t create the odd Automator workflow every now and again?) This workflow will turn hidden files on and off in the Finder. To enable it, simply unzip the below-linked download and place the resultant file in your Workflows folder (~/Library/Workflows/Applications/Finder).</p>
<div id="attachment_1475" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/04/toggle-hidden-workflow.png" target="_blank"><img class="size-full wp-image-1475" title="toggle-hidden-workflow" src="http://systemsboy.com/wp-content/uploads/2009/04/toggle-hidden-workflow.png" alt="toggle-hidden-workflow" width="530" height="226" /></a><p class="wp-caption-text">Toggle Hidden Files</p></div>
<p>To access it, right-click (or control-click) anywhere in the Finder and navigate to More-&gt;Automator in the contextual menu. Select &#8220;Toggle-HiddenFiles&#8221; and your Finder will restart. When it comes back up, you&#8217;ll notice that hidden files are no longer hidden. To reverse the effect, simply repeat the process. Rerunning the script will re-hide invisible files.</p>
<p>So, here&#8217;s the script:</p>
<p><a href="http://systemsboy.com/wp-content/uploads/2009/04/toggle-hiddenfilesworkflow.zip">Toggle Hidden Files Workflow</a></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/04/scripts-part-8-toggle-hidden-files.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scripts Part 7: Contextual Menus with Automator</title>
		<link>http://systemsboy.com/2007/03/scripts-part-7-contextual-menus-with-automator.html</link>
		<comments>http://systemsboy.com/2007/03/scripts-part-7-contextual-menus-with-automator.html#comments</comments>
		<pubDate>Sat, 31 Mar 2007 19:00:00 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[NIX]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>

		<guid isPermaLink="false">http://systemsboy.com/2007/03/scripts-part-7-contextual-menus-with-automator/</guid>
		<description><![CDATA[Recently, for some odd reason, there has been a spate of solutions to the problem of creating new files in the Finder via a contextual menu. One involves a contextual menu plugin called NuFile. Another involves installing Big Cats Scripts and linking it to an Applescript. But honestly — and I&#8217;m surprised someone else didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, for some odd reason, there has been a <a href="http://www.tuaw.com/2007/03/28/last-post-ever-about-creating-new-files-from-finder/">spate</a> of <a href="http://www.tuaw.com/2007/03/26/quicksilver-tip-for-switchers-make-new-file/">solutions</a> to the problem of creating <a href="http://www.coldpizzasoftware.com/documentpalette/">new files in the Finder</a> via a contextual menu. One involves a contextual menu plugin called <a href="http://growlichat.com/NuFile.php">NuFile</a>. Another involves installing <a href="http://ranchero.com/bigcat/">Big Cats Scripts</a> and linking it to an <a href="http://daringfireball.net/2007/03/new_text_files_contextual_menu">Applescript</a>. But honestly — and I&#8217;m surprised someone else didn&#8217;t think of this first — when faced with simple contextual menu tasks, these days my first thought is to look to <a href="http://www.apple.com/macosx/features/automator/">Automator</a>.</p>
<p>And by golly, that&#8217;s just what I did. Here are a few Automator workflows that do, more or less what the afore-linked methods do. To me, the advantage of the Automator approach is that you don&#8217;t need to install anything. It&#8217;s all baked in. Which means you don&#8217;t ever need to update anything either. Nice. Simple. And, yeah, kind of the whole point of Automator.</p>
<p>So here you go. Maybe someone will find this useful, if for nothing other than as an exercise in creating contextual menu functionality with Automator. Or skinning a cat multiple ways. Or something. To use this, download the .zip file, unzip it and place it in:<br />
<span style="font-size:100%;"><span style="font-family:courier new;">~/Library/Workflows/Applications/Finder</span></span></p>
<p><a href="http://systemsboy.com/archive/NewTextFile.zip">NewTextFile Workflow</a></p>
<p>It should become active immediately.</p>
<p>Also, here are a couple variants. One will create a text file, and then open it in TextWrangler (if you have TextWrangler, and if you don&#8217;t, go <a href="http://www.barebones.com/products/textwrangler/">get it now</a>); the other creates a Word document, and opens it in Word. I&#8217;m far to lazy to completely duplicate the functionality of NuFile. But if you examine these workflows, you can at least see now how that would be possible (in fact, fairly easy) to accomplish.</p>
<p><a href="http://systemsboy.com/archive/NewTextFile-Variants.zip">NewTextFile Workflow Variants</a></p>
<p>I actually think it would be great if Apple made it drop dead simple to create true contextual menus for the Finder. Fortunately, Automator gets us pretty close.</p>
<p>Oh, yeah, and since this is technically script writing, and since I haven&#8217;t posted to that series in some time, we&#8217;re gonna go ahead and call this a <a href="http://systemsboy.com/category/ScriptSharing">Script Sharing</a> post. Deal with it.</p>
<p>Right. Good night.</p>
<p><span style="font-weight: bold;">UPDATE<span style="font-size:78%;"></span>: </span><span style="font-size:78%;"><span style="font-style: italic;">Revised March 31, 2007, 3:00 PM</span></span><br />
<a href="http://yellow-camp.com/blog/">Stephan Cleaves</a> has added yet another <a href="http://yellow-camp.com/2007/03/30/new-file-in-a-finder-window/">implementation</a> of this idea. He&#8217;s using a combination of Automator and AppleScript. I certainly think his implementation is better than mine in a few ways. Certainly more full-featured. It will prompt for a file name, for instance, and takes pains not to overwrite a preexisting file with the same name. Nice. But we&#8217;re taking very different approaches to the same idea (his version places a file in the front-most Finder window, my version places it in the right-clicked folder), and he was confused by my approach. After speaking to him via comments on his blog, I realized that some clarification as to how my workflow is actually constructed might be in order.</p>
<p>Basically, my workflow takes the folder selected in the Finder as input and assigns that input to the variable <span style="font-family:courier new;">&#8220;$@&#8221;</span>. That variable and the <span style="font-family:courier new;">for</span> loop in my workflow are automatically generated by Automator when you select “as arguments” from the “Pass input:” field in the “Do Shell Script” action. It’s how you get the context (the selected folder) passed to the script. Apparently Automator takes <span style="font-family:courier new;">“$@”</span> as the variable for “the folder you just selected” whenever there’s no input from a previous action. This was something I learned while fiddling around with all of this, and it&#8217;s really my favorite part. The coolest thing for me here, really, was figuring out how to pass the context — i.e. the right-clicked folder — to an Automator &#8220;Do Shell Script&#8221; action. This opens up worlds of potential.</p>
<p>Finally, as I said, the <span style="font-family:courier new;">for</span> loop in the action is auto-generated by Automator. The workflow will work almost as well with the simple script:<br />
<span style="font-family:courier new;">touch “$@/NewText.txt”</span></p>
<p>Using the <span style="font-family:courier new;">for</span> loop, however, allows you to create a new text file in multiple folders by selecting said folders and running the workflow.</p>
<p>It&#8217;s really kind of amazing how many ways there are to do this. Wow. Fun stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2007/03/scripts-part-7-contextual-menus-with-automator.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Scripts Part 6: Archiver</title>
		<link>http://systemsboy.com/2006/11/scripts-part-6-archiver.html</link>
		<comments>http://systemsboy.com/2006/11/scripts-part-6-archiver.html#comments</comments>
		<pubDate>Thu, 30 Nov 2006 19:14:00 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>

		<guid isPermaLink="false">http://systemsboy.com/2006/11/scripts-part-6-archiver/</guid>
		<description><![CDATA[A hint on MacOSXHints yesterday discussed using tar to create backups in Mac OS X. The poster was frustrated with the OS X-bundled version of the zip command, and confused by the way the Finder creates .zip files. Indeed, the Finder does not use the zip command to create its .zip files, and indeed it [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://www.macosxhints.com/article.php?story=20061128120143184">hint on MacOSXHints yesterday</a> discussed using <span style="font-family:courier new;">tar</span> to create backups in Mac OS X. The poster was frustrated with the OS X-bundled version of the <span style="font-family: courier new;">zip</span> command, and confused by the way the Finder creates .zip files. Indeed, the Finder does not use the <span style="font-family: courier new;">zip</span> command to create its .zip files, and indeed it is confusing. And, more importantly, the <span style="font-family: courier new;">zip</span> command does not preserve all-impotant Mac OS X resource forks.</p>
<p>After reading this hint I was reminded of a script I wrote a while back based on yet <a href="http://www.macosxhints.com/article.php?story=20031118111144197">another</a> MacOSXHints hint that uses <span style="font-family: courier new;">ditto</span> to create Finder-like .zip archives. So it seemed like a good time to post the script here and add it to the waning <a href="http://systemsboy.com/category/ScriptSharing">ScriptSharing</a> series.</p>
<p>So here it is: my Archive script. It will both archive and expand folders or files using ditto, and it places these archives on the Desktop.</p>
<p><a href="http://systemsboy.com/archive/Archiver.command.zip">Archiver Script</a><br /><a href="http://systemsboy.com/archive/Archiver.command">See the code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2006/11/scripts-part-6-archiver.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Scripts Part 5: New Spotlight Disabler</title>
		<link>http://systemsboy.com/2006/03/scripts-part-5-new-spotlight-disabler.html</link>
		<comments>http://systemsboy.com/2006/03/scripts-part-5-new-spotlight-disabler.html#comments</comments>
		<pubDate>Sat, 04 Mar 2006 21:54:00 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://systemsboy.com/2006/03/scripts-part-5-new-spotlight-disabler/</guid>
		<description><![CDATA[Someone recently commented that my script to disable Spotlight was no longer functioning in v. 10.4.5 of Tiger. When I went to check on the functionality of the old script, I realized I&#8217;d been working on a new and improved version awhile back, and that I&#8217;d intended to post it, but completely forgot to. So [...]]]></description>
			<content:encoded><![CDATA[<p>Someone recently commented that my <a href="http://systemsboy.com/2005/05/getting-back-to-search-basics.html">script to disable Spotlight</a> was no longer functioning in v. 10.4.5 of Tiger. When I went to check on the functionality of the old script, I realized I&#8217;d been working on a new and improved version awhile back, and that I&#8217;d intended to post it, but completely forgot to. So I went in and finished up this spiffy new version, and I&#8217;m posting it today for anyone who&#8217;s interested, or for anyone for whom the previous version had stopped working.</p>
<p>This new version comes with the same disclaimers as the other one (which are now listed in the script itself), but gives you a few more options for disabling Spotlight. In particular, you can now choose to disable/enable Spotlight on either a single volume, or an all volumes.  The script will also report the Spotlight status of all currently mounted volumes before asking you what you want to do.</p>
<p>Enjoy!</p>
<p><a href="http://systemsboy.com/archive/spotlightEnableDisable.command.zip">SpotlightEnableDisable Script</a><br /><a href="http://systemsboy.com/archive/spotlightEnableDisable.command">See the code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2006/03/scripts-part-5-new-spotlight-disabler.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Scripts Part 4: Cloning — What&#8217;s the Big Deal?</title>
		<link>http://systemsboy.com/2006/02/scripts-part-4-cloning-%e2%80%94-whats-the-big-deal.html</link>
		<comments>http://systemsboy.com/2006/02/scripts-part-4-cloning-%e2%80%94-whats-the-big-deal.html#comments</comments>
		<pubDate>Sun, 19 Feb 2006 08:35:00 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>

		<guid isPermaLink="false">http://systemsboy.com/2006/02/scripts-part-4-cloning-%e2%80%94-whats-the-big-deal/</guid>
		<description><![CDATA[Boy, there sure are a lot of cloning apps out there. The mother of them all, of course, is Mike Bombich&#8217;s Carbon Copy Cloner, but it&#8217;s slowly losing mindshare to more aggressively marketed apps like the affable SuperDuper!. There are others, but I don&#8217;t feel like scouring the web for them, nor do I feel [...]]]></description>
			<content:encoded><![CDATA[<p>Boy, there sure are a lot of cloning apps out there. The mother of them all, of course, is <a href="http://www.bombich.com/">Mike Bombich&#8217;s</a> <a href="http://www.bombich.com/software/ccc.html">Carbon Copy Cloner</a>, but it&#8217;s slowly losing mindshare to more aggressively marketed apps like the affable <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper!</a>. There are others, but I don&#8217;t feel like scouring the web for them, nor do I feel like going to the effort of linking to them all. Suffice to say, there are plenty. Just search <a href="http://www.versiontracker.com/">VersionTracker</a> and you&#8217;ll see.</p>
<p>I find the recent upswing in cloning utilities strange. Apple&#8217;s bundled Disk Utility application has actually <a href="http://www.macosxhints.com/article.php?story=20031030154346917">harbored the ability to clone</a> a system disk for some time now (I believe as far back as Panther). And yet, it seems the easier cloning gets, the more apps there are with which to do it. And charge you for it.</p>
<p>Today&#8217;s script uses a handy command-line utility that&#8217;s actually been around since the Classic Mac OS days (though not, obviously, in command-line form): <span style="font-family:courier new;">asr</span>, which stands for Apple Software Restore. The <span style="font-family:courier new;">asr</span> command is essentially a command for cloning disks. In fact, that&#8217;s exactly what it is. When Mac OS X first came out, <span style="font-family:courier new;">asr</span> was not bundled. But in recent incarnations of the OS it&#8217;s hung around in the command-line, and it&#8217;s actually gotten quite refined and easy to use. Want to clone your boot drive? Here&#8217;s the command:</p>
<div style="border: 1px solid rgb(153, 153, 153); overflow: auto; width: 100%; height: auto;">
<pre><code><span style="font-size:85%;"><span style="font-family:courier new;">sudo asr -source [<span style="font-style: italic;">source_volume</span> ] -target [<span style="font-style: italic;">target_volume</span> ]</span></span></code></pre>
</div>
<p>That&#8217;s it. I can&#8217;t imagine an easier command structure. In a way, it&#8217;s almost easier to use than GUI apps that do the same thing. Of course you can get into some very complicated uses of <span style="font-family:courier new;">asr</span>, but for basic disk-to-disk cloning it&#8217;s drop-dead simple.</p>
<p>Now there is one little, tiny bump in this road. Tiger, you see, has a brand spanking new way of making certain files on your boot drive invisible. You know, files like <span style="font-family:courier new;">var</span> and <span style="font-family:courier new;">etc</span> and <span style="font-family:courier new;">private</span>. And Tiger&#8217;s version of <span style="font-family:courier new;">asr</span> (as well as Tiger&#8217;s Disk Utility program) are none the wiser. So, if you want things set up properly, you need to explicitly set the visibility of these files. There are a few ways to do this. Today&#8217;s script will use a utility called <span style="font-family:courier new;">SetHidden</span>, which comes on the Tiger install disc (a la this <a href="http://docs.info.apple.com/article.html?artnum=301677">Apple KB article</a>). Just so you know.</p>
<p>So here it is. A very simple script for making an exact clone of a volume to another volume. Please keep in mind, because of the file visibility issue, this script MUST be run from the disc image, or it will not work properly. Also keep in mind that cloning will overwrite, replace or even erase the target drive. I am in no way responsible for any damage you incur to your system with this script. If you don&#8217;t feel comfortable using it, please don&#8217;t.</p>
<p>That said, here&#8217;s your free cloning utility.</p>
<p><a href="http://systemsboy.com/archive/ASRClone.dmg.zip">Download ASRClone</a><span style="font-size:85%;"><br /><a href="http://del.icio.us/systemsboy/Scripts"> </a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2006/02/scripts-part-4-cloning-%e2%80%94-whats-the-big-deal.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Delayed ACK Startup Item for Intel Macs</title>
		<link>http://systemsboy.com/2006/02/delayed-ack-startup-item-for-intel-macs.html</link>
		<comments>http://systemsboy.com/2006/02/delayed-ack-startup-item-for-intel-macs.html#comments</comments>
		<pubDate>Fri, 03 Feb 2006 23:03:00 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://systemsboy.com/2006/02/delayed-ack-startup-item-for-intel-macs/</guid>
		<description><![CDATA[MacFixit just reported about troubles the new Intel-based Macs are having with network speeds, particularly AFP connections to, of all things, other Macs. The solution, they report, is to set the delayed_ack property to 0. In order for this change to survive a reboot, however, they recommend editing /etc/rc. The problem with this is that, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macfixit.com/">MacFixit</a> just reported about <a href="http://www.macfixit.com/article.php?story=20060203081147368">troubles the new Intel-based Macs are having with network speeds</a>, particularly AFP connections to, of all things, other Macs. The solution, they report, is to set the <span style="font-family:courier new;">delayed_ack</span> property to <span style="font-family:courier new;">0</span>. In order for this change to survive a reboot, however, they recommend editing <span style="font-family:courier new;">/etc/rc</span>. The problem with this is that, often, edits made to <span style="font-family:courier new;">/etc/rc</span> will be overwritten by future updates to Mac OSX. In my experience, such modifications are better handled with a startup item, which is also a lot easier to add and remove. So I&#8217;ve suggested as much to the fine folks over at MacFixit, and I&#8217;ve even put my money where my mouth is. I&#8217;m offering to those who need it this delayedACK Startup Item, hand made by yours truly.</p>
<p>The linked disc image contains the delayedACK Startup Item, and also includes an installer and an uninstaller for the Startup Item.</p>
<p>Enjoy, you lucky Intel Mac owners (of which, alas, I am not one&#8230; Yet&#8230;)</p>
<p>UPDATE:<br />A reader called Nubo recently left this comment:<br />
<blockquote>&#8230;turning off delayed_ack is not necessarily something that should be left in the startup items forever. Having it on is normally beneficial or at least not severely degrading in normal environments. So this should be reviewed whenever Apple fixes the underlying problem in its implementation, or the actual root cause is found.</p></blockquote>
<p>Nubo is absolutely right. This startup item should be removed — either by running the included uninstaller or by simply dragging the startup item to the trash — once the problem has been resolved by Apple.</p>
<p>Thanks, Nubo, for pointing this out.</p>
<p><a href="http://systemsboy.com/archive/DelayedACKStartupItem.dmg">Download the Delayed ACK Startup Item</a><span style="font-size:85%;"><br /><a href="http://del.icio.us/systemsboy/Tiger"> </a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2006/02/delayed-ack-startup-item-for-intel-macs.html/feed</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Scripts Part 3: Split and Rejoin Large Files</title>
		<link>http://systemsboy.com/2006/02/scripts-part-3-split-and-rejoin-large-files.html</link>
		<comments>http://systemsboy.com/2006/02/scripts-part-3-split-and-rejoin-large-files.html#comments</comments>
		<pubDate>Wed, 01 Feb 2006 00:44:00 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>

		<guid isPermaLink="false">http://systemsboy.com/2006/02/scripts-part-3-split-and-rejoin-large-files/</guid>
		<description><![CDATA[Two events have transpired to lead to the posting of this script: 1) I&#8217;ve been meaning to post a new script to the Scripts section of the blog for some time, and 2) MacOSXHints today had a hint about splitting and rejoining large files, and suggesting scripting this process. I just happen to have had [...]]]></description>
			<content:encoded><![CDATA[<p>Two events have transpired to lead to the posting of this script: 1) I&#8217;ve been meaning to post a new script to the Scripts section of the blog for some time, and 2) <a href="http://www.macosxhints.com/">MacOSXHints</a> today had a <a href="http://www.macosxhints.com/article.php?story=20060125023540821">hint about splitting and rejoining large files</a>, and suggesting scripting this process. I just happen to have had such a script lying around for some time, so this seemed like an especially appropriate time to post it.</p>
<p>Essentially, this script is made to take large files and cut them into smaller (theoretically CD or DVD sized) pieces. The same script can then be used to rejoin these chunks. For splitting, the <span style="font-family:courier new;">script</span> uses the split command, and to rejoin files, it uses the <span style="font-family:courier new;">cat</span> command.</p>
<p>So here it is in all its glory.</p>
<p><a href="http://systemsboy.com/archive/SplitAndRejoinFiles.command.zip">SplitAndRejoinFiles Script</a><br /><a href="http://systemsboy.com/archive/SplitAndRejoinFiles.command">See the code</a><span style="font-size:85%;"><br /><a href="http://del.icio.us/systemsboy/Scripts"> </a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2006/02/scripts-part-3-split-and-rejoin-large-files.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scripts Part 2: .DS_Store Remover</title>
		<link>http://systemsboy.com/2005/10/scripts-part-2-ds_store-remover.html</link>
		<comments>http://systemsboy.com/2005/10/scripts-part-2-ds_store-remover.html#comments</comments>
		<pubDate>Sat, 15 Oct 2005 19:06:00 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ScriptSharing]]></category>

		<guid isPermaLink="false">http://systemsboy.com/2005/10/scripts-part-2-ds_store-remover/</guid>
		<description><![CDATA[Why do so many Mac folk need a GUI for everything? Sometimes a little script is plenty to get the job done. And using a script can be just as easy as using a GUI: it&#8217;s double-clickable; it&#8217;s instructive; and it&#8217;s drag-n-drop. It just doesn&#8217;t have pictures. But for some reason people still freak out [...]]]></description>
			<content:encoded><![CDATA[<p>Why do so many Mac folk need a GUI for everything? Sometimes a little script is plenty to get the job done. And using a script can be just as easy as using a GUI: it&#8217;s double-clickable; it&#8217;s instructive; and it&#8217;s drag-n-drop. It just doesn&#8217;t have pictures. But for some reason people still freak out when they see that big, scary, text-based Terminal pop up. I used to be that way. But I&#8217;ve grown to love the power of the command-line, and simple shell scripts.</p>
<p>So here&#8217;s another popular favorite: The <span style="font-family:courier new;">.DS_Store</span> Remover utility. There seem to be billions upon billions of little apps that do nothing but remove the <span style="font-family:courier new;">.DS_Store</span> files that the Mac OS puts in every folder on your system. Maybe there are so many of these little apps because it&#8217;s actually such an easy thing to script. The nice thing about the script is, you can see and modify the code very simply and easily, whereas with one of these GUI wrappers, God knows what it&#8217;s actually doing.</p>
<p>For those who don&#8217;t know, the <span style="font-family:courier new;">.DS_Store</span> file holds information about how a given folder should display when it&#8217;s opened. It remembers the position, size and view style (i.e. column, list or icon) of the window. Why remove them, you may ask? Some people don&#8217;t like them showing up on their windows boxes, apparently. Too messy. Ahh, if only I could write a script to delete Windows boxes. That seems like the better approach.</p>
<p>Anyway, here&#8217;s my script version. I call it &#8220;DSStoreRemover,&#8221; which frankly I think is possibly the most ingenious and creative name for anything ever in the history of humans on planet Earth.</p>
<p>It&#8217;s a really, really, drop-dead stupid simple script that takes a folder path as a variable which is used in a find command that then, in turn, executes <span style="font-family:courier new;">rm</span> on anything named &#8220;<span style="font-family:courier new;">.DS_Store</span>.&#8221;</p>
<p>See, you don&#8217;t need a GUI for this. Hell, you almost don&#8217;t need a script.</p>
<p><a href="http://systemsboy.com/archive/DSStoreRemover.command.zip">.DS_StoreRemover Script</a><br /><a href="http://systemsboy.com/archive/DSStoreRemover.command">See the code</a><span style="font-size:85%;"><br /><a href="http://del.icio.us/systemsboy/Scripts"> </a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2005/10/scripts-part-2-ds_store-remover.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/46 queries in 0.030 seconds using disk: basic
Object Caching 573/664 objects using disk: basic

Served from: systemsboy.com @ 2012-05-22 19:12:40 -->
