<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>The BFC Computing Weblog: iPod Command-Line Sync on Mac OS X</title>
    <link>http://blog.bfccomputing.com/articles/2008/10/07/ipod-command-line-sync-on-mac-os-x</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>My God, It's Full of Source!</description>
    <item>
      <title>iPod Command-Line Sync on Mac OS X</title>
      <description>&lt;p&gt;This will sync any attached iPods if iTunes is running:&lt;/p&gt;

&lt;pre&gt;
#!/bin/sh
osascript &lt;&lt;_END_OF_UPDATE
tell application "Finder"
        set processList to get name of every process
        if processList contains "iTunes" then
                tell application "iTunes" to update (every source whose kind is iPod)
        end if
end tell
_END_OF_UPDATE
&lt;/pre&gt;

&lt;p&gt;It can be called from a cronjob to keep an iPod updated.  iTunes ought to just do this automatically.&lt;/p&gt;</description>
      <pubDate>Tue, 07 Oct 2008 01:15:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:171473d6-23c9-4aed-91be-82aeec130586</guid>
      <author>Bill McGonigle</author>
      <link>http://blog.bfccomputing.com/articles/2008/10/07/ipod-command-line-sync-on-mac-os-x</link>
      <category>Development</category>
      <category>Mac</category>
      <trackback:ping>http://blog.bfccomputing.com/articles/trackback/4788</trackback:ping>
    </item>
  </channel>
</rss>
