<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: iTunes (windows) and the Command line...</title>
	<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line/</link>
	<description>Comments on Ask MetaFilter post iTunes (windows) and the Command line...</description>
	<pubDate>Wed, 27 Jul 2005 14:33:20 -0800</pubDate>
	<lastBuildDate>Wed, 27 Jul 2005 14:33:20 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: iTunes (windows) and the Command line...</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line</link>	
		<description>Does anyone know if there a way to add a file to add an MP3 to my iTunes library, on Windows, using the command line? &lt;br /&gt;&lt;br /&gt; I&apos;m trying to automate a process, whereby&lt;br&gt;
1 - Each day, a WAV file ends up in a folder on my computer.&lt;br&gt;
2 - I set a batch file to encode this, using LAME.&lt;br&gt;
3 - This gets added to my iTunes library automatically, and then it gets automatically placed on my iPod next time I sync.&lt;br&gt;
&lt;br&gt;
I&apos;ve tried putting this in the file&lt;br&gt;
&lt;br&gt;
START c:\progra~1\iTunes\iTunes.exe &quot;W:\Radio\BBC Radio 1\Zane Lowe\Zane Lowe.mp3&quot;&lt;br&gt;
&lt;br&gt;
That will add the file to the library, but also starts playing it. I don&apos;t want that to happen, because I might not be at my PC, or I might be playing something else.&lt;br&gt;
&lt;br&gt;
Thanks in advance.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.21800</guid>
		<pubDate>Wed, 27 Jul 2005 14:16:16 -0800</pubDate>
		<dc:creator>ascullion</dc:creator>
		
			<category>iTunes</category>
		
			<category>windows</category>
		
			<category>dos</category>
		
			<category>iPod</category>
		
	</item> <item>
		<title>By: Rothko</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351190</link>	
		<description>Automatic play-on-encoding is set on or off via iTunes&apos; preferences window.&lt;br&gt;
&lt;br&gt;
Preferences -&amp;gt; Importing -&amp;gt; &quot;Play songs while importing&quot;&lt;br&gt;
&lt;br&gt;
Can iPods play LAME-encoded MP3s?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351190</guid>
		<pubDate>Wed, 27 Jul 2005 14:33:20 -0800</pubDate>
		<dc:creator>Rothko</dc:creator>
	</item><item>
		<title>By: neckro23</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351194</link>	
		<description>It looks like &lt;a href=&quot;http://n.ethz.ch/~altery/&quot;&gt;this app may help&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351194</guid>
		<pubDate>Wed, 27 Jul 2005 14:37:02 -0800</pubDate>
		<dc:creator>neckro23</dc:creator>
	</item><item>
		<title>By: ascullion</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351196</link>	
		<description>Thanks Rothko, but that only applies to file coming from a CD, not to files being added from the file system.&lt;br&gt;
&lt;br&gt;
Yes, iPods can play any MP3 file.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351196</guid>
		<pubDate>Wed, 27 Jul 2005 14:37:25 -0800</pubDate>
		<dc:creator>ascullion</dc:creator>
	</item><item>
		<title>By: Rothko</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351200</link>	
		<description>&lt;i&gt;Yes, iPods can play any MP3 file.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Thanks, I was aware that iPods could play Fraunhofer MP3s but didn&apos;t know Apple had added LAME MP3 support. Very cool.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351200</guid>
		<pubDate>Wed, 27 Jul 2005 14:40:48 -0800</pubDate>
		<dc:creator>Rothko</dc:creator>
	</item><item>
		<title>By: ascullion</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351204</link>	
		<description>Some people say that LAME VBR files will skip on an iPod, but I&apos;ve never noticed it.&lt;br&gt;
