<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.macgeekery.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Automation</title>
 <link>http://www.macgeekery.com/tips/automation</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Use CUPS Classes to Elegantly Handle Different Locations</title>
 <link>http://www.macgeekery.com/tips/automation/use_cups_classes_elegantly_handle_different_locations</link>
 <description>	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;CUPS&lt;/span&gt; is the name of the service that handles printing in Mac OS X 10.3 to 10.5.  It has a lot of features that aren&amp;#8217;t really pushed in the &lt;span class=&quot;caps&quot;&gt;GUI&lt;/span&gt; in Mac OS X, but users are able to get at those features by using the special administrative interface at &lt;a href=&quot;http://localhost:631/&quot;&gt;http://localhost:631/&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;One of those features is classes.  A class, in this context, is a group of printers that can be made to look as if it were one printer.  This is great in lab settings where you have half a dozen printers of the same type as you can add them all to a class on a print server and have everyone print to that queue.  Then whichever printer is free (or round-robin) will print the job. &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.macgeekery.com/tips/automation/use_cups_classes_elegantly_handle_different_locations&quot;&gt;There&#039;s more &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

</description>
 <comments>http://www.macgeekery.com/tips/automation/use_cups_classes_elegantly_handle_different_locations#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/os/10_3">10.3</category>
 <category domain="http://www.macgeekery.com/os/10_4">10.4</category>
 <category domain="http://www.macgeekery.com/os/105">10.5</category>
 <category domain="http://www.macgeekery.com/difficulty/moderately_involved">Moderately Involved</category>
 <pubDate>Fri, 30 Nov 2007 23:53:41 -0600</pubDate>
 <dc:creator>Adam Knight</dc:creator>
 <guid isPermaLink="false">884 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>Changing Airport Settings En Masse</title>
 <link>http://www.macgeekery.com/hacks/hardware/changing_airport_settings_en_masse</link>
 <description>	&lt;p&gt;I needed to change many iBooks from having a Preferred Network (and wanting to keep looking for that network) to automatically joining any open network and not giving a preference to that certain network.&lt;/p&gt;

	&lt;p&gt;I found that the two preference files involved were:&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist&lt;/tt&gt;&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;/Library/Preferences/SystemConfiguration/preferences.plist&lt;/tt&gt;&lt;/li&gt;
	&lt;/ul&gt;

	&lt;p&gt;I also found that the computer name is kept in &lt;tt&gt;preferences.plist&lt;/tt&gt;, so copying these two files out to all the iBooks would have resulted in a same-name-game fiasco.  Soooo, my solution was to:&lt;/p&gt;

	&lt;ol&gt;
		&lt;li&gt;Copy &lt;tt&gt;/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist&lt;/tt&gt; out to all the iBooks using Apple Remote Desktop.&lt;/li&gt;
		&lt;li&gt;Issue the following &lt;span class=&quot;caps&quot;&gt;UNIX&lt;/span&gt; command as &lt;code&gt;root&lt;/code&gt; also using Apple Remote Desktop:
   &lt;tt&gt;sed -i.backup -e &amp;#8216;s/Ranked/Automatic/&amp;#8217; /Library/Preferences/SystemConfiguration/preferences.plist&lt;/tt&gt;&lt;/li&gt;
	&lt;/ol&gt;

	&lt;p&gt;This command will search through the &lt;code&gt;preferences.plist&lt;/code&gt; file for the word &lt;em&gt;Ranked&lt;/em&gt; and replace it with the word &lt;em&gt;Automatic&lt;/em&gt;.&lt;/p&gt;</description>
 <comments>http://www.macgeekery.com/hacks/hardware/changing_airport_settings_en_masse#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/tips/configuration">Configuration</category>
 <category domain="http://www.macgeekery.com/hacks/hardware">Hardware</category>
 <category domain="http://www.macgeekery.com/os/10_4">10.4</category>
 <category domain="http://www.macgeekery.com/difficulty/moderately_involved">Moderately Involved</category>
 <pubDate>Mon, 26 Nov 2007 15:50:56 -0600</pubDate>
 <dc:creator>schwankl</dc:creator>
 <guid isPermaLink="false">891 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>Time Machine For Tiger</title>
 <link>http://www.macgeekery.com/tips/automation/time_machine_for_tiger</link>
 <description>	&lt;p&gt;As others have noted, there&amp;#8217;s nothing all that new about Time Machine other than its UI. &lt;span class=&quot;caps&quot;&gt;UNIX&lt;/span&gt; admins have been doing similar incremental backups for ages immemorial. Well, OS X &lt;em&gt;is&lt;/em&gt; a &lt;span class=&quot;caps&quot;&gt;UNIX&lt;/span&gt;, isn&amp;#8217;t it? So it should follow that we can get the same bang-for-buck in Tiger (and possibly prior versions, too). For this, &lt;tt&gt;rsync&lt;/tt&gt; and &lt;tt&gt;cpio&lt;/tt&gt; are our friends today. &lt;a href=&quot;/user/adam_knight&quot;&gt;Adam Knight&lt;/a&gt; did most of the footwork here; I just hacked it up into OS X-compatibility. &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.macgeekery.com/tips/automation/time_machine_for_tiger&quot;&gt;There&#039;s more &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description>
 <comments>http://www.macgeekery.com/tips/automation/time_machine_for_tiger#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/tips/cli">CLI</category>
 <category domain="http://www.macgeekery.com/os/10_4">10.4</category>
 <category domain="http://www.macgeekery.com/difficulty/church_of_the_bearded_unix_god">Church of the Bearded Unix God</category>
 <pubDate>Wed, 06 Jun 2007 05:00:00 -0500</pubDate>
 <dc:creator>JC</dc:creator>
 <guid isPermaLink="false">848 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>Configuring Mail to Scan Incoming Email for Malware</title>
 <link>http://www.macgeekery.com/tips/automation/configuring_mail_to_scan_incoming_email_for_malware</link>
 <description>&lt;p&gt;We may not like it, but OS X malware is on the rise. Even if you prefer the lalala-I&amp;#8217;m-not-listening approach to security, you may want to do the decent thing and not forward such nasties from your Windows-using colleagues. Here&amp;#8217;s how to set things up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install clamav (the pre-eminent open source virus scanner).
