Action for altering the star rating for FLAC would be like this:
Action for altering the star rating for MP3 would be like this:
Since my collection contains both formats, I have to sort them by extension and then apply one of above.
How can I combine the 2 actions into 1?
So if it's a FLAC, alter the RATING WMP, and if it's a MP3, alter the POPULARIMETER
*Mind you: both fields are not there from the get-go, they need to be set using these actions.
Added scripts for easier editing:
RATING WMP | $replace(%energy%,[EN]High,255,[EN]Mid,153,[EN]Low,51)
RATING WMP | $cutLeft(%RATING WMP%,4)
%RATING WMP% | %RATING WMP% [%dummy%
POPULARIMETER | $replace(%energy%,[EN]High,255,[EN]Mid,153,[EN]Low,51)
POPULARIMETER | $cutLeft(%POPULARIMETER%,4)
%popularimeter% | %POPULARIMETER% [%dummy%