iPod Command-Line Sync on Mac OS X

Posted by Bill McGonigle Tue, 07 Oct 2008 05:15:00 GMT

This will sync any attached iPods if iTunes is running:

          #!/bin/sh
          osascript <<_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
          

It can be called from a cronjob to keep an iPod updated. iTunes ought to just do this automatically.

del.icio.us:iPod Command-Line Sync on Mac OS X digg:iPod Command-Line Sync on Mac OS X reddit:iPod Command-Line Sync on Mac OS X spurl:iPod Command-Line Sync on Mac OS X wists:iPod Command-Line Sync on Mac OS X simpy:iPod Command-Line Sync on Mac OS X newsvine:iPod Command-Line Sync on Mac OS X blinklist:iPod Command-Line Sync on Mac OS X furl:iPod Command-Line Sync on Mac OS X fark:iPod Command-Line Sync on Mac OS X blogmarks:iPod Command-Line Sync on Mac OS X Y!:iPod Command-Line Sync on Mac OS X smarking:iPod Command-Line Sync on Mac OS X magnolia:iPod Command-Line Sync on Mac OS X segnalo:iPod Command-Line Sync on Mac OS X
Trackbacks

Use the following link to trackback from your own site:
http://blog.bfccomputing.com/articles/trackback/4788

Comments

Leave a response

Comments