Guys, hi, can you help me? I have a button with this function:
function(){fb.RunContextCommand('Tagging/Get tags from MusicBrainz (by artist & album)')});
however it doesn't work on selected items, only on now playing single item. How do I make it work with selection?
You'll need to use fb.RunContextCommandWithMetadb. You can pass it a handle list like this for selected playlist items
var items = plman.GetPlaylistSelectedItems(plman.ActivePlaylist);
fb.RunContextCommandWithMetadb('Tagging/Get tags from MusicBrainz (by artist & album)', items);
Thank you! But for me items variable only updates when I save the Jscript code, so properties window opens for items that were selected when I saved the script. Can you help me make it update "in real time"?
My button code is if (bbtn3_b) Buttons.bottom3 = new Button(ww / 2 - 87, 90, 58, 14, b, function(){fb.RunContextCommandWithMetadb('Tagging/Get tags from MusicBrainz (by artist & album)', items);});