Applescript copy iPod to iTunes Library

I’m kind of new to applescript, but this is what I want the script to accomplish:

  1. Copy iPod to iTunes Library
  2. Sync and Eject iPod
  3. Delete iTunes Library

I want to do this to free up space on my Mac. If I was to add more songs to it, I’d want to repeat the process. Is there anyway to accomplish this?

Model: iMac
AppleScript: 2.3
Browser: Safari 531.21.10
Operating System: Mac OS X (10.6)

Hi,

plain vanilla AppleScript can’t copy any track from an iPod to iTunes,
because in Apple’s philosophy this defeats the purpose of iTunes as the music management application and the iPod as a “backup”

Is it possible to accomplish though? Maybe using Applescript and shell scripts.

Model: iMac
AppleScript: 2.3
Browser: Safari 531.21.10
Operating System: Mac OS X (10.6)

This is where I started, but it doesn’t seem to work:

AppleScript:

tell application “iTunes”
«event misccopy» (files iPod thru library)
update iPod
eject iPod
delete library
end tell

Model: iMac
AppleScript: 2.3
Browser: Safari 531.21.10
Operating System: Mac OS X (10.6)