<?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>Doug&#039;s AppleScripts for iTunes</title>
	<atom:link href="http://dougscripts.com/itunes/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougscripts.com</link>
	<description>AppleScripts for iTunes</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:16:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dougscripts.com' port='80' path='/itunes/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>UPDATED: Search-Replace Tag Text v3.1</title>
		<link>http://dougscripts.com/itunes/2012/02/updated-search-replace-tag-text-v3-1/</link>
		<comments></comments>
		<pubDate>Thu, 02 Feb 2012 13:16:50 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Cocoa-AppleScript]]></category>
		<category><![CDATA[Managing Track Info]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1525</guid>
		<description><![CDATA[Search-Replace Tag Text v3.1 is now posted. This applet allows you to perform search-and-replace text operations on a chosen tag in the selected tracks or tracks in a selected playlist:

This latest version fixes a problem escaping special characters, fixes a problem with operating on the Grouping tag, prevents non-results from displaying in the dry run [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dougscripts.com/itunes/scripts/ss.php?sp=searchreplacetagtext" title="Perform search-and-replace on text in your choice of tags">Search-Replace Tag Text</a> v3.1 is now posted. This applet allows you to perform search-and-replace text operations on a chosen tag in the selected tracks or tracks in a selected playlist:</p>
<p><img src="http://dougscripts.com/itunes/pix/searchreplacetagtext.png"/></p>
<p>This latest version fixes a problem escaping special characters, fixes a problem with operating on the Grouping tag, prevents non-results from displaying in the dry run window, adds close and minimize buttons, and has a few minor code finesses.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>Sync A Wi-Fi iPhone Follow Up</title>
		<link>http://dougscripts.com/itunes/2012/01/sync-a-wi-fi-iphone-follow-up/</link>
		<comments></comments>
		<pubDate>Tue, 31 Jan 2012 17:27:10 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[launchd]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1507</guid>
		<description><![CDATA[Several Correspondents have wired in to report that the Sync a Wi-Fi iPhone Once a Day With launchd tip is great and all but how can more than one Wi-Fi device be sync&#8217;d? Currently the script only targets a single iPhone or iPad. If you want to sync all connected devices you&#8217;ll need a different [...]]]></description>
			<content:encoded><![CDATA[<p>Several Correspondents have wired in to report that the <a href="http://dougscripts.com/itunes/2012/01/sync-a-wi-fi-iphone-once-a-day-with-launchd/">Sync a Wi-Fi iPhone Once a Day With launchd</a> tip is great and all but how can more than one Wi-Fi device be sync&#8217;d? Currently the script only targets a single iPhone or iPad. If you want to sync all connected devices you&#8217;ll need a different script.<span id="more-1507"></span></p>
<p>This script should replace the one named “Sync My Device” that was created in the <a href="http://dougscripts.com/itunes/2012/01/sync-a-wi-fi-iphone-once-a-day-with-launchd/">previous article</a>. If you haven&#8217;t already, create the launchd agent plist from that article.</p>
<p>This will sync every currently connected device (iPod, iPhone, or iPad are each of the kind <strong>iPod</strong> to AppleScript).</p>
<div class="upmproto">
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>if</b> <b>not</b> <span style="color: #269900">checkItunesIsActive</span>() <b>then</b> <b>return</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>tell</b> <span style="color: #4300ff"><i>application</i></span> &#8220;iTunes&#8221;</p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>set</b> <span style="color: #269900">theSources</span> <b>to</b> (<b>every</b> <span style="color: #4300ff"><i>source</i></span> <b>whose</b> <span style="color: #9500e4">kind</span> <b>is</b> <span style="color: #690097">iPod</span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>repeat</b> <b>with</b> <span style="color: #269900">src</span> <b>in</b> <span style="color: #269900">theSources</span></p>
<p style="margin: 0.0px 0.0px 0.0px 166.5px; text-indent: -166.5px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 208.1px; text-indent: -208.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>with</b> <b>timeout</b> <b>of</b> 600 <span style="color: #4300ff"><i>seconds</i></span></p>
<p style="margin: 0.0px 0.0px 0.0px 249.8px; text-indent: -249.8px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>tell</b> <span style="color: #269900">src</span> <b>to</b> <span style="color: #4300ff"><b>update</b></span></p>
<p style="margin: 0.0px 0.0px 0.0px 208.1px; text-indent: -208.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>end</b> <b>timeout</b></p>
<p style="margin: 0.0px 0.0px 0.0px 166.5px; text-indent: -166.5px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>end</b> <b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>end</b> <b>repeat</b></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>end</b> <b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>to</b> </span>checkItunesIsActive<span style="color: #000000">()</span></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>tell</b> <span style="color: #4300ff"><i>application</i></span> <span style="color: #690097">id</span> &#8220;sevs&#8221; <b>to</b> <b>return</b> (<span style="color: #4300ff"><b>exists</b></span> (<b>some</b> <span style="color: #4300ff"><i>process</i></span> <b>whose</b> <span style="color: #9500e4">name</span> <b>is</b> &#8220;iTunes&#8221;))</p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>end</b> </span>checkItunesIsActive</p>
<p><a href="applescript://com.apple.scripteditor?action=new&#038;script=if%20not%20checkItunesIsActive()%20then%20return%0D%0Dtell%20application%20%22iTunes%22%0D%09try%0D%09%09set%20theSources%20to%20(every%20source%20whose%20kind%20is%20iPod)%0D%09%09repeat%20with%20src%20in%20theSources%0D%09%09%09try%0D%09%09%09%09with%20timeout%20of%20600%20seconds%0D%09%09%09%09%09tell%20src%20to%20update%0D%09%09%09%09end%20timeout%0D%09%09%09end%20try%0D%09%09end%20repeat%0D%09end%20try%0Dend%20tell%0D%0Dto%20checkItunesIsActive()%0D%09tell%20application%20id%20%22sevs%22%20to%20return%20(exists%20(some%20process%20whose%20name%20is%20%22iTunes%22))%0Dend%20checkItunesIsActive%0D" title="Click to open in AppleScript Editor. Works via most modern Mac browsers."><img src="http://dougscripts.com/itunes/pix/clickscriptsmall.jpg" alt="" /></a>
</div>
<p>I should say <em>try to sync</em> because if the script runs into any problems it will just quit silently.</p>
<p>If you only want to sync particular devices, you have to include a way to identify them. The best way is with their name. So if &#8220;Doug&#8217;s iPhone&#8221;, &#8220;Doug&#8217;s iPad&#8221;, and &#8220;Doug&#8217;s iPod&#8221; are connected but I only want to sync the iPhone or iPad they can be detected in the script:</p>
<div class="upmproto">
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>if</b> <b>not</b> <span style="color: #269900">checkItunesIsActive</span>() <b>then</b> <b>return</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>tell</b> <span style="color: #4300ff"><i>application</i></span> &#8220;iTunes&#8221;</p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>set</b> <span style="color: #269900">theSources</span> <b>to</b> (<b>every</b> <span style="color: #4300ff"><i>source</i></span> <b>whose</b> <span style="color: #9500e4">kind</span> <b>is</b> <span style="color: #690097">iPod</span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>repeat</b> <b>with</b> <span style="color: #269900">src</span> <b>in</b> <span style="color: #269900">theSources</span></p>
<p style="margin: 0.0px 0.0px 0.0px 166.5px; text-indent: -166.5px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 208.1px; text-indent: -208.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>with</b> <b>timeout</b> <b>of</b> 600 <span style="color: #4300ff"><i>seconds</i></span></p>
<p style="margin: 0.0px 0.0px 0.0px 249.8px; text-indent: -249.8px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>if</b> (<b>get</b> <span style="color: #9500e4">name</span> <b>of</b> <span style="color: #269900">src</span>) <b>is</b> <b>in</b> {&#8221;Doug&#8217;s iPhone&#8221;, &#8220;Doug&#8217;s iPad&#8221;} <b>then</b></p>
<p style="margin: 0.0px 0.0px 0.0px 291.4px; text-indent: -291.4px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>tell</b> <span style="color: #269900">src</span> <b>to</b> <span style="color: #4300ff"><b>update</b></span></p>
<p style="margin: 0.0px 0.0px 0.0px 249.8px; text-indent: -249.8px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>end</b> <b>if</b></p>
<p style="margin: 0.0px 0.0px 0.0px 208.1px; text-indent: -208.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>end</b> <b>timeout</b></p>
<p style="margin: 0.0px 0.0px 0.0px 166.5px; text-indent: -166.5px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>end</b> <b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>end</b> <b>repeat</b></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>end</b> <b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>to</b> </span>checkItunesIsActive<span style="color: #000000">()</span></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>tell</b> <span style="color: #4300ff"><i>application</i></span> <span style="color: #690097">id</span> &#8220;sevs&#8221; <b>to</b> <b>return</b> (<span style="color: #4300ff"><b>exists</b></span> (<b>some</b> <span style="color: #4300ff"><i>process</i></span> <b>whose</b> <span style="color: #9500e4">name</span> <b>is</b> &#8220;iTunes&#8221;))</p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>end</b> </span>checkItunesIsActive</p>
<p><a href="applescript://com.apple.scripteditor?action=new&#038;script=if%20not%20checkItunesIsActive()%20then%20return%0D%0Dtell%20application%20%22iTunes%22%0D%09try%0D%09%09set%20theSources%20to%20(every%20source%20whose%20kind%20is%20iPod)%0D%09%09repeat%20with%20src%20in%20theSources%0D%09%09%09try%0D%09%09%09%09with%20timeout%20of%20600%20seconds%0D%09%09%09%09%09if%20(get%20name%20of%20src)%20is%20in%20%7B%22Doug's%20iPhone%22%2C%20%22Doug's%20iPad%22%7D%20then%0D%09%09%09%09%09%09tell%20src%20to%20update%0D%09%09%09%09%09end%20if%0D%09%09%09%09end%20timeout%0D%09%09%09end%20try%0D%09%09end%20repeat%0D%09end%20try%0Dend%20tell%0D%0Dto%20checkItunesIsActive()%0D%09tell%20application%20id%20%22sevs%22%20to%20return%20(exists%20(some%20process%20whose%20name%20is%20%22iTunes%22))%0Dend%20checkItunesIsActive%0D" title="Click to open in AppleScript Editor. Works via most modern Mac browsers."><img src="http://dougscripts.com/itunes/pix/clickscriptsmall.jpg" alt="" /></a>
</div>
<p>The bracketed <strong>list</strong> contains the names of the devices I want to sync. Edit the script to include the names of your devices as they appear in the iTunes Source list. You can enter one or more names in double-quotes, but each must be separated by a comma. Spelling counts. (And be careful to detect if your device&#8217;s name contains an apostrophe or a single-quote as a possessive character. Don&#8217;t confuse them because they are different to AppleScript.)</p>
<p>Follow the instructions for naming and saving the “Sync My Device” script from the <a href="http://dougscripts.com/itunes/2012/01/sync-a-wi-fi-iphone-once-a-day-with-launchd/">previous article</a>.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>UPDATED: New Last Played Date v3.0</title>
		<link>http://dougscripts.com/itunes/2012/01/updated-new-last-played-date-v3-0/</link>
		<comments></comments>
		<pubDate>Mon, 30 Jan 2012 17:54:13 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Cocoa-AppleScript]]></category>
		<category><![CDATA[Managing Track Info]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1503</guid>
		<description><![CDATA[Getting date input with plain AppleScript has always been a hassle. But Cocoa-AppleScript has access to Cocoa date pickers. Hoo. Ray. New Last Played Date v3.0 is a Cocoa-AppleScript Applet for iTunes on OS X 10.6 and better that uses a text and calendar date picker to easily enter a new date for either the [...]]]></description>
			<content:encoded><![CDATA[<p>Getting date input with plain AppleScript has always been a hassle. But <a href="http://www.macosxautomation.com/lion/applescript.html">Cocoa-AppleScript</a> has access to Cocoa date pickers. Hoo. Ray. <a href="http://dougscripts.com/itunes/scripts/ss.php?sp=newlastplayed" title="Set new Last Played/Last Skipped of selected tracks">New Last Played Date</a> v3.0 is a Cocoa-AppleScript Applet for iTunes on OS X 10.6 and better that uses a text and calendar date picker to easily enter a new date for either the Last Played or Last Skipped tags of the selected tracks:</p>
<p><img src="http://dougscripts.com/itunes/pix/newlastplayed.png" /></p>
<p>Additionally, the corresponding counts can be increased or decreased. Or the dates and counts can be set to &#8220;never&#8221;.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>Sync a Wi-Fi iPhone Once a Day With launchd</title>
		<link>http://dougscripts.com/itunes/2012/01/sync-a-wi-fi-iphone-once-a-day-with-launchd/</link>
		<comments></comments>
		<pubDate>Thu, 26 Jan 2012 14:22:47 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Podcasts]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[launchd]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1489</guid>
		<description><![CDATA[A while back, I retired my iPhone 3GS to the bedside table after buying an iPhone 4. I use the 3GS pretty much as a glorified clock radio-iPod Touch. I have a few radio apps on it and the Digital Clock app. I also have it set to sync and back up over Wi-Fi to [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, I retired my iPhone 3GS to the bedside table after buying an iPhone 4. I use the 3GS pretty much as a glorified clock radio-iPod Touch. I have a few radio apps on it and the <a href="http://itunes.apple.com/us/app/digital-clock/id287522924?mt=8">Digital Clock</a> app. I also have it set to sync and back up over Wi-Fi to my main iMac so I manually initiate a sync when I need to update Podcasts and apps and what have you.</p>
<p>This manual syncing has become tiresome. (I mean, if I used a traditional <a href="http://www.geekalerts.com/batman-alarm-clock-radio-with-bat-signal/">clock radio</a>, I wouldn&#8217;t have to update its content manually, right?)</p>
<p>It&#8217;s simple enough to write an AppleScript to sync a connected iPhone but I want the script to run on a regular basis without me having to fire it. I like to listen to Podcasts in the evening so sometime during dinner would be a good time to update the 3GS with any Podcasts that have arrived during the day. For this, I can create a <strong>launchd</strong> <strong>agent</strong> to fire the AppleScript that syncs the 3GS in the background. Here&#8217;s how to get all that to swing:<span id="more-1489"></span></p>
<p>First, the script.</p>
<p>Because my iPhone 3GS is set to sync via Wi-Fi, it&#8217;s always mounted in the iTunes Source list on the iMac (when iTunes is active of course). A script will need to make sure iTunes is running, target the specific iPhone (or iPad for that matter), and update it:</p>
<div class="upmproto">
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>if</b> <b>not</b> <span style="color: #269900">checkItunesIsActive</span>() <b>then</b> <b>return</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>tell</b> <span style="color: #4300ff"><i>application</i></span> &#8220;iTunes&#8221;</p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>set</b> <span style="color: #269900">src</span> <b>to</b> (<b>some</b> <span style="color: #4300ff"><i>source</i></span> <b>whose</b> <span style="color: #9500e4">name</span> <b>contains</b> &#8220;3GS&#8221;)</p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>tell</b> <span style="color: #269900">src</span> <b>to</b> <span style="color: #4300ff"><b>update</b></span></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>end</b> <b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>to</b> </span>checkItunesIsActive<span style="color: #000000">()</span></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>tell</b> <span style="color: #4300ff"><i>application</i></span> <span style="color: #690097">id</span> &#8220;sevs&#8221; <b>to</b> <b>return</b> (<span style="color: #4300ff"><b>exists</b></span> (<b>some</b> <span style="color: #4300ff"><i>process</i></span> <b>whose</b> <span style="color: #9500e4">name</span> <b>is</b> &#8220;iTunes&#8221;))</p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>end</b> </span>checkItunesIsActive</p>
<p><a href="applescript://com.apple.scripteditor?action=new&#038;script=if%20not%20checkItunesIsActive()%20then%20return%0D%0Dtell%20application%20%22iTunes%22%0D%09try%0D%09%09set%20src%20to%20(some%20source%20whose%20name%20contains%20%223GS%22)%0D%09%09tell%20src%20to%20update%0D%09end%20try%0Dend%20tell%0D%0Dto%20checkItunesIsActive()%0D%09tell%20application%20id%20%22sevs%22%20to%20return%20(exists%20(some%20process%20whose%20name%20is%20%22iTunes%22))%0Dend%20checkItunesIsActive%0D" title="Click to open in AppleScript Editor. Works via most modern Mac browsers."><img src="http://dougscripts.com/itunes/pix/clickscriptsmall.jpg" alt="" /></a>
</div>
<p>(You can copy and paste the above script to your AppleScript Editor, or click the little script icon button to open it in AppleScript Editor.)</p>
<p>The call to the <strong>checkItunesIsActive</strong>() handler can be left out if you want iTunes to launch if it isn&#8217;t running when the script fires. But if iTunes has a lot of startup stuff to do the script may never get to do its thing.</p>
<p>The script gets a reference to the iPhone to target by using a distinctive part of its <strong>name</strong>. In this case, the iPhone I&#8217;m targeting is named &#8220;Doug&#8217;s iPhone3GS&#8221; so I&#8217;m using the &#8220;3GS&#8221; as a distinguishing mark. You will have to change this for your device. Make sure to use a piece of the name that isn&#8217;t in any other device&#8217;s name.</p>
<p>The <strong>update</strong> command will initiate a sync. The whole schmear is in a <strong>try</strong> block so that if something can&#8217;t be done (because, for example, the device isn&#8217;t connected) the script will fail gracefully.</p>
<p>Save the script using the File Format &#8220;Script&#8221; named &#8220;Sync My Device&#8221; in your <em>[username]/Library/iTunes/Scripts/</em> folder. (Remember to make the &#8220;Library&#8221; folder visible by Option-clicking the Finder&#8217;s &#8220;Go&#8221; menu and selecting &#8220;Library&#8221; from the drop down menu.)</p>
<p>Now for the <strong>launchd</strong> <strong>agent</strong>.</p>
<p>I&#8217;ve discussed <strong>launchd</strong> before in a <a href="http://dougscripts.com/itunes/2011/12/updated-update-expired-podcasts-v2-2-and-launchd-project">previous project</a> that updated expired podcasts. I&#8217;ll be borrowing a little from that project here. Essentially, I&#8217;ll be creating a <strong>launchd</strong> <strong>agent</strong> that runs a <strong>job</strong> that fires the script in the background.</p>
<p>1) Launch your favorite text editor. TextEdit will do if you don&#8217;t have BBEdit, TextWrangler or something comparable. Copy the following into a new document (after some slight modifications this will be saved as the <strong>launchd</strong> <strong>agent</strong>):</p>
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
	&lt;key&gt;Disabled&lt;/key&gt;
	&lt;false/&gt;
	&lt;key&gt;Label&lt;/key&gt;
	&lt;string&gt;com.YOURUSERNAME.SyncMyDeviceAgent&lt;/string&gt;
	&lt;key&gt;Program&lt;/key&gt;
	&lt;string&gt;/usr/bin/osascript&lt;/string&gt;
	&lt;key&gt;ProgramArguments&lt;/key&gt;
	&lt;array&gt;
		&lt;string&gt;osascript&lt;/string&gt;
		&lt;string&gt;/Users/YOURUSERNAME/Library/iTunes/Scripts/Sync My Device.scpt&lt;/string&gt;
	&lt;/array&gt;
	&lt;key>StartCalendarInterval&lt;/key>
	&lt;dict&gt;
		&lt;key&gt;Hour&lt;/key&gt;
		&lt;integer&gt;18&lt;/integer&gt;
		&lt;key&gt;Minute&lt;/key&gt;
		&lt;integer&gt;0&lt;/integer&gt;
	&lt;/dict&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</pre>
<p>If using TextEdit, click the &#8220;Format&#8221; menu and make sure that the document is plain text and not rich text.</p>
<p>2) Change the two occurences of &#8220;YOURUSERNAME&#8221; to your user name. This is the same as the name of your Home folder.</p>
<p>3) I&#8217;ve set the time for the <strong>job</strong> to run as 6:00PM by virtue of entering an Hour of 18 and a Minute of 0. You can of course set your own time the same way.</p>
<p>4) Save the document as &#8220;com.YOURUSERNAME.SyncMyDeviceAgent.plist&#8221; (change that YOURUSERNAME again) in your <em>[startupdisk]/Library/LaunchAgents/</em> folder. <strong>Note:</strong> this is the root-level public <em>Library</em> folder on the startup drive and <em>not</em> the <em>user</em> <em>Library</em> folder in your Home folder or the <em>/System/Library/</em> folder! If there is no <em>LaunchAgents</em> folder there then create one and save the file in it. You will probably need to authenticate in order to save the file to this location.</p>
<p>5) Restart your computer, or logout and then login again so that your system registers the <strong>agent</strong>.</p>
<p>Yer done. If you&#8217;ve followed these instructions correctly, your device will update everyday at the same time without you having to do a thing. You may want to set up your Podcasts to update regularly, too, using the tools in <a href="http://dougscripts.com/itunes/2011/12/updated-update-expired-podcasts-v2-2-and-launchd-project">this project</a>.</p>
<p><em>(In an earlier version of this article I referred to my iPhone 3GS as a 3G, inadvertently dropping the &#8220;S&#8221;. The iPhone 3G cannot run iOS 5 and cannot connect wirelessly. Sorry for any confusion.)</em></p>
<p>An <a href="http://dougscripts.com/itunes/2012/01/sync-a-wi-fi-iphone-follow-up">update to this article</a> describes how to sync more than one connected device.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>Thousands of Empty Playlists? Redux</title>
		<link>http://dougscripts.com/itunes/2012/01/thousands-of-empty-playlists-redux/</link>
		<comments></comments>
		<pubDate>Wed, 25 Jan 2012 17:29:25 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Managing Playlists]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1487</guid>
		<description><![CDATA[So there&#8217;s this glitch with iTunes Match that somehow creates thousands of empty playlists. I posted earlier about this and snippeted a simple script to scratch the empties from your iTunes. Too simple since it appears to get really bogged down trying to examine playlists while iTunes is deleting them. Correspondent Lowell Stewart suggested deleting [...]]]></description>
			<content:encoded><![CDATA[<p>So there&#8217;s this glitch with iTunes Match that somehow creates thousands of empty playlists. I <a href="http://dougscripts.com/itunes/2011/12/thousands-of-empty-playlists/">posted earlier about this</a> and snippeted a simple script to scratch the empties from your iTunes. Too simple since it appears to get really bogged down trying to examine playlists while iTunes is deleting them. Correspondent Lowell Stewart suggested deleting in batches to give the processing some breathing room, and I&#8217;ve incorporated this in an update to <a href="http://dougscripts.com/itunes/scripts/ss.php?sp=deleteemptyplaylists" title="Delete empty playlists">Delete Empty Playlists</a>. It&#8217;s definetly speedier using Lowell&#8217;s suggestion.</p>
<p>If you&#8217;ve been affected by an <a href="https://discussions.apple.com/thread/3505359?start=0&#038;tstart=0">iTunes Match Empty Playlist Glitch</a> then use <a href="http://dougscripts.com/itunes/scripts/ss.php?sp=deleteemptyplaylists" title="Delete empty playlists">Delete Empty Playlists</a> v2.0.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>UPDATED: Play Random Album v3.0</title>
		<link>http://dougscripts.com/itunes/2012/01/updated-play-random-album-v3-0/</link>
		<comments></comments>
		<pubDate>Fri, 20 Jan 2012 14:40:33 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Controlling iTunes]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1485</guid>
		<description><![CDATA[A Particular Correspondent noticed that the previous version of Play Random Album was biased towards larger albums when selecting one at random. The problem was that it grabbed a random track first and built the album out using the album of that track. Well, of course. Albums with more tracks had a better chance of [...]]]></description>
			<content:encoded><![CDATA[<p>A Particular Correspondent noticed that the previous version of <a href="http://dougscripts.com/itunes/scripts/ss.php?sp=randomalbumplayer" title="Creates and plays playlist using tracks from album chosen at random">Play Random Album</a> was biased towards larger albums when selecting one at random. The problem was that it grabbed a random track first and built the album out using the <strong>album</strong> of that track. Well, of course. Albums with more tracks had a better chance of being selected by virtue of having more tracks in the pool, as it were.</p>
<p>The latest version of <a href="http://dougscripts.com/itunes/scripts/ss.php?sp=randomalbumplayer" title="Creates and plays playlist using tracks from album chosen at random">Play Random Album</a> actually chooses a random album name first which gives every album a fair chance. I&#8217;ve also speeded it up a little and tweaked some error checking. Attach it to a <a href="http://dougscripts.com/itunes/itinfo/shortcutkeys.php">keyboard shortcut</a> and it almost feels native.</p>
<p>I just bought a set of Bose 201 speakers and I&#8217;ve been burning &#8216;em in (ahem, letting them experience a variety of frequencies) by playing random albums using this script. Works great.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>iTunes 10.5.3 Available</title>
		<link>http://dougscripts.com/itunes/2012/01/itunes-10-5-3-available/</link>
		<comments></comments>
		<pubDate>Thu, 19 Jan 2012 16:59:02 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[iTunes 10]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1483</guid>
		<description><![CDATA[Apple has released iTunes 10.5.3, which features support for the new iBooks textbook format.
]]></description>
			<content:encoded><![CDATA[<p>Apple has released iTunes 10.5.3, which features support for the new iBooks textbook format.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>NEW: Search IMDB</title>
		<link>http://dougscripts.com/itunes/2012/01/new-search-imdb/</link>
		<comments></comments>
		<pubDate>Mon, 09 Jan 2012 15:19:34 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1480</guid>
		<description><![CDATA[Search IMDB allows you to choose a search term from the pertinent tags of a selected iTunes track and then choose the type of search to make at the IMDB website.

Results are displayed in your designated default browser using a Finder routine. Most web browsers are not &#8217;scriptable which somewhat limits what you can do [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dougscripts.com/itunes/scripts/ss.php?sp=searchimdb" title="Use info from a selected track to search IMDB">Search IMDB</a> allows you to choose a search term from the pertinent tags of a selected iTunes track and then choose the type of search to make at the IMDB website.</p>
<p><img src="http://dougscripts.com/itunes/pix/searchimdb.png" alt="" title = "" /></p>
<p>Results are displayed in your designated default browser using a <strong>Finder</strong> routine. Most web browsers are not &#8217;scriptable which somewhat limits what you can do with them with AppleScript.</p>
<p>And, what the heck. Here&#8217;s a Rotten Tomatoes script I use on my &#8220;entertainment center&#8221; Mac Mini that uses the name of the selected track for a search:</p>
<div class="upmproto">
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>tell</b> <span style="color: #4300ff"><i>application</i></span> &#8220;iTunes&#8221;</p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>set</b> <span style="color: #269900">sel</span> <b>to</b> <span style="color: #9500e4">selection</span></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>if</b> <span style="color: #269900">sel</span> <b>is</b> <b>not</b> {} <b>and</b> (<span style="color: #9500e4">length</span> <b>of</b> <span style="color: #269900">sel</span>) <b>is</b> 1 <b>then</b></p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>my</b> <span style="color: #269900">processSearch</span>(<b>get</b> <span style="color: #9500e4">name</span> <b>of</b> <span style="color: #4300ff"><i>item</i></span> 1 <b>of</b> <span style="color: #269900">sel</span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>end</b> <b>if</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>to</b> </span>processSearch<span style="color: #000000">(</span>n<span style="color: #000000">)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 124.8px; text-indent: -124.9px; font: 12.0px Verdana"><span style="white-space:pre">	</span><span style="white-space:pre">	</span><b>tell</b> <span style="color: #4300ff"><i>application</i></span> &#8220;Finder&#8221; <b>to</b> <span style="color: #2c00c5"><b>open location</b></span> (&#8221;http://www.rottentomatoes.com/search/?sitesearch=rt&amp;search=&#8221; &amp; <span style="color: #269900">n</span>) <b>as</b> <span style="color: #4300ff"><i>text</i></span></p>
<p style="margin: 0.0px 0.0px 0.0px 83.2px; text-indent: -83.2px; font: 12.0px Verdana"><span style="white-space:pre">	</span><b>end</b> <b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #269900"><span style="color: #000000"><b>end</b> </span>processSearch</p>
<p><a href="applescript://com.apple.scripteditor?action=new&#038;script=tell%20application%20%22iTunes%22%0D%09set%20sel%20to%20selection%0D%09if%20sel%20is%20not%20%7B%7D%20and%20(length%20of%20sel)%20is%201%20then%0D%09%09my%20processSearch(get%20name%20of%20item%201%20of%20sel)%0D%09end%20if%0Dend%20tell%0D%0Dto%20processSearch(n)%0D%09try%0D%09%09tell%20application%20%22Finder%22%20to%20open%20location%20(%22http%3A%2F%2Fwww.rottentomatoes.com%2Fsearch%2F%3Fsitesearch%3Drt%26search%3D%22%20%26%20n)%20as%20text%0D%09end%20try%0Dend%20processSearch" title="Click to open in AppleScript Editor. Works via most modern Mac browsers."><img src="http://dougscripts.com/itunes/pix/clickscriptsmall.jpg" alt="" /></a>
</div>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>UPDATED: This Tag That Tag v3.0</title>
		<link>http://dougscripts.com/itunes/2012/01/updated-this-tag-that-tag-v3-0/</link>
		<comments></comments>
		<pubDate>Sun, 08 Jan 2012 16:03:38 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Cocoa-AppleScript]]></category>
		<category><![CDATA[Managing Track Info]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1476</guid>
		<description><![CDATA[This Tag That Tag v3.0 is now a consolidated applet that previously had been a collection of four separate scripts. It will assist with copying text between tags for each selected track or track in a selected playlist.

It will float open over iTunes while being used and detect whenever the iTunes selection has changed, as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dougscripts.com/itunes/scripts/ss.php?sp=thistagthattag" title="Applet assists with swapping, copying, appending data between track tags">This Tag That Tag</a> v3.0 is now a consolidated applet that previously had been a collection of four separate scripts. It will assist with copying text between tags for each selected track or track in a selected playlist.</p>
<p><img src="http://dougscripts.com/itunes/pix/thistagthattag.png"/></p>
<p>It will float open over iTunes while being used and detect whenever the iTunes selection has changed, as displayed by <strong>Target:</strong>. Also now provides a progress indicator.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
		<item>
		<title>NEW: Delete All Lyrics</title>
		<link>http://dougscripts.com/itunes/2011/12/new-delete-all-lyrics/</link>
		<comments></comments>
		<pubDate>Mon, 26 Dec 2011 18:07:34 +0000</pubDate>
		<dc:creator>dougscripts</dc:creator>
				<category><![CDATA[Managing Track Info]]></category>
		<category><![CDATA[lyrics]]></category>

		<guid isPermaLink="false">http://dougscripts.com/itunes/?p=1465</guid>
		<description><![CDATA[It&#8217;s often interesting to look through the search queries this site gets to see what people are looking for. Over the past few months the phrase &#8220;delete all lyrics&#8221; has been showing up pretty frequently. Don&#8217;t know why it is&#8212;seems like it wasn&#8217;t so long ago the phrase &#8220;find song lyrics&#8221; was more prominent. Fads! [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s often interesting to look through the search queries this site gets to see what people are looking for. Over the past few months the phrase &#8220;delete all lyrics&#8221; has been showing up pretty frequently. Don&#8217;t know why it is&#8212;seems like it wasn&#8217;t so long ago the phrase &#8220;find song lyrics&#8221; was more prominent. Fads! Who can predict &#8216;em?</p>
<p>I already have a script that will delete the lyrics of a <em>selection</em> of tracks. But this would be rather slow if you used it against every track in the library. So I&#8217;ve posted <a href="http://dougscripts.com/itunes/scripts/ss.php?sp=deletealllyrics" title="Deletes the lyrics of every track of the Music playlist">Delete All Lyrics</a>. This is a Cocoa-AppleScript applet (for OS 10.6 and 10.7 only) that will fairly quickly go through <strong>all</strong> the tracks in the &#8220;Music&#8221; playlist and delete the lyrics. So whether you&#8217;re tired of trying to sing-along or just need to clear out some bytes, it should do the trick.</p>
<hr/><small><a href="http://dougscripts.com/itunes/dougsupdated.rss" title="Take me to your reader">30 Most Recent RSS Feed</a> | <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Script Stats Page</a> by <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y">Name</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Most Recent&op=y">Most Recent</a>, <a href="http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Download Count&op=y">Download Count</a></small>]]></content:encoded>
			</item>
	</channel>
</rss>

