Yeah, so, there seems to be a problems. First of all, I should ask for my own sake. Does this update allow the usage or 2,3,4 different $if's, or just support for $if's inside of 1 $if's? Then there's the ideal option of BOTH
Anyway, here's my breakdown, we start with my Original Mask I use:
Code: Select all
C:\Documents and Settings\Chris\Desktop\My Music\<Genre>\$if(<Custom 1>=--Misc--,!--Misc--!,)$if(<Custom 1>=--2Pac Misc--,!--Misc--!\2Pac,)$if(<Custom 1>=--2Pac Dup--,!--Misc--!\2Pac\Dups maybe,)$if(<Custom 1>=--2Pac Remix--,!--Misc--!\2Pac\Mixes,)$if(<Custom 1>=--Tech Misc--,!--Misc--!\Tech N9ne,)$if(<Custom 1>=--Tech Fake--,!--Misc--!\Tech N9ne\Mixes,)$if(<Custom 1>=--Inst--,!--Misc--!\Instrumental & Acapella,)$if(<Custom 2>=--Album--,<Album Artist>\<Year> - <Album>,)\$if(<Custom 1>,<Artist> - <Title>,$if(<Artist>=<Album Artist>,<Track#> - <Title>,<Track#> - {<Artist>} - <Title>))
All would be perfect if it would have worked, but sadly it did not. It once again listed every last file scanned as needing it and I know for a fact that it's false. So, I figured maybe if I remove the "C:\..." information and just let it run for the Filenames, this is what I tried:
Code: Select all
$if(<Custom 1>,<Artist> - <Title>,$if(<Artist>=<Album Artist>,<Track#> - <Title>,<Track#> - {<Artist>} - <Title>))
This produced an erorr. :\
Code: Select all
Error #9 - Microsoft VBScript runtime error
Subscript out of range: '[number: 0]'
File: "C:\Program Files\MediaMonkey\Scripts\Auto\UnAutoOrganised.vbs", Line 120, Column: 29
---
Error happened during script execution:
Subscript out of range: '[number: 0]'
so I moved on to my next attempt:
Code: Select all
.\$if(<Custom 1>,<Artist> - <Title>,$if(<Artist>=<Album Artist>,<Track#> - <Title>,<Track#> - {<Artist>} - <Title>))
This once again listed everything. Thought I'd leave all the multiple $if's and take out my one nested one:
Code: Select all
C:\Documents and Settings\Chris\Desktop\My Music\<Genre>\$if(<Custom 1>=--Misc--,!--Misc--!,)$if(<Custom 1>=--2Pac Misc--,!--Misc--!\2Pac,)$if(<Custom 1>=--2Pac Dup--,!--Misc--!\2Pac\Dups maybe,)$if(<Custom 1>=--2Pac Remix--,!--Misc--!\2Pac\Mixes,)$if(<Custom 1>=--Tech Misc--,!--Misc--!\Tech N9ne,)$if(<Custom 1>=--Tech Fake--,!--Misc--!\Tech N9ne\Mixes,)$if(<Custom 1>=--Inst--,!--Misc--!\Instrumental & Acapella,)$if(<Custom 2>=--Album--,<Album Artist>\<Year> - <Album>,)\$if(<Custom 1>,<Artist> - <Title>,<Track#> - <Title>)
Listed everything. :\ I simplified it a little more:
Code: Select all
C:\Documents and Settings\Chris\Desktop\My Music\<Genre>\$if(<Custom 1>=--Misc--,!--Misc--!,<Album Artist>\<Year> - <Album>)\$if(<Custom 1>,<Artist> - <Title>,<Track#> - <Title>)
Negative, still listing everything. So, finally I thought I would try one last thing, removing all the multi-$if's and just leaving the one Nested one, since you mentioned that this added support of nested, but made no mention of multi:
Code: Select all
C:\Documents and Settings\Chris\Desktop\My Music\<Genre>\<Album Artist>\<Year> - <Album>\$if(<Custom 1>,<Artist> - <Title>,$if(<Artist>=<Album Artist>,<Track#> - <Title>,<Track#> - {<Artist>} - <Title>))
This only brings the title of a new movie coming out to mind... "Deja Vu" as even this resulted in the same fate as all the other attempts (other then the one error)
So, hope this long list of fail attempts help you in some way, I really see the potential in this script and would LOVE to see it reach it as I would find it VERY usefull.