&lt;p&gt;The easiest way to do this is download and install &lt;a href=&quot;http://www.clamxav.com/index.php?page=dl&quot; rel=&quot;nofollow&quot;&gt;ClamXav&lt;/a&gt;. This includes a nice OS X front end for clamav and an on-access folder-watching utility.&lt;/li&gt;
&lt;p&gt;&amp;nbsp; &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.macgeekery.com/tips/automation/configuring_mail_to_scan_incoming_email_for_malware&quot;&gt;There&#039;s more &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description>
 <comments>http://www.macgeekery.com/tips/automation/configuring_mail_to_scan_incoming_email_for_malware#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/difficulty/moderately_involved">Moderately Involved</category>
 <pubDate>Fri, 01 Jun 2007 08:55:15 -0500</pubDate>
 <dc:creator>diem</dc:creator>
 <guid isPermaLink="false">843 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>Advanced Web Comic Leeching</title>
 <link>http://www.macgeekery.com/tips/automation/advanced_web_comic_leeching</link>
 <description>	&lt;p&gt;I&amp;#8217;d pretend that I have a more productive use for these ideas, but I don&amp;#8217;t.  I wanted to nab all of &lt;a href=&quot;http://www.giantitp.com/comics/oots.html&quot;&gt;Order of the Stick&lt;/a&gt; and &lt;a href=&quot;http://www.xkcd.com&quot;&gt;xkcd&lt;/a&gt; because I hate clicking through pages and then scrolling down for long images only to scroll back up for the next one.  I figured that if I had them all, then I could just open up a batch, set Preview&amp;#8217;s window once, and then thumb through them offline.  To balance the karma from such a leech event I&amp;#8217;ll just get some things from each &lt;a href=&quot;http://www.cafepress.com/orderofthestick.10298314&quot;&gt;comic&amp;#8217;s&lt;/a&gt; &lt;a href=&quot;http://xkcd.com/store/&quot;&gt;shop&lt;/a&gt; (&lt;strong&gt;regexp/science&lt;/strong&gt;) and the universe will still be happy and sunny and annoying and stuff.&lt;/p&gt;

	&lt;p&gt;I started with OoTS and went to the first comic.  Looking at the &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt; for the comic image itself, I saw that it was a sequential number, one for each comic.  Well, that&amp;#8217;s remarkably easy as I then used &lt;code&gt;curl&lt;/code&gt; to download them with a move like: &lt;tt&gt;curl -O http://that.com/ic/images/comic[000-999].jpg&lt;/tt&gt;.  That tells &lt;code&gt;curl&lt;/code&gt; to grab a thousand images in sequence and requires no actual thought.&lt;/p&gt;

	&lt;p&gt;However, the last hundred or so didn&amp;#8217;t come through like that, so I went to the page and pondered why.  When I checked the &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt; of the image to see if it had moved, I realized that someone was on to people like me.  It&amp;#8217;s in the same place, but it&amp;#8217;s been named with a random hash for a filename.  Good job, you just made this a challenge. &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.macgeekery.com/tips/automation/advanced_web_comic_leeching&quot;&gt;There&#039;s more &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