&lt;br&gt;
Looking into that app now, neckro23, thanks. Could well do the job. Don&apos;t know how I&apos;ve never come across it before..</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351204</guid>
		<pubDate>Wed, 27 Jul 2005 14:44:34 -0800</pubDate>
		<dc:creator>ascullion</dc:creator>
	</item><item>
		<title>By: null terminated</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351209</link>	
		<description>If you know any programming, you could use iTunes&apos; COM interface (it works with JScript, C#, PHP, C++).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351209</guid>
		<pubDate>Wed, 27 Jul 2005 14:49:36 -0800</pubDate>
		<dc:creator>null terminated</dc:creator>
	</item><item>
		<title>By: rxrfrx</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351229</link>	
		<description>I&apos;ve only used iTunes a couple times, but...&lt;br&gt;
&lt;br&gt;
isn&apos;t the iTunes library an xml file?  Can&apos;t you just write a script to append the new filename (in proper format) to some location within the library xml?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351229</guid>
		<pubDate>Wed, 27 Jul 2005 15:36:26 -0800</pubDate>
		<dc:creator>rxrfrx</dc:creator>
	</item><item>
		<title>By: n9</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351251</link>	
		<description>why not make a local podcast and add it that way?  You&apos;ll even be able to set the number of files you want on your ipod at a time and the expiration time for them to be removed automatically.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351251</guid>
		<pubDate>Wed, 27 Jul 2005 16:16:03 -0800</pubDate>
		<dc:creator>n9</dc:creator>
	</item><item>
		<title>By: pompomtom</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351341</link>	
		<description>I&apos;d imagine some sort of echo to the library xml file added to your batch file should work... though off the top of my head I can&apos;t think how to do it and ensure everything is closed off properly. Personally, I&apos;d probably use VBA, but that&apos;s because that&apos;s what I know.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351341</guid>
		<pubDate>Wed, 27 Jul 2005 19:22:22 -0800</pubDate>
		<dc:creator>pompomtom</dc:creator>
	</item><item>
		<title>By: docgonzo</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351369</link>	
		<description>I&apos;d say editing the XML file is the way to go but I&apos;m not sure how often iTunes reads the XML file. I tried manually changing something once (I was bored) and I seem to recall it didn&apos;t show up until I had quit/restarted iTunes.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351369</guid>
		<pubDate>Wed, 27 Jul 2005 20:33:25 -0800</pubDate>
		<dc:creator>docgonzo</dc:creator>
	</item><item>
		<title>By: null terminated</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351376</link>	
		<description>I wrote this JScript which you can download &lt;a href=&quot;http://www.cowpimp.com/mefi/addToPlaylist.js&quot;&gt;here&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
To run it, download it to your computer and then type&lt;br&gt;
&lt;br&gt;
addToPlaylist.js &amp;lt;file&amp;gt; [playlist]&lt;br&gt;
&lt;br&gt;
Where file is the path to the file you want to add and playlist is the optional playlist to which you want to add the file. If you don&apos;t specify the playlist, it should add the file to the main library.&lt;br&gt;
&lt;br&gt;
Let me know if it doesn&apos;t work.&lt;/file&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351376</guid>
		<pubDate>Wed, 27 Jul 2005 20:47:45 -0800</pubDate>
		<dc:creator>null terminated</dc:creator>
	</item><item>
		<title>By: matildaben</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351425</link>	
		<description>This is sweet.  I have a windows job that calls command line Streamripper to rip KEXP every Thursday night, but then I import it into iTunes by hand.    I&apos;ll have to check out some of these suggestions.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351425</guid>
		<pubDate>Wed, 27 Jul 2005 22:37:10 -0800</pubDate>
		<dc:creator>matildaben</dc:creator>
	</item><item>
		<title>By: ascullion</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#351441</link>	
		<description>Thanks for all the brilliant suggestions. I&apos;ll check them out tonight and let you know how I get on.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-351441</guid>
		<pubDate>Wed, 27 Jul 2005 23:38:24 -0800</pubDate>
		<dc:creator>ascullion</dc:creator>
	</item><item>
		<title>By: null terminated</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#352042</link>	
		<description>ascullion: Were you able to get that working?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-352042</guid>
		<pubDate>Thu, 28 Jul 2005 23:04:57 -0800</pubDate>
		<dc:creator>null terminated</dc:creator>
	</item><item>
		<title>By: ascullion</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#352190</link>	
		<description>Haven&apos;t had time to look at it yet, am doing so right now.. thanks for asking, will come back and report.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-352190</guid>
		<pubDate>Fri, 29 Jul 2005 07:01:51 -0800</pubDate>
		<dc:creator>ascullion</dc:creator>
	</item><item>
		<title>By: ascullion</title>
		<link>http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line#352203</link>	
		<description>It works! Thank you so much!&lt;br&gt;
&lt;br&gt;
Initially, it wouldn&apos;t work. I had just been giving the filename. I then put the entire path to the file in, like so&lt;br&gt;
&lt;br&gt;
addToPlaylist.js &quot;W:\Radio\BBC Radio 1\Zane Lowe\Zane.mp3&quot;&lt;br&gt;
&lt;br&gt;
And then it added the file.&lt;br&gt;
&lt;br&gt;
Then I tried it while I was playing a song - it added the file, and didn&apos;t stop what I had playing.&lt;br&gt;
&lt;br&gt;
Then i tried it when iTunes wasn&apos;t running - and it opened iTunes and added the file.&lt;br&gt;
&lt;br&gt;
So all eventualities are covered. &lt;br&gt;
&lt;br&gt;
Great stuff, thanks again. I hope I can answer something for you one day.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.21800-352203</guid>
		<pubDate>Fri, 29 Jul 2005 07:22:33 -0800</pubDate>
		<dc:creator>ascullion</dc:creator>
	</item>
	</channel>
</rss>
