@MoodyBlues ,
@GameTheory . Wow. I didn't at all follow what you guys/gals/other are doing, but it looks cool.
It *is* cool! The thing about *nix is that, first, there's no such thing as 'no, that can't be done,' and, two, there are always multiple ways to achieve the goal.
I'm happy to run on my Android a little bash script or whatever it's called.
We're going to have to experiment with this on non-rooted devices. Android -is- a Linux, but its rules are kind of different.
I would say you may have solved this thread rather than hijacked it?
Thanks.
Ideally I could place the script in the directory where I want the files to go (moved), then the script could automatically place the results there.
I guess the script would pause and allow me to enter the genre (I don't use multiple genre ID3 tags, and I'm assuming case sensitive). Then it would pause again and allow me to enter the directory path where the files I want scanned are located. Then the script would pause and show me a list of all the files it found matching the genre I entered so I could make sure it grabbed the files I expected (the list would be vertically scrollable). It would ask me ''(c) Continue? (a) Abort?'' Then (if I hit c) the script would move the files to the directory I specified earlier. Then the script would pause and ask me ''Enter another genre or enter ''quit'' to quit?''
Something like that?
Not exactly. If I were writing this for my own use, it would work completely automatically. There's no need to run it from a particular directory, or to manually enter things like genres. All of that would be handled by the script.
For example, let's say you want your music stored in /sdcard/Music. The script would parse the information it reads from each MP3 file, then look for the directory it belongs in, like /sdcard/Music/rock. If it finds it, it moves the file there; if it doesn't find it, it creates it, then moves the file there.
If you wanted it to be interactive, requiring your input, it could work that way, too. In fact, the script could prompt you at runtime whether to run interactively or automatically.
As mentioned earlier, a decision would have to be made on how to handle multi-entry genres like 'rock, pop, glam' (I'm making this up to show the idea). I wouldn't want three copies of the same song, so I'd write the logic to account for my preference.
I
think we're going to take this over to our
Linux mega-thread so other *nix folks will play along.
If I knew how to make an Android app, I'd turn this into one! Unfortunately, when I had to quit working, Android didn't even exist, and other than my home network (all Linux), I'm out of the loop when it comes to programming. But maybe someone who sees this in the Linux thread will also have the know-how to make an app for it!