Tried using the Dynamic call to build the custom dictionary as shown by RedX. I get this error message:
Error #438 - Microsoft VBScripte runtime error
Object doesn't support this property or method
It then references the line number that has this code (line number varies but is between 30 and 40)
m_bojangles wrote:Tried using the Dynamic call to build the custom dictionary as shown by RedX. I get this error message:
Error #438 - Microsoft VBScripte runtime error
Object doesn't support this property or method
It then references the line number that has this code (line number varies but is between 30 and 40)
onkel_enno wrote:Here is a small script to edit the Custom Fields.
Create a File EditCustomX.vbs in the MM\Scripts\Auto Folder and paste the code from below!
It will create SubMenus in most Pop-Ups.
This example is for adding/removing the Language to the CustomField 2. (changeable in line 6)
When Changing the Constant OnlyOneSelection (line 7) to False, it is possible to Add more than One Language to one Song or, like in the Picture, more than one Keyword.
Customize it for your Needs!
Quick question.
How did you get it to display "keywords" and "language" in your menu and columns rather than "Custom 1" and so on?
...but I can't see how it would work. The "OpenSQL" call returns an SDBDatabaseIterator object and "dictCustomEntries" has been defined as a Scripting.Dictionary. You'll probably need to accept the iterator into a temporary object and iterate through adding each one to the dictionary one at a time.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
onkel_enno,
I see the title of this thread indicates this should work in MM3, but then I see you mention something not working in MM3. When you said something would not work in MM3, were you just referring to the dynamic list creation?
I'm eager to get this going in MM3, but I want to be careful that I don't blow anything up.
Can you confirm the basic script without the dynamic change works in MM3? Thanks!
Are you using a script to put the Tools menu item in there? I don't have that. So there may be an ordering issue with the this script that updates Custom fields and the script you're using to put Tools in the context menu.