<?xml version="1.0"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>TUAW - The Unofficial Apple Weblog</title><link>http://www.tuaw.com</link><description>TUAW - The Unofficial Apple Weblog</description><image><url>http://www.blogsmithmedia.com/www.tuaw.com/media/feedlogo.gif</url><title>TUAW - The Unofficial Apple Weblog</title><link>http://www.tuaw.com</link></image><language>en-us</language><copyright>Copyright 2012 Weblogs, Inc. The contents of this feed are available for non-commercial use only.</copyright><generator>Blogsmith http://www.blogsmith.com/</generator><item><title>Terminal Tips: Unfreeze your Mac</title><link>http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/</link><guid isPermaLink="true">http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/</guid><comments>http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/#comments</comments><description><![CDATA[<img hspace="8" height="116" border="0" align="right" width="253" vspace="8" src="http://www.blogcdn.com/www.tuaw.com/media/2010/07/253x116-force-quit-tjl.png" alt="" />Look, it's nothing to be ashamed of, it happens to everyone: your <a href="http://tuaw.com/tag/mac">Mac</a> has frozen up and won't respond. I know, I know, for years we Mac folks used to love poking fun at Windows because it freezes up. Apple even <a href="http://quietube.com/v.php/http://www.youtube.com/watch?v=TT3_tiQZwwA&amp;feature=related">made a commercial about it</a>. As someone who has used both, I will say that I have seen this far, far less frequently with Macs... but it happens.<br />
<br />
When apps freeze, it's generally pretty easy to deal with. Control-click (or "right" click for you crazy kids with your multi-button mice) the app icon in the dock, and if it says "Application Not Responding" it will offer a "Force Quit" option. Hopefully that will do it.<br />
<br />
But what if it doesn't? Read on for your options...<p><a href="http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/" rel="bookmark">Continue reading <em>Terminal Tips: Unfreeze your Mac</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/">Terminal Tips: Unfreeze your Mac</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 12 Jul 2010 20:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/">Terminal Tips: Unfreeze your Mac</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 12 Jul 2010 20:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.tuaw.com/category/terminal-tips>Read</a> | <a href="http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19551273/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2010/07/12/terminal-tips-unfreeze-your-mac/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>command line</category><category>CommandLine</category><category>mac</category><category>mac os x</category><category>mac os x 10.5</category><category>mac os x 10.6</category><category>MacOsX</category><category>MacOsX10.5</category><category>MacOsX10.6</category><category>terminal</category><dc:creator>TJ Luoma</dc:creator><pubDate>Mon, 12 Jul 2010 20:00:00 EST</pubDate></item><item><title>Terminal Tips: Generate random filenames for digital photo frame images</title><link>http://www.tuaw.com/2010/02/25/terminal-tips-generate-random-filenames-for-digital-photo-frame/</link><guid isPermaLink="true">http://www.tuaw.com/2010/02/25/terminal-tips-generate-random-filenames-for-digital-photo-frame/</guid><comments>http://www.tuaw.com/2010/02/25/terminal-tips-generate-random-filenames-for-digital-photo-frame/#comments</comments><description><![CDATA[<img vspace="8" hspace="8" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2008/09/terminal_tips_logo.jpg" alt="" />It's not at all unlikely that you or a relative have received a digital photo frame as some sort of gift. The concept is great, one frame on your mantle, many pictures on display. Unfortunately, Apple has yet to enter the photo frame market -- at least until the <a href="http://www.tuaw.com/tag/iPad/">iPad</a> is released, that is. In the interim, we are stuck dealing with photo frames that look good but do not always function as we expect.<br />
<br />
One example of a photo frame feature gap is the lack of ability to "shuffle" photos so that they can be displayed in a random order. While sitting at my grandma's house for hours on end, it quickly became a personal challenge to try and successfully guess the next photo that would appear.<br />
<br />
Luckily, the screencast junkies over at <a href="http://murphymac.com/">Murphy Mac</a> have found a somewhat <a href="http://murphymac.com/random-filenames-for-digital-photo-frame-images/">simple solution</a> to this conundrum. The problem is the result of frames using the all-too-common alphabetical sorting method when showing photos. While this is useful for organization, it is less helpful for the purposes of the photo frame. The answer lies in assigning totally random filenames to your digital photos. As the title indicates, this is a Terminal.app-based tip so you'll have to get your hands a little dirty with this one.<br />
<br />
The process is something that could take a long time, especially when you consider that many photo libraries have thousands of images. However, through the power of <a href="http://www.tuaw.com/tag/Terminal/">Terminal</a> and the use of a for-loop, it is possible to randomly rename an entire folder of images with one fell swoop.<br />
<br />
To begin, you will need to place all of your images in a single folder. We here at the TUAW HQ <em>cannot recommend strongly enough</em> using copied image files and triple-checking your backups prior to moving forward. Open up Terminal.app and use <code> <font size="-1">cd</font> </code> to navigate to the new directory where you placed your image copies (now might be a good time to check your backups a fourth time). When done, type the following command and then press return.<br />
<br />
<code> <font size="-1">
<div>for i in *.jpg; do mv $i $RANDOM.jpg; done</div>
</font> </code><br />
Assuming all of your photos are jpegs and located in same directory, then after some whizzbangery you will have a folder filled with very strangely-named images. Copy these files to your photo frame and you now have a fully randomized photo slideshow. Feel free repeat as often as your guests (or your OCD) require. Got any other handy Terminal tips? Feel free to share them in the comments!<p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2010/02/25/terminal-tips-generate-random-filenames-for-digital-photo-frame/">Terminal Tips: Generate random filenames for digital photo frame images</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 25 Feb 2010 16:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2010/02/25/terminal-tips-generate-random-filenames-for-digital-photo-frame/">Terminal Tips: Generate random filenames for digital photo frame images</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 25 Feb 2010 16:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://murphymac.com/random-filenames-for-digital-photo-frame-images/>Read</a> | <a href="http://www.tuaw.com/2010/02/25/terminal-tips-generate-random-filenames-for-digital-photo-frame/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19373453/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2010/02/25/terminal-tips-generate-random-filenames-for-digital-photo-frame/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>photos</category><category>shuffle</category><category>terminal</category><category>terminal tips</category><category>TerminalTips</category><dc:creator>Aron Trimble</dc:creator><pubDate>Thu, 25 Feb 2010 16:00:00 EST</pubDate></item><item><title>Manually schedule Software Update 'the OS X way' with launchd</title><link>http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/</link><guid isPermaLink="true">http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/</guid><comments>http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/#comments</comments><description><![CDATA[<p><img border="0" hspace="8" vspace="8" width="180" height="307" align="right" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2010/01/hourglasslaunchd.jpg" />In response to a <a href="http://www.macworld.com/article/139860/2009/04/schedulesoftwareupdate.html">Macworld article</a>, TidBits' Chris Pepper <a href="http://db.tidbits.com/article/10895">elaborated</a> on ways to run Software Update, Apple's means of delivering updates and patches, on your own schedule. Beginning with the fact that Software Update schedules its next update based on the time it's currently being run, setting the time for the next update is as easy as running it manually at the time you want it to be scheduled for in the future. <br />
<br />
Later, Pepper delves into the command line method of updating, using the <code>softwareupdate</code> tool (which we've <a href="http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/">talked about on TUAW</a>, too) to run it from Terminal. Taking that a step further, it's suggested that you run the command from <code>cron</code>, a UNIX command for scheduling tasks, to automate the command-line updates. However, while it still works fine and is perfectly capable of the task, <code>cron</code> has technically been deprecated in OS X <a href="http://www.tuaw.com/2005/08/23/launchd-the-new-way-to-launch-stuff/">since Tiger</a>. I thought I'd mention the newfangled "Mac OS X way" of handling scheduled tasks, and demonstrate a little of its flexibility.</p>
<p>Launchd is Apple's replacement for several UNIX ways of doing things, including <code>init</code>, rc.d scripts and <code>cron</code>. It provides a uniform, XML configuration method and -- in many cases -- is more secure than the replaced methods. Launchd can trigger applications and scripts at boot time, at intervals or even when a file or the contents of a folder change. It can also make sure a daemon or an application keeps running, with the ability to respawn and throttle it. If that's just a bunch of nerd-speak to you, don't worry, this isn't going to be an overly technical post. You can read more specifics about launchd on <a href="http://developer.apple.com/macosx/launchd.html">Apple's developer site</a>, if you want more geeky goodness.</p><p><a href="http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/" rel="bookmark">Continue reading <em>Manually schedule Software Update 'the OS X way' with launchd</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/">Manually schedule Software Update 'the OS X way' with launchd</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Sun, 10 Jan 2010 19:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/">Manually schedule Software Update 'the OS X way' with launchd</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Sun, 10 Jan 2010 19:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://developer.apple.com/macosx/launchd.html>Read</a> | <a href="http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19310323/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2010/01/10/manually-schedule-software-update-the-os-x-way-with-launchd/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>cron</category><category>launchd</category><category>Lingon</category><category>OS X</category><category>OsX</category><category>Software Update</category><category>SoftwareUpdate</category><category>Terminal</category><category>unix</category><category>utilities</category><dc:creator>Brett Terpstra</dc:creator><pubDate>Sun, 10 Jan 2010 19:00:00 EST</pubDate></item><item><title>Homebrew, the perfect gift for command line lovers</title><link>http://www.tuaw.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/</link><guid isPermaLink="true">http://www.tuaw.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/</guid><comments>http://www.tuaw.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/#comments</comments><description><![CDATA[<p><img width="355" vspace="8" hspace="8" height="50" border="1" align="right" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2009/12/brewpromptterminal.jpg" />If you're an OS X user who spends as much time on the command line as you do in the GUI, you're probably familiar with the <a href="http://www.macports.org/">MacPorts</a> and <a href="http://www.finkproject.org/">Fink</a> package management projects, making open source software easier to compile and run on Mac OS X. You may also be well-aware of the shortcomings of these projects when it comes to future-proof package management. A new, open source project called <a href="http://github.com/mxcl/homebrew">Homebrew</a> may be exactly what you've been looking for. If you're not a lover of all things <a href="http://en.wikipedia.org/wiki/Command-line_interface">CLI</a>, send a link to Homebrew as a great (free) last-minute gift for the Terminal-lover in your life.</p>
<p>My favorite thing about Homebrew is its ability to function perfectly well with /usr/local as its base directory, installing packages in their own folders but linking them to /usr/local/command. This makes them manageable with existing command line tools. Homebrew can work out of any directory you like, if /usr/local isn't your cup of tea. Installed packages are optimized and stripped based on your architecture, and makes great use of libraries you already have installed or that came with the system, reducing duplication and speeding up download, compile and install times significantly. Add in the zero-config installation, an already-extensive list of "formulas" (packages), a greatly-reduced need to <code>sudo</code> anything, and a Ruby-based framework for creating your own formulae and you've got a killer package for extending your command line toolset.</p>
<p>Homebrew is <a href="http://github.com/mxcl/homebrew">available for free on GitHub</a>, and the main page has complete instructions for various types of installation (and reasons why you'd pick each one). Check it out, and have a merry CLI-mas!</p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/">Homebrew, the perfect gift for command line lovers</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Fri, 25 Dec 2009 16:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/">Homebrew, the perfect gift for command line lovers</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Fri, 25 Dec 2009 16:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://github.com/mxcl/homebrew>Read</a> | <a href="http://www.tuaw.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19294120/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>command line</category><category>command line tools</category><category>CommandLine</category><category>CommandLineTools</category><category>fink</category><category>homebrew</category><category>macports</category><category>open source</category><category>OpenSource</category><category>package management</category><category>PackageManagement</category><category>Terminal</category><dc:creator>Brett Terpstra</dc:creator><pubDate>Fri, 25 Dec 2009 16:00:00 EST</pubDate></item><item><title>Snow Leopard Fixes: Terminal shell workaround</title><link>http://www.tuaw.com/2009/10/23/snow-leopard-fixes-terminal-shell-workaround/</link><guid isPermaLink="true">http://www.tuaw.com/2009/10/23/snow-leopard-fixes-terminal-shell-workaround/</guid><comments>http://www.tuaw.com/2009/10/23/snow-leopard-fixes-terminal-shell-workaround/#comments</comments><description><![CDATA[<img align="right" vspace="8" hspace="8" border="1" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2009/10/37759462-48503221807f233baccf9792c959aec8.4ae0849d-full.jpg" />Ever since I installed Snow Leopard, I've been dealing with a particularly annoying bug. Terminal keeps forgetting my shell preferences.
<p>I generally prefer to use <a href="http://www.tcsh.org/">tcsh</a> rather than bash. This is mostly because I'm a technological dinosaur. I also have a lot invested into my ancient and extensive .cshrc that has taken years to grow and develop.</p>
<p>Normally, I set the default shell inside the Terminal app preferences. But there's a problem. Snow Leopard keeps losing my preferences for reasons I do not begin to understand. With this Snow Leopard bug, I had to find another approach for choosing my shell. Terminal preferences were no longer going to work for me.</p>
<p><img vspace="4" hspace="4" border="1" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2009/10/37755968.jpg" /></p>
<p>There are actually two very good ways to handle this problem.</p>
<p>First, there's chsh, as pointed out by Richard Buckle and Brian "Shmit" this morning. A command line utility, chsh edits the OS X user database, allowing you to change a user's default shell. chsh is built into OS X, and you can pull up a man page to read details about its use. Supply the shell you want to use, authenticate, and you're set. There is, however, an easier solution.</p>
<p>It's System Preferences. As Bill Bumgarner and Jordan Breeding reminded me today, you can access advanced user settings by right-clicking (or Ctrl-clicking) a user name in the Accounts settings; then choose Advanced Options. (Please note that you must first unlock the settings before this trick becomes available.)</p>
<p>When selected, an Advanced Options screen appears. You can set the new login shell in this screen. A simple pop-up list offers easy access to all installed shells. Select the one you want to use and, once selected, click OK to dismiss the screen and return to the Accounts settings pane.</p>
<p>This solution works a lot better than the bash .profile approach I had been using for a few weeks. Running tcsh through the .profile initialization file had caused an extra layer of interaction each time I wanted to close a terminal window. The application warned me that I was about to kill a running process (i.e. my tcsh subprocess). Changing my default shell meant I could create and close windows on demand without that extra dialog, a welcome respite.</p>
<p>In conclusion, while I'm not sure why Terminal keeps losing its preferences, I'm pleased that I at least learned a way to bypass the shell issue. Hopefully, Apple will get this bug fixed soon.</p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/10/23/snow-leopard-fixes-terminal-shell-workaround/">Snow Leopard Fixes: Terminal shell workaround</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Fri, 23 Oct 2009 10:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/10/23/snow-leopard-fixes-terminal-shell-workaround/">Snow Leopard Fixes: Terminal shell workaround</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Fri, 23 Oct 2009 10:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.tuaw.com/category/terminal-tips/>Read</a> | <a href="http://www.tuaw.com/2009/10/23/snow-leopard-fixes-terminal-shell-workaround/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19205823/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/10/23/snow-leopard-fixes-terminal-shell-workaround/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>bash</category><category>shell</category><category>tcsh</category><category>terminal</category><category>tips</category><dc:creator>Erica Sadun</dc:creator><pubDate>Fri, 23 Oct 2009 10:00:00 EST</pubDate></item><item><title>Change the behavior of the iTunes zoom button in 9</title><link>http://www.tuaw.com/2009/09/28/change-the-behavior-of-the-itunes-zoom-button/</link><guid isPermaLink="true">http://www.tuaw.com/2009/09/28/change-the-behavior-of-the-itunes-zoom-button/</guid><comments>http://www.tuaw.com/2009/09/28/change-the-behavior-of-the-itunes-zoom-button/#comments</comments><description><![CDATA[<img width="312" vspace="8" hspace="8" height="63" border="0" align="right" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2009/09/itunes-mini-player-312x63.png" />For me, one of the most welcome new features of iTunes 9 was the restoration of sanity to the way that<a href="http://www.tuaw.com/2009/09/10/dear-auntie-tuaw-what-happened-to-the-mini-player-in-itunes-9/2"> iTunes responded to the zoom button</a>. I had long been irritated by the non-standard behavior iTunes had displayed, brazenly flaunting the accepted practice of how the zoom button worked by toggling the mini player on and off, instead of zooming the window like a well-behaved Mac app.<br /> <br /> Never once in all my years of using iTunes have I wanted to use the mini player. Whenever I tried to zoom the app and the mini player appeared, it would be quickly followed by muttering and grumbling. So you can imagine my joy and bliss at discovering that iTunes 9 finally validated what I had known all along. The zoom button was supposed to act a certain way, and if you want to do something different than the standard, then you ought to use the option/alt key.<br /> <br /> I celebrated this change. I called friends I had not spoken with in ages to tell them about it. I wrote a sonnet to the proper use of the zoom button. A party was planned. Ok, maybe not all of that, but I was pleased with the change.<br /> <br /> Then iTunes 9.0.1 came out and ruined everything. Yes, I said everything! <em>No, <strong>you're</strong> the one who's overly emotionally attached to a relatively minor UI issue!</em><br /> <br /> Well, apparently I'm not the only only one. Over on Twitter <a href="http://twitter.com/zadr/statuses/4300874028">@zadr</a> and <a href="http://twitter.com/siracusa/status/4340503219">@siracusa</a> reported that you could revert iTunes 9.0.1 to iTunes 9.0's behavior through a command in Terminal.app:<br /> <br /> <code>defaults write com.apple.iTunes zoom-to-window -bool YES</code><br /> <br /> This tip was then "retweeted" about 50 times and ended up on <a href="http://www.macosxhints.com/article.php?story=20090924075333329">MacOSXHints.com</a> which is where I first saw it, moments before breaking out into song and dance.<br /> <br /> If you would prefer <em>not</em> to get into Terminal.app, you can get the 9.0 standard zoom behavior in 9.0.1 (and presumably later versions as well) by holding down the alt/option key when clicking the zoom button.<br /> <br /><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/09/28/change-the-behavior-of-the-itunes-zoom-button/">Change the behavior of the iTunes zoom button in 9</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 28 Sep 2009 10:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/09/28/change-the-behavior-of-the-itunes-zoom-button/">Change the behavior of the iTunes zoom button in 9</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 28 Sep 2009 10:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.macosxhints.com/article.php?story=20090924075333329>Read</a> | <a href="http://www.tuaw.com/2009/09/28/change-the-behavior-of-the-itunes-zoom-button/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19175838/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/09/28/change-the-behavior-of-the-itunes-zoom-button/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>defaults write</category><category>DefaultsWrite</category><category>itunes</category><category>mini player</category><category>MiniPlayer</category><category>terminal</category><category>ui</category><category>zoom</category><dc:creator>TJ Luoma</dc:creator><pubDate>Mon, 28 Sep 2009 10:00:00 EST</pubDate></item><item><title>Terminal Tips: Change the location of snapped screenshots</title><link>http://www.tuaw.com/2009/07/28/terminal-tips-change-the-location-of-snapped-screenshots/</link><guid isPermaLink="true">http://www.tuaw.com/2009/07/28/terminal-tips-change-the-location-of-snapped-screenshots/</guid><comments>http://www.tuaw.com/2009/07/28/terminal-tips-change-the-location-of-snapped-screenshots/#comments</comments><description><![CDATA[<img hspace="4" border="1" vspace="4" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2009/07/screenshoticonscreenshot.png" alt="" />Are you tired of all of those icons from screenshots you've taken cluttering up space on your desktop? If you would like them in a different place when you snap them, here's a command to change the location.<br /> <br />Using the <a href="http://en.wikipedia.org/wiki/Apple_Terminal">Terminal</a>, enter the following command to change the location:<br /> <code><br />defaults write com.apple.screencapture location ~/Pictures<br /></code> <br />This snippet will change the default location of saving the screenshot to the Pictures folder. You can also set this location to any folder or volume on your Mac, just substitute <code>~/Pictures</code> in this command to whatever you want. Once you've run this command, you'll need to restart the SystemUIServer (used to control certain interface elements in Mac OS X), by entering <code>killall SystemUIServer</code> in the Terminal.<br /><br /> If you don't want to use the Terminal, many of the popular Mac maintenance utilities, including <a href="http://www.titanium.free.fr/pgs2/english/onyx_leopard.html">OnyX</a> (free). <a href="http://www.bresink.com/osx/TinkerTool.html">TinkerTool</a> (free), and <a href="http://www.maintain.se/cocktail/index.php">Cocktail</a> ($14.95), will allow you to change the location of snapped screenshots.<br /><br />If you're snapping a lot of screenshots, changing the location can be very useful, especially if you're on a portable Mac with limited disk space. Each screenshot can sometimes be over 1MB in size, so if you're tight on space it can be a good idea to store your screenshots elsewhere, like on an external hard drive. <br /><br />There's also a handy suggestion from our own <a href="http://tuaw.com/bloggers/tj-luoma">TJ Luoma</a>: redirect your screenshots to a cached/synchronized folder, like the Pictures folder on your iDisk (if you have iDisk Sync turned on) or a folder in your <a href="http://getdropbox.com">Dropbox</a>, <a href="https://www.mesh.com/welcome/default.aspx">Live Mesh</a> or <a href="https://www.sugarsync.com/">SugarSync</a> directories for instant screenshot sharing among multiple machines.<p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/07/28/terminal-tips-change-the-location-of-snapped-screenshots/">Terminal Tips: Change the location of snapped screenshots</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Tue, 28 Jul 2009 16:45:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/07/28/terminal-tips-change-the-location-of-snapped-screenshots/">Terminal Tips: Change the location of snapped screenshots</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Tue, 28 Jul 2009 16:45:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href="http://www.tuaw.com/2009/07/28/terminal-tips-change-the-location-of-snapped-screenshots/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19096861/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/07/28/terminal-tips-change-the-location-of-snapped-screenshots/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>images</category><category>pictures</category><category>screenshots</category><category>terminal tips</category><category>tip</category><dc:creator>Joachim Bean</dc:creator><pubDate>Tue, 28 Jul 2009 16:45:00 EST</pubDate></item><item><title>Mac 301: Time Machine backups after your Mac's brain surgery</title><link>http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/</link><guid isPermaLink="true">http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/</guid><comments>http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/#comments</comments><description><![CDATA[<img vspace="8" hspace="8" border="1" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2009/07/time-capsule.jpg" alt="" />As I've discovered recently, one of the unfortunate side effects of having the logic board on your computer replaced (aside from the potentially hefty bill involved if your <a href="http://www.tuaw.com/tag/AppleCare/">AppleCare</a> has lapsed) is that your <a href="http://www.tuaw.com/tag/TimeMachine/">Time Machine</a> backups won't play nicely with your Mac after the repair if you're using a Time Capsule. <br /><br />Replacing the logic board is essentially like getting a whole new Mac; though all the data on the hard drive is identical, the new logic board will have different hardware identifiers (specifically, the MAC address) that will tell your Time Capsule, "This is a new Mac that's never been backed up before. Please treat it as such." The Time Capsule, doing as it's told, will fumble along and create a new Time Machine backup while ignoring the old backups completely.<br /><br />Your options then are these:<br /><br />1. Scrap your old Time Machine backups and start fresh. There may be an allure to this, but it's almost certainly unnecessary, and you can lose months of perfectly good backups. Plus, you then have to deal with the incredibly long first Time Machine backup all over again.<br /><br />2. Hack your Time Machine backup using the following procedure, which will allow you to resume Time Machine backups as though your logic board was never replaced.<p><a href="http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/" rel="bookmark">Continue reading <em>Mac 301: Time Machine backups after your Mac's brain surgery</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/">Mac 301: Time Machine backups after your Mac's brain surgery</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 20 Jul 2009 17:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/">Mac 301: Time Machine backups after your Mac's brain surgery</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 20 Jul 2009 17:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.macosxhints.com/comment.php?mode=display&amp;format=threaded&amp;order=ASC&amp;pid=97623>Read</a> | <a href="http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19103455/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/07/20/mac-301-time-machine-backups-after-your-macs-brain-surgery/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>applecare</category><category>hacks</category><category>how to</category><category>mac osx hints</category><category>MacOsxHints</category><category>terminal</category><category>time capsule</category><category>time machine</category><category>TimeMachine</category><dc:creator>Chris Rawson</dc:creator><pubDate>Mon, 20 Jul 2009 17:00:00 EST</pubDate></item><item><title>Terminal Tips: Rebuild your Launch Services database to clean up the Open With menu</title><link>http://www.tuaw.com/2009/06/11/terminal-tips-rebuild-your-launch-services-database-to-clean-up/</link><guid isPermaLink="true">http://www.tuaw.com/2009/06/11/terminal-tips-rebuild-your-launch-services-database-to-clean-up/</guid><comments>http://www.tuaw.com/2009/06/11/terminal-tips-rebuild-your-launch-services-database-to-clean-up/#comments</comments><description><![CDATA[<p><strong><img width="125" vspace="8" hspace="8" height="108" border="0" align="right" alt="Tips" src="http://www.blogcdn.com/www.tuaw.com/media/2008/09/terminal_tips_logo.jpg" />Problem</strong>: Some piece (or pieces) of rogue software have cluttered up your Open With contextual menu, which you can see by right-clicking or control-clicking any document in the Finder. This problem seems to be most prevalent with virtual machines that allow you to open documents with Windows applications, but tend not to clean up after themselves. After having both Parallels and VMWare installed on my MacBook Pro, my Open With menu was a mess.</p>
<p><strong>Solution</strong>: Lucky for me, I noticed <a href="https://twitter.com/chartier/statuses/1875302721">David Chartier's question</a> about this on Twitter around the same time as I was wondering what to do about it. Some friendly person pointed him to a <a href="http://discussions.apple.com/thread.jspa?threadID=1912451&amp;tstart=0">posting on Apple's discussion forum</a> (also noted on Mac OS X Hints <a href="http://www.macosxhints.com/article.php?story=20031215144430486">here</a> and <a href="http://www.macosxhints.com/article.php?story=20071102084155353">here</a>), noting that running a specific command in a terminal window will rebuild your launch services, which repopulates the Open With menu with a current list of applications, without duplicates. It worked perfectly for me, but beware, on my system it took about 10 minutes to complete, and I suspect it could take more on a sufficiently gummed-up system.</p>
<p>Here's the Leopard version of the command (the path to the tool is different in Tiger, see <a href="http://www.macosxhints.com/article.php?story=20031215144430486">here</a>). I broke it into three lines for readability, but the \ at the end of the line is <a href="http://www.tuaw.com/tag/bash/">bash</a>-speak for "keep on going with the same command" -- you can copy and paste it directly and it should work, or if you type it on one line <em>without</em> the backslashes, it will also work fine.</p>
<pre><code>/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\<br /> LaunchServices.framework/Versions/A/Support/lsregister -kill\<br /> -r -domain local -domain system -domain user </code></pre>
If, preferring to avoid the Terminal, you want a handy GUI app to rebuild the Launch Services database with a couple of clicks, check out Titanium's <a href="http://www.titanium.free.fr/index_us.html">OnyX or Maintenance</a> utilities, both free of charge.<p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/06/11/terminal-tips-rebuild-your-launch-services-database-to-clean-up/">Terminal Tips: Rebuild your Launch Services database to clean up the Open With menu</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 11 Jun 2009 17:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/06/11/terminal-tips-rebuild-your-launch-services-database-to-clean-up/">Terminal Tips: Rebuild your Launch Services database to clean up the Open With menu</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 11 Jun 2009 17:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://discussions.apple.com/thread.jspa?threadID=1912451&amp;tstart=0>Read</a> | <a href="http://www.tuaw.com/2009/06/11/terminal-tips-rebuild-your-launch-services-database-to-clean-up/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/19063972/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/06/11/terminal-tips-rebuild-your-launch-services-database-to-clean-up/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>contextual</category><category>david-chartier</category><category>hints</category><category>launch-services</category><category>open-with</category><category>terminal</category><category>terminal-command</category><category>tips</category><dc:creator>Jason Clarke</dc:creator><pubDate>Thu, 11 Jun 2009 17:00:00 EST</pubDate></item><item><title>TUAW Tip: Moving your home folder to another disk (or moving it back)</title><link>http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/</link><guid isPermaLink="true">http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/</guid><comments>http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/#comments</comments><description><![CDATA[<p><img vspace="8" hspace="8" border="0" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2009/05/terminal-dir-23847293847.jpg" id="img1" alt="" />In ye olde times, with "<a href="http://tuaw.com/tag/classic">Mack OSe 9</a>," many users chose to keep their personal files, work, and documents on a different physical disk from their startup disk. It was a safety measure: If one disk goes down, at least the other won't. There was no structural reason to keep files in a particular disk location, other than keeping them out of the System Folder.</p>
<p>I visited a client yesterday whose drive scheme was set up exactly like this, and he wanted to be (finally) upgraded to Leopard. I wasn't sure how Leopard would handle the fact that his Users folder had been moved to a different drive, so (knowing I had backups of his entire system) I cautiously proceeded with the installation.</p>
<p>After the installer finished, Leopard had created a fresh, blank Users folder on the startup disk with a home folder bearing the same username. This wasn't exactly the answer I was looking for. I had to link, somehow, the new <em>Users/hisname</em> folder with his existing user folder on the other volume.</p>
<p>Turns out, Leopard handles this much better than previous versions of Mac OS X. Read on to find out how.</p><p><a href="http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/" rel="bookmark">Continue reading <em>TUAW Tip: Moving your home folder to another disk (or moving it back)</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/">TUAW Tip: Moving your home folder to another disk (or moving it back)</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 14 May 2009 15:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/">TUAW Tip: Moving your home folder to another disk (or moving it back)</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 14 May 2009 15:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.iezzi.ch/archives/111>Read</a> | <a href="http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1545977/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/05/14/tuaw-tip-moving-your-home-folder-to-another-disk-or-moving-it/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>directory</category><category>directory services</category><category>DirectoryServices</category><category>dscl</category><category>leopard</category><category>terminal</category><category>terminal tips</category><category>TerminalTips</category><dc:creator>Robert Palmer</dc:creator><pubDate>Thu, 14 May 2009 15:30:00 EST</pubDate></item><item><title>Safari 4 hidden preferences</title><link>http://www.tuaw.com/2009/02/25/safari-4-hidden-preferences/</link><guid isPermaLink="true">http://www.tuaw.com/2009/02/25/safari-4-hidden-preferences/</guid><comments>http://www.tuaw.com/2009/02/25/safari-4-hidden-preferences/#comments</comments><description><![CDATA[<img vspace="8" hspace="8" border="0" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2007/11/leopardterminal110507.jpg" alt="" />There's quite a debate going on in the Mac web over Safari 4's new user interface. Personally, I think the new tab implementation is hideous, so I was glad to see that Caius Durling has discovered a bevy of <a href="http://swedishcampground.com/safari-4-hidden-preferences">hidden preferences for Safari 4</a>.<br /><br />With a few quick Terminal commands you can restore sanity to your tabs, bring back the old URL completion behavior, remove CoverFlow from the Bookmarks view, and few other neat tricks. On the other hand, if crazy tabs float your boat, they're easy enough to restore in the same way.<br /><br />[via <a href="http://www.downloadsquad.com/2009/02/25/tap-into-safari-4s-hidden-preferences/">Download Squad</a>]<p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/02/25/safari-4-hidden-preferences/">Safari 4 hidden preferences</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 25 Feb 2009 18:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/02/25/safari-4-hidden-preferences/">Safari 4 hidden preferences</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 25 Feb 2009 18:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://swedishcampground.com/safari-4-hidden-preferences>Read</a> | <a href="http://www.tuaw.com/2009/02/25/safari-4-hidden-preferences/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1471687/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/02/25/safari-4-hidden-preferences/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>safari 4</category><category>Safari4</category><category>terminal tips</category><category>TerminalTips</category><dc:creator>Mat Lu</dc:creator><pubDate>Wed, 25 Feb 2009 18:00:00 EST</pubDate></item><item><title>Revisiting the randomized signature AppleScript, now with API goodness</title><link>http://www.tuaw.com/2009/02/10/revisiting-the-randomized-signature-applescript-now-with-api-go/</link><guid isPermaLink="true">http://www.tuaw.com/2009/02/10/revisiting-the-randomized-signature-applescript-now-with-api-go/</guid><comments>http://www.tuaw.com/2009/02/10/revisiting-the-randomized-signature-applescript-now-with-api-go/#comments</comments><description><![CDATA[<p><img hspace="8" vspace="8" border="0" align="right" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2009/02/applescriptcurl_380x181-10022009065013.jpg" />When I shared an AppleScript last week which created <a href="http://www.tuaw.com/2009/02/02/random-signatures-with-textexpander-and-applescript/">randomized signatures using TextExpander</a>, I promised to revisit it when the iheartquotes.com API started working again. It's working right now, but it seems to go up and down; check <a href="http://www.iheartquotes.com/api/v1/random?source=macintosh">this link</a> before you try the script and make sure you get a quote, not an error message.</p>
<p>As before, when used with a TextExpander snippet set to the AppleScript type, this script will provide a random quote, this time pulling it from the Internet rather than our own list. The script is essentially the same, so I'm only going to explain the part which changed; visit the <a href="http://www.tuaw.com/2009/02/02/random-signatures-with-textexpander-and-applescript/">previous article</a> for a rundown on the rest:</p>
<pre><code>set _date to do shell script &not;<br /> "date +'Sent on %A, %b %d at %l:%M %p'|tr -s ' '"<br /><br /> set _quote to ""<br /><br /> try<br /><br /> set _quote to do shell script "curl -s \\<br /> 'http://www.iheartquotes.com/api/v1/random?source=macintosh&amp;max_lines=4'"<br /><br /> set {astid, AppleScript's text item delimiters} &not;<br /> to {AppleScript's text item delimiters, return}<br /> set _quote to paragraphs 1 through -3 of _quote as string<br /> set AppleScript's text item delimiters to astid<br /><br /> end try<br /><br /> set _out to "<br /> -Brett<br /><br /> " &amp; _date &amp; "<br /> ________________________________<br /> Brett Terpstra | myemailaddress@mywebsite.com<br /> The Unofficial Apple Weblog | http://www.tuaw.com<br /><br /> " &amp; _quote<br /><br /> return _out</code></pre>
<h3 id="thecurlcall">The curl call</h3>
<p>Here's the part which makes this more interesting than it was before:</p>
<pre><code>set _quote to do shell script "curl -s \\<br /> 'http://www.iheartquotes.com/api/v1/random?source=macintosh&amp;max_lines=4'"</code></pre>
<p>First off, that really should be all one line, but is split here for formatting purposes. You can remove the double backslash (\\) and merge the lines together if you like. What this does is use AppleScript's <a href="http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/">ability to run shell scripts</a> (Unix commands) to make a <a href="http://en.wikipedia.org/wiki/CURL">curl</a> call to retrieve a response from the <a href="http://iheartquotes.com/api">iheartquotes API</a>. Note the "try" statement surrounding that section; it will just return our regular signature without the quote if anything goes wrong. If it gets a response, it stores it in a variable (_quote) and then trims off the last line, like this:</p>
<pre><code>set {astid, AppleScript's text item delimiters} &not;<br /> to {AppleScript's text item delimiters, return}<br /> set _quote to paragraphs 1 through -3 of _quote as string<br /> set AppleScript's text item delimiters to astid</code></pre>
<p>The first two lines (actually one line) are shorthand for setting "AppleScript's text item delimiters" -- the character that AppleScript uses to separate text items in a block of text -- to the return character and store the current text item delimiter in a variable so we can restore it with the last line. Using the paragraphs command, which automatically uses the return key to separate paragraphs, we turn the quote into a list of paragraphs, starting with the first and ending with the third from last. This is because the last two "paragraphs" are always an empty line and a permalink (even if you use the API's parameters to turn <em>off</em> the permalink). The last part of that line, "<code>as string</code>", is where the text item delimiters come into play, putting the list items back together with a return after each one, reconstructing the original formatting.</p>
<p><strong>Note:</strong> You could do the same thing by adding <code>|sed -n '$!p'</code> to the end of the <code>do shell script</code> line, right before the last double quote. I suppose you might as well, as long as you're dipping out to the shell anyway ...</p>
<p>From there it's the same as before, just building a final output string from the pieces we've created. This method provides a much wider variety of randomized signatures than constructing your own list by making use of a small section of the wide array of data on the interwebs. The use of curl in an AppleScript can open a lot of possibilities, such as <a href="http://www.leroux.ca/archive/dsp_view_470.cfm">posting to Twitter</a> in <a href="http://www.leroux.ca/archive/dsp_view_474.cfm">various ways</a>. or <a href="http://smileonmymac.net/blog/2008/03/19/quick-tinyurls-with-textexpander-and-applescript/">shortening urls</a> on the fly. Have fun.</p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/02/10/revisiting-the-randomized-signature-applescript-now-with-api-go/">Revisiting the randomized signature AppleScript, now with API goodness</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Tue, 10 Feb 2009 13:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/02/10/revisiting-the-randomized-signature-applescript-now-with-api-go/">Revisiting the randomized signature AppleScript, now with API goodness</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Tue, 10 Feb 2009 13:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.tuaw.com/tag/AppleScript/>Read</a> | <a href="http://www.tuaw.com/2009/02/10/revisiting-the-randomized-signature-applescript-now-with-api-go/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1455649/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/02/10/revisiting-the-randomized-signature-applescript-now-with-api-go/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>api</category><category>AppleScript</category><category>curl</category><category>shell</category><category>shell script</category><category>ShellScript</category><category>unix</category><dc:creator>Brett Terpstra</dc:creator><pubDate>Tue, 10 Feb 2009 13:00:00 EST</pubDate></item><item><title>iLife Tip: Enable Multi-Touch maps in iPhoto '09</title><link>http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/</link><guid isPermaLink="true">http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/</guid><comments>http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/#comments</comments><description><![CDATA[<img width="125" vspace="8" hspace="8" height="125" border="0" align="right" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2007/11/iphoto-icon.jpg" />After using <a href="http://www.tuaw.com/2009/01/28/iphoto-09-is-a-pretty-picture/">iPhoto '09</a> for a couple days, I have come to love the new features, in particular the Places feature. However, one thing that annoyed me is that you cannot use the Multi-Touch feature on newer MacBooks to manipulate the maps (zooming in/out, etc.). <br />
<br />
However, thanks to a <a href="http://twitter.com/stroughtonsmith/status/1156472735">Tweet-tip</a> from Steven Troughton-Smith (<a href="http://twitter.com/stroughtonsmith/">@stroughtonsmith</a>), there is a way to enable this functionality. To add Multi-Touch maps to places in iPhoto '09, just open Terminal.app (/Applications/Utilities) and type (or copy/paste) the following statement and press enter: <br />
<br />
<span class="entry-content"><code>defaults write com.apple.iphoto MapScrollWheel -bool YES</code></span><br />
<br />
When you restart iPhoto, you will notice that you are now able to scroll in/out of the Places maps with ease. If it turns out that you don't want the scrolling feature, just retype the statement, replacing "YES" with "NO." <br />
<br />
<br />
<em>Thanks for the tip, Steven! </em><p><a href="http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/" rel="bookmark">Continue reading <em>iLife Tip: Enable Multi-Touch maps in iPhoto '09</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/">iLife Tip: Enable Multi-Touch maps in iPhoto '09</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 28 Jan 2009 18:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/">iLife Tip: Enable Multi-Touch maps in iPhoto '09</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 28 Jan 2009 18:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://twitter.com/stroughtonsmith/status/1156472735>Read</a> | <a href="http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1443827/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2009/01/28/ilife-tip-enable-multi-touch-maps-in-iphoto-09/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>iLife</category><category>iLife 09</category><category>Ilife09</category><category>iPhoto 09</category><category>Iphoto09</category><category>Terminal Tips</category><category>TerminalTips</category><dc:creator>Cory Bohon</dc:creator><pubDate>Wed, 28 Jan 2009 18:00:00 EST</pubDate></item><item><title>Terminal Tip: Enable half-star ratings in iTunes</title><link>http://www.tuaw.com/2008/12/31/terminal-tip-enable-half-star-ratings-in-itunes/</link><guid isPermaLink="true">http://www.tuaw.com/2008/12/31/terminal-tip-enable-half-star-ratings-in-itunes/</guid><comments>http://www.tuaw.com/2008/12/31/terminal-tip-enable-half-star-ratings-in-itunes/#comments</comments><description><![CDATA[<img width="225" vspace="8" hspace="8" height="135" border="1" align="right" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2008/12/terminal-tip_-enable-half-star-ratings-in-itunes.jpg" />Do you like giving ratings to songs in iTunes? If so, then you've probably noticed that you are only able to rate songs on a full-star basis, not enough granularity for some music fans... there's a longstanding <a href="http://dougscripts.com/itunes/scripts/ss.php?sp=addsubtracthalfstar">AppleScript hack</a> to enable half-stars, but now there's an easier way around this issue. Macworld's Rob Griffiths found a <a href="http://www.macworld.com/article/137800/2008/12/halfstaritunes/article.html">work around</a>, involving a simple <a href="http://tuaw.com/category/Terminal-Tips/">Terminal</a> tip to enable half-star ratings. <br /><br />To enable half-star ratings, close iTunes, and open Terminal (/Applications/Utilities). Once you have Terminal opened, type the following command and press enter: <br />
<pre><code>defaults write com.apple.iTunes allow-half-stars -bool TRUE</code></pre>
When you reopen iTunes and rate a song, you will be able to give half-stars. That simple. If you wish to make things normal again, open Terminal and type the same command, replacing "TRUE" with "FALSE."<p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/12/31/terminal-tip-enable-half-star-ratings-in-itunes/">Terminal Tip: Enable half-star ratings in iTunes</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 31 Dec 2008 11:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/12/31/terminal-tip-enable-half-star-ratings-in-itunes/">Terminal Tip: Enable half-star ratings in iTunes</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 31 Dec 2008 11:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.macworld.com/article/137800/2008/12/halfstaritunes/article.html>Read</a> | <a href="http://www.tuaw.com/2008/12/31/terminal-tip-enable-half-star-ratings-in-itunes/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1415326/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/12/31/terminal-tip-enable-half-star-ratings-in-itunes/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>half-star rating</category><category>Half-starRating</category><category>iTunes</category><category>ratings</category><category>start</category><category>Terminal</category><category>Terminal Tips</category><category>TerminalTips</category><dc:creator>Cory Bohon</dc:creator><pubDate>Wed, 31 Dec 2008 11:00:00 EST</pubDate></item><item><title>Terminal Tip: Enable Safari web inspector</title><link>http://www.tuaw.com/2008/12/11/terminal-tip-enable-safari-web-inspector/</link><guid isPermaLink="true">http://www.tuaw.com/2008/12/11/terminal-tip-enable-safari-web-inspector/</guid><comments>http://www.tuaw.com/2008/12/11/terminal-tip-enable-safari-web-inspector/#comments</comments><description><![CDATA[<div align="center"><img width="425" vspace="8" hspace="8" height="251" border="0" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2008/12/terminal-tip_-enable-safari-web-inspector_cb1273.jpg" /><br /></div>
Perhaps you are a web developer, or maybe you're just nosy. Either way, looking at certain websites' CSS, HTML, and Script documents can be fun. If you are a Safari user, you can easily look at the loading documents in the Activity View (Window &gt; Activity), but what if you want to take this a step further? You can with the Safari Web Inspector, and you can do it by enabling the Safari "Develop" menu. <br /><br />To enable the Safari Develop menu, just close Safari and type (or copy/paste) the following command into <a href="http://tuaw.com/category/Terminal-Tips">Terminal</a>.app (/Applications/Utilities): <br /><br /><code>defaults write com.apple.Safari WebKitDeveloperExtras -bool true </code><br /><br />Once you enter the command, you will be able to launch Safari, load a webpage, and click Develop &gt; "Show Web Inspector" to see the page attributes. You will be able to see the documents, stylesheets, images, and scripts. <br /><br /><strong>Update:</strong> As of new versions of Safari, you can enable the Develop menu by going to Safari &gt; Preferences &gt; Advanced, and click on the "Show Develop menu in menu bar." Thanks to everyone in the comments for pointing this out! <br /><br /><em>Want more tips and tricks like this? Visit TUAW's <a href="http://www.tuaw.com/category/Terminal-Tips">Terminal Tips</a> section today!</em><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/12/11/terminal-tip-enable-safari-web-inspector/">Terminal Tip: Enable Safari web inspector</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 11 Dec 2008 13:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/12/11/terminal-tip-enable-safari-web-inspector/">Terminal Tip: Enable Safari web inspector</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 11 Dec 2008 13:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://tuaw.com/category/Terminal-Tips>Read</a> | <a href="http://www.tuaw.com/2008/12/11/terminal-tip-enable-safari-web-inspector/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1395215/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/12/11/terminal-tip-enable-safari-web-inspector/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>Safari</category><category>Terminal</category><category>Tips</category><category>Web Inspector</category><category>WebInspector</category><dc:creator>Cory Bohon</dc:creator><pubDate>Thu, 11 Dec 2008 13:00:00 EST</pubDate></item><item><title>Terminal Tip: Change Time Machine backup interval</title><link>http://www.tuaw.com/2008/12/08/terminal-tip-change-time-machine-backup-interval/</link><guid isPermaLink="true">http://www.tuaw.com/2008/12/08/terminal-tip-change-time-machine-backup-interval/</guid><comments>http://www.tuaw.com/2008/12/08/terminal-tip-change-time-machine-backup-interval/#comments</comments><description><![CDATA[<img width="125" vspace="8" hspace="8" height="NaN" border="0" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2007/11/attimemachine110907.jpg" alt="" />Sometimes you want your Mac to be backed up more frequently than usual. If you want to instantly back up using <a href="http://tuaw.com/tag/Time Machine">Time Machine</a>, you could click on the menu bar item and select "Back Up Now," but what if you want to change the backup interval indefinitely? With this Terminal Tip, you can do just that. <br /><br />Time Machine is set to automatically back up every hour, but if you would like to change it to every half hour, you can use the following Terminal (/Applications/Utilities) command: <br /><br /><code>sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 1800 </code><br /><br />You will need to authenticate as an administrator, since this command is run under a "sudo." The time interval is measured in seconds, so you can enter any time you wish there; just make sure it is in seconds. By default, Time Machine backs up every 3600 seconds (every hour). If you wish to revert to the original, just replace "1800" with "3600."<br /><br /><br /><em>Want more tips and tricks like this? Visit TUAW's <a href="http://tuaw.com/category/Terminal-Tips/">Terminal Tips</a> section! </em><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/12/08/terminal-tip-change-time-machine-backup-interval/">Terminal Tip: Change Time Machine backup interval</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 08 Dec 2008 09:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/12/08/terminal-tip-change-time-machine-backup-interval/">Terminal Tip: Change Time Machine backup interval</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Mon, 08 Dec 2008 09:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.tuaw.com/category/Terminal-Tips/>Read</a> | <a href="http://www.tuaw.com/2008/12/08/terminal-tip-change-time-machine-backup-interval/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1393863/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/12/08/terminal-tip-change-time-machine-backup-interval/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>backup</category><category>terminal</category><category>Terminal TIps</category><category>TerminalTips</category><category>Time Machine</category><category>TimeMachine</category><dc:creator>Cory Bohon</dc:creator><pubDate>Mon, 08 Dec 2008 09:30:00 EST</pubDate></item><item><title>Terminal Tips: Enable "path view" in Finder</title><link>http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/</link><guid isPermaLink="true">http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/</guid><comments>http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/#comments</comments><description><![CDATA[<div align="center"><img width="425" vspace="8" hspace="8" height="117" border="0" src="http://www.blogcdn.com/www.tuaw.com/media/2008/12/picture-2_terminal-tips_-enable-path-view-in-finder_cb12793.jpg" alt="" /></div>
<p>When you open a Finder window and start browsing to a folder, do you lose track of the path to that folder? If you do, the Terminal command below will enable path view in the Finder -- this means that you will see the directory path to the current folder you are browsing in the title bar, instead of only seeing the name of the current directory. <br /> <br /> To make directory paths visible atop Finder windows, open Terminal.app (/Applications/Utilities/) and type the following command:<br /> <br /> <code>defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES <br /> </code><br /> Once you run the above command, you will also need to restart the Finder, so you can either type "killall Finder" and hit return, or use the Force Quit option under the Apple menu to relaunch it. The Finder will restart, and you will start seeing the paths to directories in the title bar. </p>
<p><strong>Update:</strong> As some have pointed out in the comments below, this Terminal command will only work with Mac OS X Leopard (version 10.5). <br><strong>Ups</strong></br><br /> <em>Want more tips and tricks like this? Visit TUAW's <a href="http://tuaw.com/category/Terminal-Tips">Terminal Tips</a> section!</em></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/">Terminal Tips: Enable "path view" in Finder</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Fri, 05 Dec 2008 11:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/">Terminal Tips: Enable "path view" in Finder</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Fri, 05 Dec 2008 11:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://tuaw.com/category/Terminal-Tips>Read</a> | <a href="http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1391994/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/12/05/terminal-tips-enable-path-view-in-finder/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>Finder</category><category>Terminal</category><category>Terminal Tip</category><category>TerminalTip</category><category>tips</category><dc:creator>Cory Bohon</dc:creator><pubDate>Fri, 05 Dec 2008 11:00:00 EST</pubDate></item><item><title>Terminal Tips: Enable Address Book debug menu</title><link>http://www.tuaw.com/2008/12/04/terminal-tips-enable-address-book-debug-menu/</link><guid isPermaLink="true">http://www.tuaw.com/2008/12/04/terminal-tips-enable-address-book-debug-menu/</guid><comments>http://www.tuaw.com/2008/12/04/terminal-tips-enable-address-book-debug-menu/#comments</comments><description><![CDATA[<img width="225" vspace="8" hspace="8" height="191" border="1" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2008/12/desktop_terminal-tips_-enable-address-book-debug-menu_cb12379.jpg" alt="" />You may recall that <a href="http://www.macosxhints.com/article.php?story=20030110063041629">Safari has a debug menu</a> that enables some hidden features, but did you know Address Book also has a debug menu? <br /><br />In Address Book's debug menu, you can get options for logging, controls for metadata, printing selections, and removing orphaned images. You can enable this debug menu by typing the following command into Terminal.app (/Applications/Utilities): <br /><br /><code>defaults write com.apple.addressbook ABShowDebugMenu -bool YES<br /><br /></code>If you no longer wish to have this menu hanging around, you can remove it by typing the same command above, but replace "YES" with "NO." <br /><br /><em>Want more tips and tricks like this? Visit TUAW's <a href="http://tuaw.com/category/Terminal-Tips">Terminal Tips</a> section!</em><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/12/04/terminal-tips-enable-address-book-debug-menu/">Terminal Tips: Enable Address Book debug menu</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 04 Dec 2008 16:15:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/12/04/terminal-tips-enable-address-book-debug-menu/">Terminal Tips: Enable Address Book debug menu</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Thu, 04 Dec 2008 16:15:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://tuaw.com/category/Terminal-Tips>Read</a> | <a href="http://www.tuaw.com/2008/12/04/terminal-tips-enable-address-book-debug-menu/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1390789/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/12/04/terminal-tips-enable-address-book-debug-menu/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>Address Book</category><category>AddressBook</category><category>debug</category><category>debug menu</category><category>DebugMenu</category><dc:creator>Cory Bohon</dc:creator><pubDate>Thu, 04 Dec 2008 16:15:00 EST</pubDate></item><item><title>Terminal Tips: Install software updates from the command line</title><link>http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/</link><guid isPermaLink="true">http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/</guid><comments>http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/#comments</comments><description><![CDATA[<div align="center"><img width="425" vspace="8" hspace="8" height="161" border="0" src="http://www.blogcdn.com/www.tuaw.com/media/2008/12/terminal-tips_-install-software-updates-with-terminal.app.jpg" alt="" /><br /></div>
Sure, you could update your Apple software by opening <a href="http://tuaw.com/category/Software-Update">Software Update</a> from the Apple menu. But what if you're inclined to use a command line interface, or maybe you need to update a remote machine via <a href="http://www.tuaw.com/tag/SSH/">SSH</a>? There's a way to complete a software update in <a href="http://tuaw.com/category/Terminal-Tips">Terminal</a>.app. Here's how.<br /><br />If you want to do an automatic install of all the updates for your particular Mac, first log in as an administrative user. Then open Terminal.app (located in /Applications/Utilities), and type (or copy/paste) the following command:<br /> <blockquote><code>sudo softwareupdate -i -a</code><br /></blockquote><br />and hit Return. Next, you'll be prompted to enter your password; do so, and then hit Return. The application will then look for available updates, download them, and then install them. You will see the progress in Terminal. If no updates are available, Terminal will let you know. <br /><br />This command replicates the functionality of the normal Software Update utility. However, you can use it on other machines in the background via SSH remote login, or you could apply a specific update rather than the full list of available patches. To see all the command options, type <code>man softwareupdate</code> at the Terminal prompt.<br /><br /><em>Want more tips and tricks like this? Visit TUAW's <a href="http://tuaw.com/category/Terminal-Tips">Terminal Tips</a> section</em>!<p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/">Terminal Tips: Install software updates from the command line</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Tue, 02 Dec 2008 11:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/">Terminal Tips: Install software updates from the command line</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Tue, 02 Dec 2008 11:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.tuaw.com/category/Terminal-Tips>Read</a> | <a href="http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1387956/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/12/02/terminal-tips-install-software-updates-from-the-command-line/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>Apple</category><category>root</category><category>software</category><category>Software Update</category><category>SoftwareUpdate</category><category>sudo</category><category>terminal</category><category>tips</category><category>update</category><dc:creator>Cory Bohon</dc:creator><pubDate>Tue, 02 Dec 2008 11:00:00 EST</pubDate></item><item><title>Terminal Tips: Play Tetris in Terminal</title><link>http://www.tuaw.com/2008/10/01/terminal-tips-play-tetris-in-terminal/</link><guid isPermaLink="true">http://www.tuaw.com/2008/10/01/terminal-tips-play-tetris-in-terminal/</guid><comments>http://www.tuaw.com/2008/10/01/terminal-tips-play-tetris-in-terminal/#comments</comments><description><![CDATA[<div align="center"><img width="425" vspace="8" hspace="8" height="286" border="0" src="http://www.blogcdn.com/www.tuaw.com/media/2008/09/terminal-tips_-play-tetris-in-terminal.jpg" alt="" /><br /></div>
<a href="http://tuaw.com/tag/Terminal">Terminal</a> boasts some cool, but hidden features that we like to call "<a href="http://en.wikipedia.org/wiki/Easter_egg_(media)">Easter eggs</a>." These "eggs" are hidden features that the developers build in (mostly for fun or laughs), that don't have anything to do with the functionality of the program.<br /><br />One of these "eggs" is the ability to play <a href="http://tuaw.com/tag/Tetris">Tetris</a> in Terminal. Here's how to do it. First, open a new Terminal.app (/Applications/Utilities) window and type "emacs," then hit enter. After the screen loads, press "escape," then "x." Type "tetris" (lower-case) and hit enter. There you have it, a fully playable game of Tetris. Use the arrow keys to control the blocks.<br /><br /><br /><em>Want more tips and tricks like this? Visit TUAW's <a href="http://tuaw.com/category/Mac-101">Mac 101</a> and <a href="http://tuaw.com/category/Terminal-Tips">Terminal Tips</a> sections.</em><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/10/01/terminal-tips-play-tetris-in-terminal/">Terminal Tips: Play Tetris in Terminal</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 01 Oct 2008 08:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="TUAW - The Unofficial Apple Weblog" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/10/01/terminal-tips-play-tetris-in-terminal/">Terminal Tips: Play Tetris in Terminal</a> originally appeared on <a href="http://www.tuaw.com">TUAW - The Unofficial Apple Weblog</a> on Wed, 01 Oct 2008 08:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://tuaw.com/category/Terminal-Tips>Read</a> | <a href="http://www.tuaw.com/2008/10/01/terminal-tips-play-tetris-in-terminal/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1329429/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/10/01/terminal-tips-play-tetris-in-terminal/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>Easter eggs</category><category>EasterEggs</category><category>Terminal</category><category>Terminal tips</category><category>TerminalTips</category><category>tips</category><dc:creator>Cory Bohon</dc:creator><pubDate>Wed, 01 Oct 2008 08:00:00 EST</pubDate></item></channel></rss>
