<?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>uRaNGaTaNG &#187; sync</title>
	<atom:link href="http://www.rngtng.com/tag/sync/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rngtng.com</link>
	<description>TobiTobes Tech Weblog featuring Ruby, Rails, Web development, Arduino, Processing, Geekstuff and more...</description>
	<lastBuildDate>Thu, 01 Jul 2010 11:36:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to sync my mp3 Songs rating in iTunes across multiple Libraries</title>
		<link>http://www.rngtng.com/2009/11/24/how-to-sync-my-mp3-songs-rating-in-itunes-across-multiple-libraries/</link>
		<comments>http://www.rngtng.com/2009/11/24/how-to-sync-my-mp3-songs-rating-in-itunes-across-multiple-libraries/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:21:26 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=338</guid>
		<description><![CDATA[By now, I havn&#8217;t find any good solution to share my mp3 across multiple systems and disks. I&#8217;ve some on my local machine, some at work and some on my external harddisk to archive. Luckily, when copying my tracks to another library duplicates are ignored. But what annoys me most is that my ratings don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>By now, I havn&#8217;t find any good solution to share my mp3 across multiple systems and disks. I&#8217;ve some on my local machine, some at work and some on my external harddisk to archive. Luckily, when copying my tracks to another library duplicates are ignored. But what annoys me most is that my ratings don&#8217;t get copied, as iTunes doesn&#8217;t store it within the file. Some while ago I found a solution by storing the number of stars into the &#8216;Grouping&#8217; Field, so I can recover the rating afterwards. Now, I came up with this little applescript do automate the write and recover process. Just run this script, copy you mp3 to the other library, run the script again, and voilá, you ratings are back &#8211; nice!</p>
<pre class="brush: bash;">
(*  small apple script to save rating into grouping field and
   vice versa. Perfect to persitent store your rating witin the file
*)

tell application &quot;iTunes&quot;
	repeat with stars from 1 to 5
		set rating_value to stars * 20
		set group_name to &quot;&quot; &amp; stars &amp; &quot; Stars&quot;

		set sel to (every track whose rating is rating_value and grouping is &quot;&quot;)
		repeat with aTrack in sel
			tell aTrack
				set grouping to group_name
			end tell
		end repeat

		set sel to (every track whose rating is 0 and grouping is group_name)
		repeat with aTrack in sel
			tell aTrack
				set rating to rating_value
			end tell
		end repeat
	end repeat
end tell
</pre>
<p>Btw. for each Star rating I do have a smart playlist which allows me to find those quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/24/how-to-sync-my-mp3-songs-rating-in-itunes-across-multiple-libraries/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