</description>
 <comments>http://www.macgeekery.com/tips/automation/advanced_web_comic_leeching#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/os/10_4">10.4</category>
 <category domain="http://www.macgeekery.com/difficulty/complicated">Complicated</category>
 <pubDate>Wed, 02 May 2007 18:54:22 -0500</pubDate>
 <dc:creator>Adam Knight</dc:creator>
 <guid isPermaLink="false">833 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>AppleScript, Adium, and Chatting Offline Buddies</title>
 <link>http://www.macgeekery.com/tips/automation/applescript_adium_and_chatting_offline_buddies</link>
 <description>	&lt;p&gt;I have waaaay too many chat buddies to leave offline contacts visible in my Adium buddylist, but I tend to IM a few of my Jabber buddies frequently even when they&amp;#8217;re offline. In Adium, you can create new chat, select the service, and start typing in the &lt;span class=&quot;caps&quot;&gt;UID&lt;/span&gt; of the contact, but that&amp;#8217;s a small chore.&lt;/p&gt;

	&lt;p&gt;The dictionary for Adium&amp;#8217;s AppleScript support is sparse and confusing, though I&amp;#8217;m sure it makes perfect sense for seasoned AppleScript vets. I had to trowel around on Adium&amp;#8217;s Trac site to figure it out. Documented here, for you pleasure, is how to create a new chat via AppleScript. &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.macgeekery.com/tips/automation/applescript_adium_and_chatting_offline_buddies&quot;&gt;There&#039;s more &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

