itunes importing question

Discussion in 'Mac Apps and Mac App Store' started by twoodcc, Oct 19, 2006.

  1. twoodcc macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #1
    is there any way to import only songs that aren't in your library?

    in other words, i have my library on my internal hard drive, but i have my iMac library on an external drive. can i import from my external, but only the ones i don't already have on my internal?

    sorry i'm moving from imac to mac pro

    thanks
     
  2. psychofreak Retired

    psychofreak

    Joined:
    May 16, 2006
    Location:
    London
    #2
    Why not import all, then allow iTunes to delete duplicates.
     
  3. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #3
    b/c we are talking about a lot of video files, so a lot of GB's
     
  4. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
  5. Killyp macrumors 68040

    Killyp

    Joined:
    Jun 14, 2006
  6. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #6
    well, how would you try to import only the files that aren't already in your library?
     
  7. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #7
    How handy are you with Terminal?

    Seems like something easy enough to accomplish with a bash script or other command line stuff.

    e.g. cp -pRn /Volumes/External/Music ~/Music

    Then import only what's on your internal disc.

    B
     
  8. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #8
    i'm not that good with terminal. i mean, i can follow directions, but that's about it
     
  9. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #9
    well i put in what you said, except i changed 'external' to the name of the external drive, and i changed the first 'music' to the name of the folder that the music is in on the external hard drive.

    it's still doing it's thing now. what exactly is it doing though?
     
  10. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #10
    Copying all files that don't exist (with the same name) from the external to the internal.

    Hope I got the folders right :p

    B
     
  11. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #11
    oh dang. i forgot, i have multiple internal hard drives, and it's not on the main one! oh no!
     
  12. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #12
    Whoops.

    The flags are:

    -R recurse the folder structure
    -p preserve permissions/dates
    -n don't overwrite any files that arelady exist

    B
     
  13. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #13
    so how would i do it for the other internal hard drive?

    i tried to change ~Music to ~/Volumes/'name of internal'/'name of music folder'

    but it didn't work. it said that it didn't exist
     
  14. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #14
    get rid of the ~ it refers to the folder belonging to your account.

    B
     
  15. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #15
    ok thanks. hope it works :)
     
  16. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #16
    well it didn't quite work. the name of the folder that the music is in is called 'itunes', and when i did this, it created another folder inside that folder, called 'itunes', and basically copied music until there was no space left.

    any ideas?
     
  17. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #17
    Should have been OK if the two folders were specified similarly e.g.

    <external>/iTunes <internal>/iTunes

    or

    <external>/iTunes/ <internal>/iTunes/

    You'll run into the sort of trouble you saw if one of the two folders was mismatched, like

    <external>/iTunes <internal>/iTunes/

    B
     
  18. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #18
    well here is what i did:

    cp -pRn /Volumes/external/Itunes /Volumes/internal/Itunes

    and it created an itunes folder inside the current itunes folder
     
  19. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #19
    so what should i do?
     
  20. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
  21. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #21
    It's all about the trailing slashes. You need a trailing slash on the first one to let it know to copy the contents of the folder and not the folder itself.
    i.e.
    Code:
    cp -pRn /Volumes/external/Itunes/ /Volumes/internal/Itunes/
    or
    Code:
    cp -pRn /Volumes/external/Itunes/ /Volumes/internal/Itunes
    should work according to my test scenarios...

    B
     
  22. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #22
    thanks, i'm gonna try it now :)

    but if it does work, how does itunes import them without importing all the rest with them?
     
  23. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #23
    well i tried it, and i got this:

    usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
    cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory

    any ideas?
     
  24. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #24
    well nevermind, i got past that now. it's doing something, so we'll know soon enough
     
  25. twoodcc thread starter macrumors P6

    twoodcc

    Joined:
    Feb 3, 2005
    Location:
    Right side of wrong
    #25
    ok it did it! now how do i tell itunes to import just those that i just copied?
     

Share This Page