SwitchOrCopyFields: Switches or Copies song data fields

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: SwitchOrCopyFields: Switches or Copies song data fields

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Eyal » Wed Apr 22, 2020 12:45 am

Hello Jaye,

I think you missed the following two scripts: Utility_General.vbs and Utility_Controls.vbs
which are necessary for the script to run.
See first post of this thread for download instructions.

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Jaye_Glenn » Sun Apr 19, 2020 9:17 pm

Hello!

I've followed all instructions - downloaded the libraries, put them in the appropriate scripts folder, then created a .vbs (not txt) file out of the provided code. I then created the necessary code in the "scripts.ini" file, minus the ' symbols. Upon rebooting MediaMonkey, I got the "SwitchOrCopyFields" button.

But upon highlighting some songs and selecting the button, I get two errors in sequence:

Code: Select all

Error #13 - Microsoft VBSCript runtime error
Type mismatch: 'CreateDropDown'
File: "C:\Users\[User]\AppData\Roaming\MediaMonkey\Scripts\SwitchOrCopyFields.vbs", Line:75, Column: 2

Code: Select all

Error happened during script execution:
Type mismatch: 'CreateDropDown'
I tried fiddling a little with the line of code in question, but I'm way out of my depth here. Help or an update to the script would be much appreciated!

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Guest » Wed Aug 20, 2014 4:08 am

okay, maybe I should read the two other pages before asking a question. Stand by !
Typhoon

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Typhoon » Wed Aug 20, 2014 4:06 am

Hi !
I'm a new user of MM, and i'd like to use this script to copy the content of my "Mood" Field to the "Comments" field. I downloaded the three scripts (the main one and the two complimentary ones), and put them both in the "scripts" folder of MM, and in the "Auto" subfolder of the "Scripts folder". However, even while running MM as administrator, i am not able to see the scripts listed in tools > scripts. What did I do wrong ? Do I need to install something ? I apologise in advance if my question is stupid, I never (intentionnaly) tried to use a script.
Thanks for the help ! :)
Typhoon

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Steegy » Thu Mar 08, 2012 2:28 pm

Hey Phuggan, Sean,

If you save the script text into the SwitchOrCopyFields.vbs file, make sure that the file's extension is vbs and not txt (like SwitchOrCopyFields.vbs.txt).
By default Windows hides well-known extenstions like txt, so you might see only SwitchOrCopyFields.vbs even if the file's name is SwitchOrCopyFields.vbs.txt (check the file's properties to be sure, or show the extension using menu Tools > Options > Display tab > uncheck "Hide extensions for well-known file types", or something like that).
In Notepad, to prevent it from saving with extension txt, choose Save As "All Files (*.*)" in the Save As dialog, and as file name use SwitchOrCopyFields.vbs

BTW: as this is a very old script, there might be better alternatives to do the same job (for example ExtractFields or RegExp Find & Replace or ???).

Cheers,
Steegy

Re: SwitchOrCopyFields: Switches or Copies song data fields

by sean » Wed Mar 07, 2012 5:27 pm

So I am having trouble installing this.

I copied and pasted the code displayed in the first post of this thread into notepad, and saved it as SwitchOrCopyFields.vbs. I placed it in the scripts directory of MM. I also downloaded the Utility_Controls.vbs and Utility_General.vbs and put them in the scripts folder as well.

Is there something else I need to do? If I go to the Tools > Scripts menu, I don't see SwitchOrCopyFields.

What am I missing?? Is it perhaps not enough to simply copy and paste the code into notepad and save it as a vbs file? Am I supposed to download the actual file instead? If so, where is the link??

Re: SwitchOrCopyFields: Switches or Copies song data fields

by phuggan » Tue Mar 15, 2011 1:59 pm

Thanks for your response Eyal

Yes I do have that part of the script at the bottom of my script.ini file and the comment markers have been taken off. I am using latest version of mm.

Re: SwitchOrCopyFields

by Eyal » Tue Mar 15, 2011 12:35 am

