<?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; applescript</title>
	<atom:link href="http://www.rngtng.com/tag/applescript/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>
		<item>
		<title>My first AppleScript: Copy Address Book entries</title>
		<link>http://www.rngtng.com/2007/05/10/my-first-applescript-copy-address-book-entries/</link>
		<comments>http://www.rngtng.com/2007/05/10/my-first-applescript-copy-address-book-entries/#comments</comments>
		<pubDate>Thu, 10 May 2007 12:25:39 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[ICQ]]></category>
		<category><![CDATA[jabber]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=56</guid>
		<description><![CDATA[Tatataa! I just wrote my frist AppleScript. For displaying the buddypicture of my Address Book contacts in Adium, I had to copy the ICQ entry to a new Jabber enrty with appending &#8220;@jit.jabber.fsinf.de&#8221;. The code follows: tell application &#34;Address Book&#34; set thePeople to every person whose ICQ handles is not {} and Jabber handles is [...]]]></description>
			<content:encoded><![CDATA[<p>Tatataa! I just wrote my frist AppleScript. For displaying the buddypicture of my Address Book contacts in <a href="http://www.adiumx.com/" target="_blank">Adium</a>, I had to copy the ICQ entry to a new Jabber enrty with appending &#8220;@jit.jabber.fsinf.de&#8221;. The code follows:</p>
<pre class="brush: bash;">
tell application &quot;Address Book&quot;
set thePeople to every person whose ICQ handles is not {} and Jabber handles is {}
repeat with eachPerson in thePeople
set icqnr to value of ICQ handles of eachPerson
set jabberid to (item 1 of icqnr) &amp;amp; &quot;@jit.jabber.fsinf.de&quot;
make new Jabber handle at end of Jabber handles of eachPerson with properties {label:&quot;Home&quot;, value:jabberid}
end repeat
save addressbook
end tell
</pre>
<p>It worked out fine. Now I see you all in my buddylist <img src='http://www.rngtng.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2007/05/10/my-first-applescript-copy-address-book-entries/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
