Automator: clear ID3 tags & add to iTunes playlist

Discussion in 'Mac Programming' started by QuakeFX, Aug 25, 2014.

  1. QuakeFX macrumors newbie

    Joined:
    Aug 25, 2014
    #1
    I download a lot of music. Constantly cleaning up my Downloads folder is becoming tedious. After some Google I discovered Automator, which now moves music files to the 'Automatically Add to iTunes' folder.

    However, the files disappear somewhere in my library while I want them to be added to a dumb playlist (not a smart 'recently added' one).
    And I want to take it a step further and delete some ID3 tags.
    In iTunes I clear all but the artist, title, genre and cover art.

    This whole process is repetitive and takes up unnecessary time.
    I have no experience with Apple script or Automator and really want all this to be automatic but have no idea where to start.
    Can anyone please help me?
     
  2. kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    Why not import the songs with the Import Files into iTunes action instead of moving them to the 'Automatically Add to iTunes' folder? If you want scripts I suggest you take a look at Doug's AppleScripts for iTunes
     
  3. QuakeFX thread starter macrumors newbie

    Joined:
    Aug 25, 2014
    #3
    Thanks! Didn't know of that command. I followed a tutorial to get it to import. However, the mp3 is still stuck in my downloads folder. I added a 3rd command 'Move Finder Items to Trash' but that doesn't work. Neither will it import to iTunes or delete the file.

    Doug doesn't have any scripts to strip ID3 data. I do have an application from the Appstore called Tag Stripper. But I don't think it possible to chain that one in?
     
  4. kryten2, Aug 25, 2014
    Last edited: Aug 25, 2014

    kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #4
    Did you try Jaques Rioux's suggestion Automator: clear ID3 tags & add to iTunes playlist? It does what you want. I only had to add a refresh it statement to it to make iTunes see the changes in the Get Info window e.g.

    Code:
    ...
    set end of importedTracks to it
    refresh it
    ...
    I don't think Tag Stripper is the way to go because it will eliminate any non-audio data from an audio file including the artist, title, genre.
     
  5. QuakeFX thread starter macrumors newbie

    Joined:
    Aug 25, 2014
    #5
    And where do you add that refresh statement?
    The script is a bit flaky so far, not every song is added to iTunes and none get deleted. Sounds like it works for you though?
     
  6. kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #6
    I thought it was clear where to add it as there is only one set end of importedTracks to it statement. Did you try Jaques' new version of his script?

    Code:
    tell (add f to dumbP) -- import , iTunes copy this file in his library)    
    set {album, album artist, comment, composer, episode ID, episode number, grouping, lyrics, sort album, sort artist, sort album artist, sort composer, track number, track count, disc count, disc number, episode ID, episode number, season number, year, bpm} to {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}
    [B]set end of importedTracks to it[/B]
    [COLOR="Red"]refresh it[/COLOR]
    end tell
     
  7. QuakeFX thread starter macrumors newbie

    Joined:
    Aug 25, 2014
    #7
    Yeah but his new version does nothing. Does it work for you?
     

Share This Page