<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mitch&#039;s meanderings&#187; apple</title>
	<atom:link href="http://mitchcontla.com/tag/apple/feed/" rel="self" type="application/rss+xml" />
	<link>http://mitchcontla.com</link>
	<description>life, technology, running; links, photos, and videos</description>
	<lastBuildDate>Tue, 18 Oct 2011 19:32:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Use Mac OS X Automator and Services To Speed Up Repetitive Tasks</title>
		<link>http://mitchcontla.com/2011/02/28/mac-os-x-automator-and-services/</link>
		<comments>http://mitchcontla.com/2011/02/28/mac-os-x-automator-and-services/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 17:02:53 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://mitchcontla.com/?p=277</guid>
		<description><![CDATA[Automator is one of best kept secrets in Mac OS X. Using Automator to build workflows is simple and takes little time to learn. Services are an effective way to automate repetitive tasks that save time. Make your computer work for you now by creating a few services of your own.]]></description>
			<content:encoded><![CDATA[<p><a href="http://support.apple.com/kb/HT2488">Automator</a> is one of best kept secrets in Mac OS X. It&#8217;s kind of like drag-and-drop scripting that lets you create workflows to automate and speed up repetitive tasks. In Snow Leopard, you can use Automator to create your own services that are accessible via the Services menu and can also be contextual, showing up when you right-click on an item like text selections or files and folders.</p>

<p>The Automator application lets you build a workflow by choosing from a collection of actions, some native to OS X, some installed by other applications, and dragging those actions into a workflow. There are actions that perform standalone tasks like copying a file to a specific folder, processing an image, or asking for input. If you need something more advanced there are actions that let you run shell commands, or even call other scripting languages like Python, Perl, or Apple&#8217;s own AppleScript. Combining these actions into a workflow lets you automate just about anything.</p>

<p><strong>Addressing an Envelope Using Selected Text</strong><br />
I recently received a request to mail some additional information for a rebate I submitted several weeks ago. The email message contained the mailing address for the fulfillment center. Ordinarily, this means either hand addressing an envelope or going through several steps to launch Pages, choose a template, cut and paste the address, and print the envelope. It felt like I should be able to select the address and have an envelope automatically prepared and ready to print, but there is no built in way to do this.</p>

<p>Using Automator, I created a service that appears as a contextual menu item when working with selected text&#8230; in this case an address. In this workflow the Automator service is essentially a wrapper around AppleScript which does the heavy lifting here.</p>

<p><a href="http://mitchcontla.com/blog/wp-content/uploads/2011/02/auto_envelope-e1298825855688.png"><img src="http://mitchcontla.com/blog/wp-content/uploads/2011/02/auto_envelope-e1298825855688.png" alt="Automator envelope workflow" title="Automator envelope workflow" width="600" height="375" class="aligncenter size-full wp-image-275" /></a></p>

<p>Here is the AppleScript that makes it happen.</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #0066ff;">run</span> <span style="color: #000000;">&#123;</span>input, parameters<span style="color: #000000;">&#125;</span>
	<span style="color: #808080; font-style: italic;">-- set the name of Envelope template to use</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> theTemplate <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;Classic Envelope&quot;</span>
	<span style="color: #808080; font-style: italic;">-- set selection to first item of input list, ignore rest</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> theSelection <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">item</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">of</span> input <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span>
	<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Pages&quot;</span>
		<span style="color: #808080; font-style: italic;">-- launch Pages without &quot;Template Chooser&quot;</span>
		<span style="color: #0066ff;">launch</span>
		<span style="color: #ff0033; font-weight: bold;">try</span>
			<span style="color: #0066ff;">make</span> <span style="color: #0066ff;">new</span> <span style="color: #0066ff;">document</span> <span style="color: #ff0033; font-weight: bold;">with</span> <span style="color: #0066ff;">properties</span> <span style="color: #000000;">&#123;</span>template <span style="color: #0066ff;">name</span>:theTemplate<span style="color: #000000;">&#125;</span>
		<span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #ff0033; font-weight: bold;">error</span>
			<span style="color: #808080; font-style: italic;">-- display msg if the template does not exist</span>
			display alert Â¬
				<span style="color: #009900;">&quot;Template does not exist or
the document could not be created&quot;</span> <span style="color: #0066ff;">buttons</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;Cancel&quot;</span>, <span style="color: #009900;">&quot;OK&quot;</span><span style="color: #000000;">&#125;</span> <span style="color: #ff0033;">as</span> warning
			<span style="color: #808080; font-style: italic;">-- If can't create document, then bail out of the whole shebang!</span>
			<span style="color: #0066ff;">quit</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Pages&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">return</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">front</span> <span style="color: #0066ff;">document</span>
			<span style="color: #808080; font-style: italic;">--delete the default template text and make a new paragraph</span>
			<span style="color: #0066ff;">delete</span> <span style="color: #ff0033;">every</span> <span style="color: #0066ff;">paragraph</span>
			<span style="color: #0066ff;">make</span> <span style="color: #0066ff;">new</span> <span style="color: #0066ff;">paragraph</span> at <span style="color: #ff0033;">beginning</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> body <span style="color: #0066ff;">text</span>
				<span style="color: #808080; font-style: italic;">-- put the selected text into the new paragraph</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">paragraph</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> theSelection
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #808080; font-style: italic;">-- open the print dialog ready to print! Enclose in try block to ignore errors</span>
		<span style="color: #ff0033; font-weight: bold;">try</span>
			<span style="color: #0066ff;">print</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">front</span> <span style="color: #0066ff;">document</span> <span style="color: #ff0033; font-weight: bold;">with</span> <span style="color: #0066ff;">print</span> dialog
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
	<span style="color: #ff0033; font-weight: bold;">return</span> input
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #0066ff;">run</span></pre></td></tr></table></div>




<p><strong>Download All Links on a Web Page</strong><br />
There is a great add-on for <a href="http://mzl.la/dUTkIB">Firefox</a> called <a href="http://bit.ly/emqgQS">DownThemAll</a> that lets you download all the links on a web page without the need to click on each link individually. I have not been able to find anything like it for Safari. I wanted to download several zip archives containing sample code for a tutorial I was working through and was certain this could be done using Automator. In just a few minutes I hacked together a workflow that finds links on the current Safari page, filters them by extension, and displays a list for me to select from, before downloading the links to the Downloads folder. This workflow makes use of several Safari specific actions.</p>

<p><a href="http://mitchcontla.com/blog/wp-content/uploads/2011/02/auto_download-e1298853337900.png"><img src="http://mitchcontla.com/blog/wp-content/uploads/2011/02/auto_download-e1298853337900.png" alt="Automator download all workflow" title="Automator download all workflow" width="599" height="654" class="aligncenter size-full wp-image-276" /></a></p>

<p><strong>Copy or Move Files and Folders to iTunes</strong><br />
One of the easiest ways to add songs to iTunes is by copying audio files or folders containing songs to the aptly named Automatically Add to iTunes folder. While this is relatively easy, why not save a few mouse clicks and drags by adding a service to the contextual menu for Finder items like files and folders. Add one service to copy files or folders, and a second to move them.</p>

<p><a href="http://mitchcontla.com/blog/wp-content/uploads/2011/02/auto_copyitunes-e1298908323917.png"><img src="http://mitchcontla.com/blog/wp-content/uploads/2011/02/auto_copyitunes-e1298908323917.png" alt="Automator copy to iTunes workflow" title="Automator copy to iTunes workflow" width="599" height="474" class="aligncenter size-full wp-image-282" /></a></p>

<p>I have services that copy and move files to my <a href="http://db.tt/SVZWzX3">Dropbox</a> folder, create tar archives from selected files and folders, and even automatically shorten a selected <span class="caps">URL </span>with <a href="http://bit.ly">bit.ly</a>. Automator includes actions for working with text files, creating <span class="caps">PDF </span>documents, and even processing images. There is really no limit to the cool things you can do with Automator.</p>

<p><strong>Resources</strong><br />
There are lots of great places online where you can find workflows. The best place to start is at <a href="http://www.macosxautomation.com/services/download/index.html">Mac OS X Automation</a> where you will not only find sample services, but some great tutorials about Automator and AppleScript.</p>

<p>Using Automator to build workflows is simple and takes little time to learn. Services are an effective way to automate repetitive tasks that save time. Make your computer work for you now by creating a few services of your own.</p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2011/02/28/mac-os-x-automator-and-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Steve Jobs On Digital Rights Management (DRM)</title>
		<link>http://mitchcontla.com/2007/02/06/steve-jobs-on-digital-rights-management-drm/</link>
		<comments>http://mitchcontla.com/2007/02/06/steve-jobs-on-digital-rights-management-drm/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 02:48:37 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Talk]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://mitch.contlafamily.com/2007/02/06/steve-jobs-on-digital-rights-management-drm/</guid>
		<description><![CDATA[Today Steve Jobs takes on the controversial topic of DRM. In a post on Apple&#8217;s website, Steve Jobs provides some background on DRM and the role it plays in Apple&#8217;s ability to offer music in the iTunes Store. He concludes by offering some compelling reasons to scrap DRM. Jobs cites figures regarding the number of [...]]]></description>
			<content:encoded><![CDATA[<p>Today <a href="http://www.apple.com/pr/bios/jobs.html" title="Steve Jobs">Steve Jobs</a> takes on the controversial topic of <acronym title="Digital Rights Management">DRM</acronym>. In a <a href="http://www.apple.com/hotnews/thoughtsonmusic/" title="Thoughts on Music">post on Apple&#8217;s website</a>, Steve Jobs provides some background on <span class="caps">DRM </span>and the role it plays in Apple&#8217;s ability to offer music in the <a href="http://www.apple.com/itunes/store/" title="iTunes Store">iTunes Store</a>. He concludes by offering some compelling reasons to scrap <span class="caps">DRM.</span></p>

<p>Jobs cites figures regarding the number of iPods sold, and the number of songs sold through the iTunes store. Perhaps most interesting is the number of songs sold online, compared to the number of songs sold on <span class="caps">CD.</span> According to Jobs, the figures for 2006 are:</p>


<ul>
<li>&#60; 2 billion songs sold online worldwide (with <span class="caps">DRM</span>)</li>
<li>&#62; 20 billion songs sold completely <span class="caps">DRM</span>-free on unprotected on CDs by the music companies themselves</li>
</ul>



<p>If these figures are valid, <span class="caps">DRM </span>is protecting <em>less than 10%</em> of all the songs sold last year. There is absolutely nothing to stop anyone from ripping 90% of all the music sold last year into completely <span class="caps">DRM</span>-free tracks, and distributing them illegally. It appears that <span class="caps">DRM </span>has simply managed to make it more difficult to use and enjoy a small number of legally purchased songs.</p>

<p>Jobs talks about the practicality and impact of <span class="caps">DRM </span>in it&#8217;s current state, and some of the technical problems that come with developing and maintaining a <span class="caps">DRM </span>system. He outlines three possible alternatives going forward, but ultimately calls on the big music companies to &#8220;abolish&#8221; DRM, saying:</p>

<blockquote><p>Imagine a world where every online store sells <span class="caps">DRM</span>-free music encoded in open licensable formats. In such a world, any player can play music purchased from any store, and any store can sell music which is playable on all players. This is clearly the best alternative for consumers, and Apple would embrace it in a heartbeat.</p></blockquote>

<p>The big question is, why should the recording industry dump <span class="caps">DRM</span>? The simple answer according to Jobs is, because it doesn&#8217;t work. What benefits are gained from <span class="caps">DRM</span>? Jobs says:</p>

<blockquote><p>There appear to be none. If anything, the technical expertise and overhead required to create, operate and update a <span class="caps">DRM </span>system has limited the number of participants selling <span class="caps">DRM </span>protected music. If such requirements were removed, the music industry might experience an influx of new companies willing to invest in innovative new stores and players. This can only be seen as a positive by the music companies.</p></blockquote>

<p>If that&#8217;s the case, why does the recording industry continue to shove <span class="caps">DRM </span>down the throats of online distributors and consumers alike?</p>

<p>One can assume that the music companies look forward to a day when all music will be sold exclusively online. If the recording industry never backs down, and <span class="caps">DRM </span>becomes firmly rooted and accepted by the consumer, they will have greater control over distribution, and personal choice than ever. </p>

<p>I hope that doesn&#8217;t happen. </p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2007/02/06/steve-jobs-on-digital-rights-management-drm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple On Vista&#8217;s New Security Features</title>
		<link>http://mitchcontla.com/2007/02/06/apple-on-vistas-new-security-features/</link>
		<comments>http://mitchcontla.com/2007/02/06/apple-on-vistas-new-security-features/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 19:03:10 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Talk]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mitch.contlafamily.com/2007/02/06/apple-on-vistas-new-security-features/</guid>
		<description><![CDATA[These ads always make me laugh. This one apparantly hasn&#8217;t been released yet, but it&#8217;s making it&#8217;s way around pretty quickly. I have to admit, after using Vista a couple of times recently, this ad really hits home.]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/_n4mdcXa8B0"><br />
<param name="movie" value="http://www.youtube.com/v/_n4mdcXa8B0" /></object><br />
These ads always make me laugh. This one apparantly hasn&#8217;t been released yet, but it&#8217;s making it&#8217;s way around pretty quickly. I have to admit, after using <a href="http://www.microsoft.com/windows/products/windowsvista/default.mspx" title="Windows Vista">Vista</a> a couple of times recently, this ad really hits home.</p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2007/02/06/apple-on-vistas-new-security-features/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ed Bott on Dual-booting Macs</title>
		<link>http://mitchcontla.com/2006/04/05/ed-bott-on-dual-booting-macs/</link>
		<comments>http://mitchcontla.com/2006/04/05/ed-bott-on-dual-booting-macs/#comments</comments>
		<pubDate>Wed, 05 Apr 2006 20:49:06 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Talk]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://mitch.contla.net/2006/04/05/ed-bott-on-dual-booting-macs/</guid>
		<description><![CDATA[Ed Bott weighs in on Apple&#8217;s Boot Camp announcement, and makes the case for virtualization over dual-booting in the process.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.edbott.com/weblog/?p=1290">Ed Bott</a> <a href="http://blogs.zdnet.com/Bott/?p=31">weighs in</a> on  <a href="http://www.apple.com/pr/library/2006/apr/05bootcamp.html">Apple&#8217;s Boot Camp</a> announcement, and makes the case for  virtualization over dual-booting in the process.</p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2006/04/05/ed-bott-on-dual-booting-macs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple Enables Windows XP on Intel-based Mac</title>
		<link>http://mitchcontla.com/2006/04/05/apple-enables-windows-xp-on-intel-based-mac/</link>
		<comments>http://mitchcontla.com/2006/04/05/apple-enables-windows-xp-on-intel-based-mac/#comments</comments>
		<pubDate>Wed, 05 Apr 2006 14:39:46 +0000</pubDate>
		<dc:creator>mitch</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://mitch.contla.net/2006/04/05/apple-enables-windows-xp-on-intel-based-mac/</guid>
		<description><![CDATA[The moment everyone has been waiting for? Apple Introduces Boot Camp. This beta offering is designed to allow Intel-based Macs to run Windows XP, and will become a feature in an upcoming OS&#160;X release. From the PR release: Apple&#174; today introduced Boot Camp, public beta software that enables Intel-based Macs to run Windows XP. Available [...]]]></description>
			<content:encoded><![CDATA[<p>The moment everyone has been waiting for? <a href="http://www.apple.com/pr/library/2006/apr/05bootcamp.html">Apple Introduces Boot Camp</a>. This beta offering is designed to allow Intel-based Macs to run Windows <span class="caps">XP, </span>and will become a feature in an upcoming OS&nbsp;X release. From the PR release:</p>

<blockquote>
Apple&#174; today introduced Boot Camp, public beta software that enables Intel-based Macs to run Windows <span class="caps">XP.</span> Available as a download beginning today, Boot Camp allows users with a Microsoft Windows XP installation disc to install Windows XP on an Intel-based Mac&#174;, and once installation is complete, users can restart their computer to run either Mac OS&#174; X or Windows <span class="caps">XP.</span> Boot Camp will be a feature in “Leopard,” Apple’s next major release of Mac OS X, that will be previewed at Apple’s Worldwide Developer Conference in August.

<p>“Apple has no desire or plan to sell or support Windows, but many customers have expressed their interest to run Windows on Apple’s superior hardware now that we use Intel processors,” said Philip Schiller, Apple’s senior vice president of Worldwide Product Marketing. “We think Boot Camp makes the Mac even more appealing to Windows users considering making the switch.”</p>

Boot Camp simplifies Windows installation on an Intel-based Mac by providing a simple graphical step-by-step assistant application to dynamically create a second partition on the hard drive for Windows, to burn a CD with all the necessary Windows drivers, and to install Windows from a Windows XP installation <span class="caps">CD.</span> After installation is complete, users can choose to run either Mac OS X or Windows when they restart their computer.</blockquote>

<p>Big news? Maybe big enough to get me to switch. Windows XP would still be my <acronym title="Operating System">OS</acronym> of choice, not because I think it is the superior <span class="caps">OS, </span>but simply because I am so &#8220;locked-in&#8221;. It would be nice to leverage all the goodness of OS&nbsp;X for design and development, and of course the Mac would look so much better on my desk. Hmm&#8230;</p>

<p>Via: <a href="http://www.internet-nexus.com/2006/04/apple-introduces-boot-camp.htm">Paul Thurrott</a></p>]]></content:encoded>
			<wfw:commentRss>http://mitchcontla.com/2006/04/05/apple-enables-windows-xp-on-intel-based-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

