<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Mending the Relationship Between iTunes and M3U</title>
	<atom:link href="http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/</link>
	<description></description>
	<lastBuildDate>Sat, 21 Aug 2010 21:38:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Hugh</title>
		<link>http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/comment-page-1/#comment-10434</link>
		<dc:creator>Hugh</dc:creator>
		<pubDate>Thu, 28 Feb 2008 13:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/#comment-10434</guid>
		<description>I hit the same issue with my existing m2u-to-itunes applescript... and boy did it take some diagnosis...
Looks like the latest iTunes update has fixed it anyway, but the root cause seems to have been an &quot;extended file attribute&quot; - 

I found a commandline util called xattr which let me read/change/delete them and found that the m3u file (downloaded) had an attrib named com.apple.FinderInfo which it seems that release of itunes would refuse to allow as a valid file for import.
Calling xattr to delete the attrib before the import fixed it.  It&#039;s now no longer required.

Interesting/frustrating/random or what!?

H
Here&#039;s my whole m3u-to-iTunes script anyway:

on open m3uFileList
	tell application &quot;iTunes&quot;
		activate
		if minimized of browser window 1 then
			--display dialog &quot;iTunes was mini&quot;
			set minimized of browser window 1 to false
		end if
		set newPlaylist to make new user playlist
		set name of newPlaylist to do shell script &quot;date +%Y-%m-%d\\ %H:%M:%S&quot;
		repeat with m3uFile in m3uFileList
			--display dialog &quot;trying to load &quot; &amp; m3uFile &amp; &quot; from list: &quot; &amp; m3uFileList
			set f to POSIX path of m3uFile
			--display dialog &quot;Running xattr on &quot; &amp; f
			--do shell script &quot;/usr/local/bin/xattr -d com.apple.FinderInfo &quot; &amp; quoted form of f
			add m3uFile to newPlaylist
			tell application &quot;Finder&quot;
				delete file m3uFile
			end tell
		end repeat
		set the view of browser window 1 to newPlaylist
		play newPlaylist
		set minimized of browser window 1 to true
	end tell
end open
</description>
		<content:encoded><![CDATA[<p>I hit the same issue with my existing m2u-to-itunes applescript&#8230; and boy did it take some diagnosis&#8230;<br />
Looks like the latest iTunes update has fixed it anyway, but the root cause seems to have been an &#8220;extended file attribute&#8221; &#8211; </p>
<p>I found a commandline util called xattr which let me read/change/delete them and found that the m3u file (downloaded) had an attrib named com.apple.FinderInfo which it seems that release of itunes would refuse to allow as a valid file for import.<br />
Calling xattr to delete the attrib before the import fixed it.  It&#8217;s now no longer required.</p>
<p>Interesting/frustrating/random or what!?</p>
<p>H<br />
Here&#8217;s my whole m3u-to-iTunes script anyway:</p>
<p>on open m3uFileList<br />
	tell application &#8220;iTunes&#8221;<br />
		activate<br />
		if minimized of browser window 1 then<br />
			&#8211;display dialog &#8220;iTunes was mini&#8221;<br />
			set minimized of browser window 1 to false<br />
		end if<br />
		set newPlaylist to make new user playlist<br />
		set name of newPlaylist to do shell script &#8220;date +%Y-%m-%d\\ %H:%M:%S&#8221;<br />
		repeat with m3uFile in m3uFileList<br />
			&#8211;display dialog &#8220;trying to load &#8221; &amp; m3uFile &amp; &#8221; from list: &#8221; &amp; m3uFileList<br />
			set f to POSIX path of m3uFile<br />
			&#8211;display dialog &#8220;Running xattr on &#8221; &amp; f<br />
			&#8211;do shell script &#8220;/usr/local/bin/xattr -d com.apple.FinderInfo &#8221; &amp; quoted form of f<br />
			add m3uFile to newPlaylist<br />
			tell application &#8220;Finder&#8221;<br />
				delete file m3uFile<br />
			end tell<br />
		end repeat<br />
		set the view of browser window 1 to newPlaylist<br />
		play newPlaylist<br />
		set minimized of browser window 1 to true<br />
	end tell<br />
end open</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Forsythe</title>
		<link>http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/comment-page-1/#comment-8409</link>
		<dc:creator>John Forsythe</dc:creator>
		<pubDate>Sun, 27 Jan 2008 02:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/#comment-8409</guid>
		<description>Actually, this one works better.

http://www.jforsythe.com/jforsytheblog/2008/01/24/ApplescriptITunes76AndFirefox20011M3uFileUnfcker.aspx</description>
		<content:encoded><![CDATA[<p>Actually, this one works better.</p>
<p><a href="http://www.jforsythe.com/jforsytheblog/2008/01/24/ApplescriptITunes76AndFirefox20011M3uFileUnfcker.aspx" rel="nofollow">http://www.jforsythe.com/jforsytheblog/2008/01/24/ApplescriptITunes76AndFirefox20011M3uFileUnfcker.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonathan</title>
		<link>http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/comment-page-1/#comment-8206</link>
		<dc:creator>jonathan</dc:creator>
		<pubDate>Wed, 23 Jan 2008 16:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/#comment-8206</guid>
		<description>Now I remember why it took me so long to adopt iTunes.</description>
		<content:encoded><![CDATA[<p>Now I remember why it took me so long to adopt iTunes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Forsythe</title>
		<link>http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/comment-page-1/#comment-8186</link>
		<dc:creator>John Forsythe</dc:creator>
		<pubDate>Wed, 23 Jan 2008 07:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/#comment-8186</guid>
		<description>yes. yes it does :)</description>
		<content:encoded><![CDATA[<p>yes. yes it does :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: onotob</title>
		<link>http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/comment-page-1/#comment-8154</link>
		<dc:creator>onotob</dc:creator>
		<pubDate>Tue, 22 Jan 2008 19:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/#comment-8154</guid>
		<description>I&#039;m sure that works perfectly if your iTunes isn&#039;t broken.  :(</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure that works perfectly if your iTunes isn&#8217;t broken.  :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Forsythe</title>
		<link>http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/comment-page-1/#comment-8149</link>
		<dc:creator>John Forsythe</dc:creator>
		<pubDate>Tue, 22 Jan 2008 18:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.onotob.org/2008/01/21/mending-the-relationship-between-itunes-and-m3u/#comment-8149</guid>
		<description>http://www.jforsythe.com/jforsytheblog/2008/01/22/ApplescriptM3uParser.aspx</description>
		<content:encoded><![CDATA[<p><a href="http://www.jforsythe.com/jforsytheblog/2008/01/22/ApplescriptM3uParser.aspx" rel="nofollow">http://www.jforsythe.com/jforsytheblog/2008/01/22/ApplescriptM3uParser.aspx</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
