Script to Deal with Organizing Music

Hello all,
So I've been wanting to organize my music collection for a while, and I wanted to also fix errors with tags. Instead of spending an hour to do it by hand, and have things degenerate again over time, I wanted to create a script that would do this all automatically every time I ran it.  I'm just not really sure how to write out the script.
So here's what I want the script to do:
My music is organized in the ~/music folder on my machine. Each folder here is an artist's name. I want to use a tool like mp3id to take this folder name as a variable like $artist_name and force all music files under it to have $artist_name in metadata.
In each artist's folder, there will be a folder for each album. I want to to make sure all files under each album contain the the album name and the appropriate album art, if possible.
What would be a good way to go about scripting this? I'm a little bit familiar with shell scripting, but I'm not sure about mp3 metadata editors, or how to make a script visit every subfolder in a given folder. Any insights are appreciated!

I've also found that foobar2000 on Wine tends to work quite well for this task -- Masstagger for unifying the tagging scheme, its file operations for the directory reorganization. Though I haven't used Picard in some time, and if you can get it to do this I'll be looking into it again.

Similar Messages

  • Scripting problem dealing with Acrobat 9's extra (unwanted) nodes

    Hello All,
    I'm having a few issues with the way Acrobat 9 creates extra nodes in the model tree when you try to export it
    out as a u3d.  Here's what i mean.
    In version 8, my object tree looks something like this:
    <Node Name="model">
           <Node Name="DTM">
                 <Node Name="D1"/>
                 <Node Name="D2"/>
                 <Node Name="D3"/>
                 <Node Name="D4"/>
    But, when i export the same model in version 9, the object tree looks something like this
    <Node Name="model">
           <Node Name="model.u3d">
                 <Node Name="DTM">
                      <Node Name="D1">
                             <Node Name="D1"/>
                       </Node>
                            <Node Name="D2">
                                  <Node Name="D2"/>
                       </Node>
                       <Node Name="D3">
                             <Node Name="D3"/>
                       </Node>
                       <Node Name="D4">
                             <Node Name="D4"/>
                       </Node>
    Acrobat 9 adds a new level of nodes.  This is a problem for me as i have been using a simple script to toggle my
    objects on/off.  The script that i've have been using:
    var Context = getAnnots3D(0)[0].context3D;
    var mesh = Context.scene.meshes.getByName("D1");
    mesh.visible = !mesh.visible
    This works fine under version 8 but not in version 9. I'm assuming that with the new level of nodes, i have to alter my script to reflect this. Does anyone know how i can adjust my script to make this work with all these extra nodes?
    Thanks

    I think I have isolated the source of this problem. It's the Pitstop Professional 9 plug in. I un-installed this, and everything opens quicker than greased lightning. I re-installed it and it's back to slowsville.
    Unfortunately Pitstop is essential to my workflow.
    Until recently I did my pre-press on a Mac G5 with Acrobat Pro 7 and Pitstop 6.5. I never had this problem with slow file opening. But it seems that the delays would occur when I used the plug-in with large complex files.. So it would open files as fast as you'd expect from an elderly machine. But starting to use Pitstop would result in a prolonged period of staring at a spinning beachball.
    I wonder is there any way to stop the Pitstop plug-in from initializing until it is used? So the plug-in stays inert until you select the tool from from the menus.

  • I am having problems with my music collection, after burning all of my music to the computer I organized it into folders and placed it in the iTunes Folder. Starting on a new computer now. I can get my music from old computer?

    I am having problems with my music collection, after burning all of my music to the computer I organized it into folders and placed it in the iTunes Folder. As of now i realize this was a mistake. Starting on a new computer now. I cant get my music to transfer from the itunes folder on the old computer? I keep getting error "Can't Read from the source file or disk." Whenever I got to folder properties its always checked read only. But when i play the song it works just fine. Im sure this is just because I added music into itunes folder but is there anyway to fix it?

    WMA files are 'window media audio' files, which is a Microsoft format. If you want to add them to your iTunes library on your Mac then you will need to convert them into a compatible format first. If you still have your windows machine then iTunes for Windows can convert them from WMA to MP3 format : https://discussions.apple.com/message/24158701#24158701
    Or try a search for, for example, 'convert wma to mp3' to find programs to convert them.

  • How to deal with "Script stopped responding" in general Part 3

    OK, I have asked about this issue before, and am back because it won't go away.
    First, I have tried resetting Firefox. Yesterday was the most recent time.
    I have tried using add-on Script Blockers.
    The Script Blocker program worked for a while. The problem is that the primary source of the script problems are Hotmail and Gmail, and I need to have these functioning and open. Plus it is not easy to determine what a script does before deciding to let it in.
    So I'm going to start from the computer user perspective: Why does this happen at all?
    I understand the need for scripts to be used for websites to function. What I don't understand is why my entire computer slows to a crawl, some programs get cut off entirely, and then I have to try to figure out what webpage is causing the problem...slowly. Even when I click the box to stop the script, my computer is still incredibly slow for an unreasonable amount of time. By unreasonable amount, I mean that it is so long that I can't even close Firefox within 5 minutes just to make it stop. By unreasonable amount, I mean I have actually just set my computer to restart so that Firefox will be forced closed and then cancel the restart when Firefox shuts down.
    What can Hotmail, Gmail, or any other program be doing that is of sufficient importance that it can essentially take over the computer? Nothing that isn't critical to the functioning of the computer should have this power. There is nothing critical about a script on Hotmail while I'm not even using that should let it take over all of the computer's resources. I would rather have Hotmail crash and shut off than have it let a script take over my computer. I can click on my Hotmail start up button within seconds while a script that won't respond might take 15 minutes to deal with.
    So can someone please explain to me why this system exists? Why isn't there a command that says "a script may use up this amount of processing power only" that allows a person to keep using their computer while the script futily whirls away? Why isn't there a way to have an automatic setting like "let a script try to run for X seconds and if it doesn't work just stop it"? Why doesn't a window pop-up on the computer screen regardless of where the script problem is to alert you what webpage is causing the problem instead of making the user guess?
    There doesn't even seem to be much purpose to the scripts. If I stop a script that is not responding on Hotmail, I can still use Hotmail when the computer recovers. So why does this happen?
    This system seems insane to me. Honestly, I don't understand why scripts are allowed to do this. Can someone at least help with an explanation of why this happens? Why there isn't a way to make it stop? In a world of apps it seems like something that would kill non-responding scripts after a brief time would be a winner. How did we reach this chokepoint in computer functioning and why haven't we figured out how to stop it?
    Thank you for any help, whether it be fixing the problem or just explaining the purpose.

    Hi auzziewog, a couple of thoughts on long pauses.
    In some cases, this is caused by Firefox waiting on content from the server, or loading some content into a plugin. Other than blocking some extraneous content in pages and setting plugins to "Ask to Activate" (click-to-play) on the Add-ons page, this is a hard problem to solve.
    If the problem is a script (the eventual appearance of the dialog suggests that possibility), please see the above reference post.
    Perhaps it is a combination of those things, since scripts often run after some other elements are loaded...

  • I'm trying to transfer music from iTunes on an old PC that uses an external storage device to a new PC (Windows 7) that will use that same external storage device.  I am also dealing with new iTunes 11.  How do I do this??  What folder does iTunes use?

    I'm trying to transfer music from iTunes on an old PC (Windows Vista Home Basic) that uses an external storage device to store the files to a new PC (Windows 7 Starter) that will use that same external storage device.  I am also dealing with the new iTunes 11.  How can I accomplish this successfully?    What folder does iTunes use to store the data in?  I've tried several things.  Home Sharing caused duplicates but not all songs or apps transfered.  It is a large library! I've tried just setting the path in the Advanced Tab of iTunes preferences of the new computer with the external drive connected the same as the path when the external drive is connected to the old computer.  This was the best solution so far but still a few artists missing and some apps. Any suggestions?

    Here are typical layouts for the iTunes folders:
    With iTunes 11 you might also have a Home Videos folder inside iTunes Media.
    In the simplest cases you copy the entire iTunes folder from <User's Music> on the source computer to <User's Music> on the target machine, install iTunes, and it "just works"TM.
    If the media folder (inside the red outline) has been split out to a separate location then you can copy the library folder (outside the red outline) as before and connect the drive holding the media so that it has exactly the same path as before. If the drive appears as D: on one system and E: on the other then the library won't be able to find the media.
    The crucial file is iTunes Library.itl - this contains a record of the tracks that have been added to the library, ratings, play counts, playlists etc.
    See also: Make a split library portable.
    tt2

  • How to deal with multiple language SQL script?

    Hi All,
    We now want to create a SQL script that contains multiple languages(English, Chinese, Japanese), this script need to be run at there different database installed on different OS, for example, Oracle9i on Windows 2000 English Edition/Chinese Edition/Japanese Edition.
    If I save the file as ANSI format, this file will only be recognized at local OS(e.g. the Chinese and Japanese character will not be normally displayed on other OS, if I run the script, the CH/JP characters will not be stored normally in DB).
    If I save the file as Unicode format, this file can be recognized by all three OS, but Oracle SQL Plus will not recognize it, thus we can't run the script.
    Who can tell me how to deal with this issue? Is it possible to save only one script that can run on different language OS?
    Thanks,
    Spark

    Hi,
    The ISQLplus supports multiple languages, but there will be following problems for my case:
    1.ISQLplus don't support Unicode format script too, so I must save the file as ANSI format.
    2.To display the characters normally depends on the database server's platform. I create a script contain three languages with ANSI format in Chinese OS, but if I want to load this script to database server installed on English OS via ISQLplus, the Chinese characters will not be displayed normally too.
    PS:
    So, I think this is not only related with Oracle but also the Windows OS, it is hard to create one file with ANSI format that can be displayed normally in different platforms.
    Thank you all the same,
    Spark

  • Requesting guidance on how best to deal with removal of CreateElementSteps for tables when option to 'script validation for new constraints' is enabled during schema compare

    I have a DeploymentPlanModifer subclass that is responsible for removing certain tables from a deployment plan under specific conditions. It is relatively trivial to find the
    CreateElementSteps I need and subsequently remove them via
    DeploymentPlanModifier.Remove(), but...
    ... if in my comparison I have enabled the 'Script validation for new constraints' option, the deployment plan will contain a
    DeploymentScriptDomStep with a Batch containing AlterTableConstraintModificationStatements for tables with foreign key constraints. My problem starts here - there will be an orphaned
    AlterTableConstraintModificationStatement for each of the tables that I removed. Obviously, execution of the generated script comes to a grinding halt when asking SQL Server to to alter a table that is never created.
    I'm able to get around this by digging around in the aforementioned batches and removing the orphaned alter statements, but this seems really hacky, which makes me think I'm missing the proper way of dealing with this.
    So... if anyone is aware of a more correct way of avoiding this problem, I would really appreciate finding out more about it.
    Thanks in advance for any help. :-)

    Hi Greg. Unfortunately there is not an easy solution here. Walking the deployment model, spotting potential issues and excluding them really is what you have as an option here. The alternative is to pre-process the dacpac to have it in the form you want,
    but I'm not sure if this is an option in your case and it also has limitations.
    Regards,
    Kevin

  • HT1848 How to transfer Ipad music NOT purchased from Apple to Macbook Air. Answers found in the Community does not seem to deal with the questions some members already ask.

    how to transfer Ipad music NOT purchased from Apple to MacBook Air.  Answers found in the Community does not seem to deal with similar questions posted to the Community.

    You can only transfer purchases from iTunes on the iPad into iTunes on your computer. If you bought the music from another source, you need to use the source app to transfer the music, or you need a third party app to transfer the music.
    http://www.wideanglesoftware.com/touchcopy/

  • Creative Cloud and Scripting - Anything to deal with ?

    Hi,
    Just saw the annoncement for Creative Cloud only After Effects. I didn't deal with it since the Creative Cloud introduction last year, but I'm not sure of how it will be impacting the use of scripting. Is it still a software like before ? Can we do scripting like we use to do ? Or it is gone ? There is no more "version", it is just up-to-date from what I understand. So I suppose we'll not have to deal with CSx version anymore in mid-term - am I right ?
    Anything that I don't know about but will impact scripting with After Effects ?

    There are some minor additions to the scripting interface for After Effects CC (12.0) compared with After Effects CS6 (11.0).
    I'll be posting details about those very soon.
    But the important thing to realize is that this isn't as huge a change as you seem to think. It's just the next version of the application.
    Here's a complete list of how After Effects CC differs from After Effects CS6:
    http://blogs.adobe.com/aftereffects/2013/04/whats-new-changed-after-effects-next.html

  • Dealing with unresponsive scripts?

    FF 35.0.1, no plugins active, no add-ons installed, Mac OS X 10.6.8
    Hi, Every time I browse newegg.com (different accounts/boot drives), at least one open tab will soon spinning-beach-ball hang with message:
    Warning: Unresponsive script
    A script on this page may be busy, or it may have stopped
    responding. You can stop the script now, open the script in
    the debugger, or let the script continue.
    Script: http://cdn.krxd.net
    /ctjs/controltag.js.0663le6b152733188c0cac5a80502b56:2
    [ ] Don't ask me again
    (Debug script) (Stop script) (Continue)
    The only way I've been able to *sometimes* close the tab, is - if able - choose (Debug script), wait until debug window section fill in, then hit the close "x" on the right side of the tab, wait for the tab to close, and then for the same error message to reappear, then hit any of the choices to finish the closure. Otherwise Force Quit.
    Thanks for any comment.

    Thanks for the reply.
    Mainly I was trying to find out if there was a "stronger" way to get out of such a hanging/unresponsive tab without a Force Quit of the entire application - for future reference.
    To me it looks like the script is associated with custom ads located along the side of the page, or tracking. I suspect that script is run only when certain ads are pushed to the page. (cdn.krxd.net is apparently part of Krux "Consumer Web Data Management".)
    If further detail might assist: As stated above I run no extensions or add-ons (and generally either run as private browsing, or clear *everything* at least at the end of every session). Malware is not an issue, and the problem was repeatable on various accounts and boot volumes.
    The newegg website is useless with javascript disabled, so that is not an option. I'd rather not start using add-ons, but it appears that there are some "JavaScript blacklist" ones out there. I suspect that the problem will probably disappear unexpectedly when the ad run expires or the script changes.

  • What's best strategy for dealing with 40+ hours of footage

    We have been editing a documentary with 45+ hours of footage and presently have captured roughly 230 gb. Needless to say it's a lot of files. What's the best strategy for dealing with so much captured footage? It's almost impossible to remember it all and labeling it while logging it seems inadequate as it difficult to actually read comments in dozens and dozens of folders.
    Just looking for suggestions on how to deal with this problem for this and future projects.
    G5 Dual Core 2.3   Mac OS X (10.4.6)   2.5 g ram, 2 internal sata 2 250gb

    Ditto, ditto, ditto on all of the previous posts. I've done four long form documentaries.
    First I listen to all the the sound bytes and digitize only the ones that I think I will need. I will take in much more than I use, but I like to transcribe bytes from the non-linear timeline. It's easier for me.
    I had so many interviews in the last doc that I gave each interviewee a bin. You must decide how you want to organize the sound bytes. Do you want a bin for each interviewee or do you want to do it by subject. That will depend on you documentary and subject matter.
    I then have b-roll bins. Sometime I base them on location and sometimes I base them on subject matter. This last time I based them on location because I would have a good idea of what was in each bin by remembering where and when it was shot.
    Perhaps, you weren't at the shoot and do not have this advantage. It's crucial that you organize you b-roll bins in a way that makes sense to you.
    I then have music bins and bins for my voice over.
    Many folks recommend that you work in small sequences and nest. This is a good idea for long form stuff. That way you don't get lost in the timeline.
    I also make a "used" bin. Once I've used a shot I pull it out of the bin and put it "away" That keeps me from repeatedly looking at footage that I've already used.
    The previous posts are right. If you've digitized 45 hours of footage you've put in too much. It's time to start deleting some media. Remember that when you hit the edit suite, you should be one the downhill slide. You should have a script and a clear idea of where you're going.
    I don't have enough fingers to count the number of times that I've had producers walk into my edit suite with a bunch of raw tape and tell me that that "want to make something cool." They generally have no idea where they're going and end up wondering why the process is so hard.
    Refine your story and base your clip selections on that story.
    Good luck
    Dual 2 GHz Power Mac G5   Mac OS X (10.4.8)  

  • Dealing with 6,000 duplicates

    Is there any way to get ride of 6,000 duplicate songs on an external harddrive. The Itunes duplicate button shows over 12,000, so do I have to delete every other song right? If i delete all in the window I understand i will lose the original and the duplicate. In otherword can i tell it to just show duplicates, then i can erase all? This is taking me forever hours over hours.

    Here is another option that I just figured out while trying to deal with my 15,000 duplicates. The file naming structure of all my duplicates ended in either "song title 1.mp3, song title 1.m4p or song title 2.mp3, song title 2.m4p, etc." depending on how many duplicates there were of each file and the audio format. I used spotlight to search my music folder by name, using the additional constraint of "ends with" and searched for all files that "end with" "1.mp3, 1.m4p, etc."
    This identified all of my duplicates which I then dragged into the trash. After removing the files from the music folder, I then went back into iTunes and ran the "Super Remove Dead Tracks" script from the Doug's Apple Scripts website:
    http://dougscripts.com/itunes/scripts/ss.php?sp=removedeadsuper
    This script removed all of the now dead files that iTunes could not find, due to their removal from my music folder/library.
    That solved the problem without having to do the manual selection of tracks in iTunes or my music folder.

  • How to deal with several itunes users in a house

    I will try to be brief but explain what I don't know how to configure.
    We have three children. We have 5 laptops that work wirelessly, and we have music and photos all stored on a shared NAS drive. We moved our iTunes music folder successfully to it when we set up.
    1. We set everyone's folder location, under preferences, to the folder on the NAS drive.--- It won't stay. With any reboot or interruption in signal it switches back to the individual computer's hard drive. This is a pain, because every time you reset it, you have to wait for 30 gigs of music to update. This has been asked before and no one answers it. Is it a bug and is Apple aware?
    2. I understand that we can "share" our libraries. But how do we deal with the issue of individual family members purchasing songs from iTunes? As in, I would like to add songs my teen bought to my ipod, but how do I know if there is new music beside asking them to "log" all their purchased so I can manually look for them. We can't just sync every time. They have nanos, and I don't want to have to weed through Christmas music, audio books, and Kidz Bop each time and delete them. What about someone finding they are not "authorized" to play a song? We can have 5 authorized no? I tried to drag something from a shared library onto an ipod and it wouldn't let me.
    Please help. My last question dropped to page three by the end of the day with no response.

    I guess then I need to read more about my NAS drive, because it is always on. I read in another thread about the same issue the question was asked, "Is your NAS drive mounted?" I have no idea what that means. There was other ideas of making alias of the NAS iTunes folder and putting in on the laptop's dock, but I didn't quite understand that either.
    I thought NAS was a rapper. Well, I have no idea what a NAS drive is. But it should have no influence on iTunes' behavior. If that drive is always on and visible on your Desktop (= "mounted"), iTunes shouldn't change its settings re. its Library.
    It would be easier to draw all this instead of explaining, but, well, we are not that far yet.
    0: If you set up on all Macs that iTunes stores its files on one drive, iTunes should not change this on any of them as long as it is always on, as you said. If it does, thought, something is wrong. Don't ask me, what.
    Ok, just to make this even more complicated, LOL if each person has their own laptop and ipod, and everyone in the household has used their 5 authorizations on each other's computers, then theoretically, when everyone accesses the itunes library they should be able to copy the songs onto their devices?
    1: You can play all your music on this external drive from anywhere in the house.
    2: You can activate the DRM files on every Mac in the house and play them.
    3: You canNOT use one iPod on more than one Mac, regardless if the music is DRM or not. iPod 1 is associated with Mac A, iPod 2 with Mac B etc. If you change that, all music from iPod 1 will be deleted before the music from Mac B will be copied to it. So, it's always 1:A, 2:B etc., not iPod 1 : Mac A & B & C... Otherwise, your iPods would be regular external hard drives from which you could copy tons of music to someone else's PC, which is illegal. That's why all the music on an iPod is made invisible. And even after making it visible with special utilities (I tried that once), you won't be able to recognize which song is which. CDs are not stored together, etc. Apple would not have got the permissions for the iTunes Store / iPods from the music industry if it was the perfect utility for illegal music sharing.
    Did I savvy what you meant?

  • I don't know where the source of my music is coming from...? I played around trying to organize my library and Duplicated it and moved them around then somehow i deleted my library but saved my music so now i have a brand new library with my music

    OK OK OK this is long but very very important i live on music......         
         SO i thought i would organized my iTunes Library but i would do it from the music folder.........BAD IDEA.... i duplicated my music folder just INCASE something bad happend....then i started organzing and then i realized after 5 hours of work that the second i clicked itunes to open again, all the work i just did changed back to the orignial, so then i opend a new library and tryed to put my organized folders in that, BUT THAT WOULDNT WORK, so for like 5 more hours i keept going =( ok so right now I am in a NEW LIBRARY with what music i did save =( ***** because my iphone does not match the itunes on MAC anymore.....iphone has 10000 songs and itunes only 900 so ,
    my questions 1. Can i go back to last night some how like restore it.....its been less than 24 hrs
                           2. NOW I HAVE 3 MUSIC FOLERS THAT ARE NOT THE SAME BUT NOT ONLY THAT THERE NOT IN username/Music/iTunes/itunes Media/Musc there on desktop but still play.......HOW CAN I MAKE EVERYTHING BACK TO THE WAY IT WAS IM GOING INSANE
    please please please please help!

    AND yea i afraid to sync my iphone and lose everything ;( i had everything perfect sync ing perfect ical,contacts,mail,apps and now sence new library I dont wana lose everything.....my hole life runs on my fone i need help bad

  • ITunes Library - How to deal with assorted tracks

    I have a large collection of individual MP3 tracks that I don't have the complete album for. Because I mainly use Windows Media Player and Winamp for my music I didn't want these individual tracks polluting my main album collection, so I set the ID3 tags for all these tracks such that the Album field was empty and Album Artist was set to 'Various Artists', leaving only the Track Name and Artist fields with meaningful data.
    Because I recently acquired an iPhone I have to use iTunes to get my MP3s on it. Unfortunately iTunes doesn't seem to like the way I've organised my assorted MP3s. It's decided to use an arbitrary album art image for all of the tracks and just lists individual tracks in library view, but some of them are grouped with others in a way that makes no real sense.
    Is there a way to get iTunes to exclude these tracks or deal with them separately? Like to ignore them in Album view, but still make them available for loading onto my iPhone?

    Setting the *Album Artist* field is usually a help in keeping things together. If you want a bunch of assorted tracks to merge into one "virtual" compilation album, then set *Part of a compilation* to "Yes", *Album Artist* to "Various Artists" and set Album to something suitable like "Assorted Tracks". You can either leave the track numbers that you have, assign new ones to control the order, or delete them all in which case they will probably sort on track name or date added order (sorry, it's been a while since I explored the behavior of unnumbered tracks).
    For general tips on tidying up in iTunes see http://samsoft.org.uk/iTunes/grouping.asp
    tt2

Maybe you are looking for

  • Color Sampler Tool CS6

    Tool does not produce accurate RGB values. Trying to use a Lee Brown curves method for skin tone correction. (https://www.youtube.com/watch?v=1c9-Ie5cmDc

  • Automate batch - can't find pictures

    I have taken a lot of pictures(time lapse) and want to apply the same effect to every pictures. I recorded an action, and started automate batch. After the process was done I went to my destination folder, but there are none pictures there. Did this

  • Retrieving lost music from i pod

    I was running my iTunes library from an external hard drive which has failed, and I can no longer get my computer to acknowledge its presence. Despite my best efforts it would seem I have lost nearly all my music from my computer. Most of my collecti

  • Certification through Pearson

    Hi,          Please guide me about does it make difference if certification is taken through Pearson. I heard some one saying that he even faced lot of technical errors during the test which wasted almost 5-10 minutes of his test and above it the str

  • N9 not booting!

    Hi, Yesterday after taking some picture using my Nokia N9, I'm trying to share those picture to my Facebook. Suddenly my phone started to freeze so I just do a long press on the power button, and, there you go. The phone is half-dead now. It shows on