</description>
 <comments>http://www.macgeekery.com/tips/automation/applescript_adium_and_chatting_offline_buddies#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/tips/customization">Customization</category>
 <category domain="http://www.macgeekery.com/difficulty/easy">Easy</category>
 <pubDate>Wed, 21 Mar 2007 12:35:00 -0500</pubDate>
 <dc:creator>JC</dc:creator>
 <guid isPermaLink="false">816 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>Starting Different Applications Depending on Power Status</title>
 <link>http://www.macgeekery.com/gspot/2007-01/starting_different_applications_depending_on_power_status</link>
 <description></description>
 <comments>http://www.macgeekery.com/gspot/2007-01/starting_different_applications_depending_on_power_status#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/hacks">Hacks</category>
 <category domain="http://www.macgeekery.com/difficulty/easy">Easy</category>
 <pubDate>Fri, 05 Jan 2007 00:00:00 -0600</pubDate>
 <dc:creator>Adam Knight</dc:creator>
 <guid isPermaLink="false">747 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>Change the Screen Properties from the CLI</title>
 <link>http://www.macgeekery.com/gspot/2006-12/change_the_screen_properties_from_the_cli</link>
 <description></description>
 <comments>http://www.macgeekery.com/gspot/2006-12/change_the_screen_properties_from_the_cli#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/tips/cli">CLI</category>
 <category domain="http://www.macgeekery.com/sections/tips/quickie">Quickie</category>
 <category domain="http://www.macgeekery.com/difficulty/easy">Easy</category>
 <pubDate>Tue, 12 Dec 2006 00:00:55 -0600</pubDate>
 <dc:creator>Adam Knight</dc:creator>
 <guid isPermaLink="false">723 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>How to View TiVo Recordings on Your Mac or iPod</title>
 <link>http://www.macgeekery.com/hacks/software/video/how_to_view_tivo_recordings_on_your_mac_or_ipod</link>
 <description>	&lt;p&gt;You no longer need Windows.  Now, it can all be done on your Mac.  Everything from fetching the files from the TiVo to the decrypt and playback can be accomplished on the Mac side.  This all due to some great work by the guys on the &lt;a href=&quot;http://tivodecode.sourceforge.net/&quot;&gt;TiVo Decode&lt;/a&gt; and &lt;a href=&quot;http://galleon.tv&quot;&gt;Galleon&lt;/a&gt; projects.  Let&amp;#8217;s get started.&lt;/p&gt;

	&lt;p&gt;A short road map of where we&amp;#8217;re going:&lt;/p&gt;

	&lt;ol&gt;
		&lt;li&gt;Install Galleon.&lt;/li&gt;
		&lt;li&gt;Configure the ToGo feature of Galleon to automatically download selected shows from the TiVo into a download folder.&lt;/li&gt;
		&lt;li&gt;Create a script to decode any completed downloads and launch it with &lt;code&gt;launchd&lt;/code&gt; when a file is in the folder.&lt;/li&gt;
		&lt;li&gt;Optionally create another script that uses &lt;span class=&quot;caps&quot;&gt;VLC&lt;/span&gt; to transcode those decoded files.&lt;/li&gt;
	&lt;/ol&gt;

	&lt;p&gt;This article discusses a method to automate the process of getting the files off the TiVo and into Front Row/iPod format.  If you just want to convert a single file then just run &lt;code&gt;tivodecode&lt;/code&gt; on the &lt;code&gt;TiVo&lt;/code&gt; file and you&amp;#8217;ll have an &lt;span class=&quot;caps&quot;&gt;MPEG&lt;/span&gt;-2 file that &lt;span class=&quot;caps&quot;&gt;VLC&lt;/span&gt; can play.  If, however, you want to make a media center that does everything for you and keeps anything from one show to everything the TiVo records, then you should read on.&lt;/p&gt;

	&lt;p class=&quot;ps&quot;&gt;Note the updated scripts at the end of the article that resolve some issues with catching files in their varying states.  These appear to get it right almost all of the time now. &lt;span class=&#039;read-more&#039;&gt;&lt;a href=&quot;http://www.macgeekery.com/hacks/software/video/how_to_view_tivo_recordings_on_your_mac_or_ipod&quot;&gt;There&#039;s more &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

</description>
 <comments>http://www.macgeekery.com/hacks/software/video/how_to_view_tivo_recordings_on_your_mac_or_ipod#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/hacks/software/video">Video</category>
 <category domain="http://www.macgeekery.com/series/tivo">TiVo</category>
 <category domain="http://www.macgeekery.com/difficulty/complicated">Complicated</category>
 <pubDate>Mon, 04 Dec 2006 16:35:57 -0600</pubDate>
 <dc:creator>Adam Knight</dc:creator>
 <guid isPermaLink="false">721 at http://www.macgeekery.com</guid>
</item>
<item>
 <title>A Simple Backup Script</title>
 <link>http://www.macgeekery.com/gspot/2006-12/a_simple_backup_script</link>
 <description></description>
 <comments>http://www.macgeekery.com/gspot/2006-12/a_simple_backup_script#comments</comments>
 <category domain="http://www.macgeekery.com/tips/automation">Automation</category>
 <category domain="http://www.macgeekery.com/tips/cli">CLI</category>
 <pubDate>Sun, 03 Dec 2006 13:01:50 -0600</pubDate>
 <dc:creator>JC</dc:creator>
 <guid isPermaLink="false">719 at http://www.macgeekery.com</guid>
</item>
</channel>
</rss>