phuggan wrote:End result is I am not seeing the new scripts show up in my MM listing.
I suspect missing info in Scripts.ini. Should add this code to the file:

Code: Select all

[SwitchOrCopyFields]
FileName=SwitchOrCopyFields.vbs
ProcName=SwitchOrCopyFields
Order=6
DisplayName=Switch Or Copy Fields
Description=Switch Or Copy Fields
Language=VBScript
ScriptType=0

SwitchOrCopyFields

by phuggan » Sun Mar 13, 2011 7:20 pm

Hopefully someone can assist me with this utility.

I am trying to get the SwitchOrCopyFields script to work without luck. I followed the instructions peovided by Steegy 6/11/2005 but no luck. This is what I have done.

Copied Utility_General.vbs and Utility_Controls.vbs to my scripts folder. Version used was per post by "nohitter151" on 10/8/2006

Copied and pasted first part of SwitchOrCopyFields script into my scripts.imi file, removed ' before lines and saved file

Lastly I copied entire script into notepad and saved file into my Scripts folder as SwitchOrCopyFields.vbs (note I deleted the first part of the script that was cut and pasted into my Script.ini file as did not see it as necessary given it was commented out anyway.

End result is I am not seeing the new scripts show up in my MM listing. Have played around with cutting and paste to vbs scipt without any sucess. Have I missed a step here or done something wrong. Any guidance greatly appreciated.

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Emrik » Sun Dec 06, 2009 4:57 pm

ok great thank you very much, it worked perfectly for me now. It was too complicated for my small brain...

just a small bug i've noticed, the script could stop if you auto-type the field name instead of selecting it in the drop list. for instance "comment" instead of "Comment" so the best is just to select from the drop list and not via auto-typing solution and it works like a charm !

Thanks again.

Re: SwitchOrCopyFields: Switches or Copies song data fields

by nohitter151 » Sat Dec 05, 2009 10:24 pm

Emrik wrote:thanks a lot nohitter151, now i've learnt something :-).

unfortunately, i don't see the script in the option ( i've closed & re opened MM3) , same for the folder RegExpReplace which i have also now in my script folder.

any actions i've missed ?
There are some lines at the top of the vbs file that you made that you need to copy into the scripts.ini file in the MediaMonkey\Scripts\ folder.

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Emrik » Sat Dec 05, 2009 6:36 pm

thanks a lot nohitter151, now i've learnt something :-).

unfortunately, i don't see the script in the option ( i've closed & re opened MM3) , same for the folder RegExpReplace which i have also now in my script folder.

any actions i've missed ?

Re: SwitchOrCopyFields: Switches or Copies song data fields

by nohitter151 » Sat Dec 05, 2009 6:04 pm

Emrik wrote:sorry to be so stupid but i don't understand how to download the script "SwitchOrCopyFields.vbs" i can copy/paste the code but what should i do with it then ? i have already downloaded the 2 control & general script, that was the easy part for me, but now ?

thanks for your help and patience
Paste it into notepad and save it as "SwitchOrCopyFields.vbs" in the C:\Program Files\Mediamonkey\Scripts\ folder.

Re: SwitchOrCopyFields: Switches or Copies song data fields

by Emrik » Sat Dec 05, 2009 6:01 pm

sorry to be so stupid but i don't understand how to download the script "SwitchOrCopyFields.vbs" i can copy/paste the code but what should i do with it then ? i have already downloaded the 2 control & general script, that was the easy part for me, but now ?

thanks for your help and patience

Re: SwitchOrCopyFields: Switches or Copies song data fields

by nohitter151 » Fri Oct 23, 2009 9:33 am

First post wrote:INSTALL:
' - Copy script to MediaMonkey's "Scripts" folder and add the following in the
' file Scripts\Scripts.ini (remove the ' in front)
'
'[SwitchOrCopyFields]
'FileName=SwitchOrCopyFields.vbs
'ProcName=SwitchOrCopyFields
'Order=6
'DisplayName=Switch Or Copy Fields
'Description=Switch Or Copy Fields
'Language=VBScript
'ScriptType=0

Top