SwitchOrCopyFields: Switches or Copies song data fields

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[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

Post 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

Post 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

Post 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

Post 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

Post 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

Post 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

Post 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

Post 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

Post 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

Post 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

Post 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

Re: SwitchOrCopyFields: Switches or Copies song data fields

Post by BMD85 » Fri Oct 23, 2009 12:27 am

ok figured it out but how dio I change which fields it is going to swap or copy ect. I can only find it in the tools>scritts>swap title and artist (with no options)

Re: SwitchOrCopyFields: Switches or Copies song data fields

Post by BMD85 » Fri Oct 23, 2009 12:10 am

I dont understand where or hoiw I am suposed to save the SwitchOrCopyFields.vbs file?

Re: SwitchOrCopyFields: Switches or Copies song data fields

Post by steviegt » Thu Mar 19, 2009 1:55 pm

Looks like an old issue. It's happening to me. I didn't see a fix or resolution. Is there one?

(Below is copied & pasted from a previous post)

I'm consistently getting an access error when using this script.

"Access violation at address 41F9E400. Write of address 41F9E400."

I do not get the error right away. It only occurs when I close MM and I have used the script at some point during that session. The title bar of the error window always shows whatever song happens to be current in Now Playing. If Now Playing is clear, the error still occurs and the title bar is empty. The error is always at the same memory address.
Any ideas?

Re: SwitchOrCopyFields: Switches or Copies song data fields

Post by nethog » Sat Nov 01, 2008 7:23 am

I'm consistently getting an access error when using this script.

"Access violation at address 41F9E400. Write of address 41F9E400."

I do not get the error right away. It only occurs when I close MM and I have used the script at some point during that session. The title bar of the error window always shows whatever song happens to be current in Now Playing. If Now Playing is clear, the error still occurs and the title bar is empty. The error is always at the same memory address. After the error occurs, I then have to kill the left over process in Windows Task Manager.

I've uninstalled ALL scripts but this one (and the 2 utility scripts it relies on) and the error still occurs. Currently using MM 3.0.4.1185

Any ideas?

Top