I have also implemented a couple of Database Triggers which automatically updates the selected field when you add/delete tracks to a playlist or if you create, delete or renames Playlists. It also gets rewritten if you change the field directly in the Main Window.
You activate the script in the settings:
If you have MM 3.1 you can right click on the Playlist node, if not go to "Tools->Options->Library->Playlist in Main Window"

Here's how it looks in the main window, I've used Custom1 as the field:

There are some things which aren't optimal:
- It only works for static Playlists
- To see made changes in a playlist in the Main Window. You need to select another node and then go back to the node you were in. You can try to press F5 but it doesn't always work.
- The field you have selected to see the Playlist Name in is actually written to the tag of the file. However, the script doesn't automatically write the values to the tag when you activate the script. But after the script is activated and you change something in the track properties, the value is written to the tag. (Normal MM behaviour.)
- If you don't want to use the script after you have activated it. You must uninstall it from within MM and then restart MM. You can't just delete the .vbs file since it will still leave the Database Triggers in the Database.
- If you uninstall it you also need to manually delete the values in the selected field.
- I also got some strange errors when I developed the script. They all seem to be gone now. But for good practice, please back up your database and let me know if you get anyone of those strange errors while using the script.
Other than that I hope you'll like the script. It was a bit difficult to get everything to work correctly, especially with the Database Triggers.
Special thanks goes to Nyn who has helped a lot in testing the script!
As usual. Comments, bug reports and suggestions are welcome!
Enjoy!
/Bex
___________________________________________________________
Ver 1.1 (2009-06-18)
- Added possibility to add Count of Playlists to the field
___________________________________________________________
Download:
Latest version:
Note! You must have MM 3.0.6.1190 are later to use this script!
You might need to download from the Beta forum to get the required version.
MM3 (Installer)
Playlist in Main Window 1.1
Previous version (in case a recent script update by me is malfunctioning:
Playlist in Main Window 1.0
Installation Instructions:
- New Install or upgrade:
MM3 (Installer)
Avoid "Product installation error"
- Vista Users:
- - To be able to install scripts you must Run MM as an administrator.
- - It means that you must right click the MM icon and select "Run as administrator" even if you are logged in as an administrator.
- All Users:
- - Check in your task manager that you only have one instance of MediaMonkey.exe running.
1. Download the .mmip file and run it.
2. Restart MediaMonkey if needed
3. Go to the settings. (If you have MM 3.1 you can right click on the Playlist node, if not go to "Tools->Options->Library->Playlist in Main Window")
4. Select a field and activate the script.
5. Once activated you can right click on the playlist node and rebuild the Playlists in the Main Window if needed.

