Hi guys,
I have been mulling over how to do this for awhile, but I haven't gained any ground as to how to successfully code it.
Yes, this is for exporting. I would also like to extend this for action scripts to actually modify the filename - but that can come after
So, what I basically want to do is;
Rename the filename so that it is unique and 8 characters. The unique characters must be extracted from the filename - where 4 characters are made from the Artist tag, and 4 from the Title tag. So, something similar to this;
Filename: Hybrid - Disappear Here (Orchestral Armchair Mix) [Distinctive Records].mp3
Turns into;
Filename: hybrdhoa.mp3
Strings: Hybr D H O A
While;
Filename: Adam Nickey - Voices (Original Mix) [Anjunabeats].mp3
Turns into;
Filename: adnivoor.mp3
Strings: Ad Ni Vo Or
While;
Filename: Barnes & Heatcliff feat. Ann Bailey - Safe and Sound (Original Mix) [Big & Dirty]
Turns into;
Filename: b&hfsaso.mp3
Strings: B & H f S a S O
Ideally;
If the script is trying to extract more characters than the index length, it will add 0 until it fills the required characters.
If the artist/title index has 1 value (eg; Hybrid) it will grab the first 4 characters (eg; Hybr).
If the artist/title index has 2 or 3 values (eg; Adam Nickey) it will grab the first 2 characters from the first 2 values (eg; Ad Ni).
If the artist/title index has 4 or more values (eg; Barnes & Heatcliff feat. Ann Bailey) it will grab the first character of the first 4 values (eg; B & H f).
All the best
Edit
I just realised, if, say;
Brown Hill & Hitmeister D - Will You Ever Know (Hitmeister D West 'Park' Mix) [Capitain]
Will be;
bh&hwyek.mp3
If it were a different mix, it will still be the same filename..
I will ponder as to how to combat this issue..
Edit 2
Another thought. I may whip something up in Visual Basic.