I'd like to be able to create a Smartlist via the COM interface but I've hit some trouble.
In the documentation, it says:
string Get(string bstrProperty)
Description: lookup a property associated with a playlist
Parameters:
bstrProperty: the name of the property
Return Value: the value of the property for this playlist
Properties (not complete list):
Type: 0 = playlist, 1 = playlist group, 2 = smartlist, 3 = special (e.g. 'Current Playcharts')
Yeah, well... That's not too handy. I can make a new Playlist via the IMJPlaylistsAutomation interface, and then I can check the type, and change it, but I can't set it up fully as a Smartlist with only that information. So, I tried the "guessing" method. I connected to a known Smartlist in my Library, and did:
IMJPlaylistAutomation.Get("Search");
And, eureka, it spit out the Search for my Smartlist. So, I thought... Cool! Let's try.
(Make a new Playlist)
IMJPlaylistAutomation.Set("Type", "2");
IMJPlaylistAutomation.Set("Search", "my cool search");
But, alas... This was bad. Very bad, actually. MC, while running, didn't show my new Playlist at all. Then, when I exited MC and re-opened it, my Library was hosed (MC crashed on launch). I swapped out my playlists.jmd file in the Library for a backup and that saved me, but it didn't get me any closer to my goal.
So, I assume I need to set more Properties than just that. But I don't have a list. Any suggestions?