PDA

View Full Version : How to automate ripping CD in iTunes then transfer to iPod?


hedgeland
07-01-2003, 12:22 PM
Anyone have an Applescript or other method of automagically ripping a CD, adding it to your iTunes library, then load the newly ripped songs onto your iPod?

I've seen Dave's "Rip to Ipod" AppleScript

(http://www.malcolmadams.com/itunes/index.shtml)

but that deletes the file from your library when it's done. I want the files added to my library permanently.

Oh, and I don't want to use the auto-sync functionality of iTunes. There are many, many songs that I don't need on my iPod.

Thanks in advance,

GG

eustacescrubb
07-01-2003, 12:42 PM
You should be able to open the script in Script Editor and find the block of code that deletes the songs from your Library, and just delete it or comment it out.

The stuff you want to delete is this:

-- remove from Finder
copy (get itt's location) to itt_location
-- if OS 9 then
if vers does not start with "10" then
tell application "Finder" to delete itt_location
set addenda to (return & return & "Intermediate files have been moved to the Trash.")
else -- it's X, use shell scripting to completely remove the file
set myFPath to (quoted form of POSIX path of (itt_location))
?event sysoexec? "rm " & myFPath -- & " &"
end if
delete itt -- remove track from iTunes

If you don't want to delete it, then you can comment it out. Just use a double dash (--) before every line you want AppleScript to ignore.

Doug Adams
07-01-2003, 08:09 PM
If you don't want to put "--" in front of each line, use these things:

(*
some stuff to be commented out
another thing
and another thing
one more thing
*)

They're easier to apply when dealing with Big Chunks and way easier to remove when you're just testing/troubleshooting.

hedgeland
07-02-2003, 11:14 AM
Thanks for the tips, guys! I will give it a shot. I'm a Java/ASP programmer so I oughtta me able to do this.