SwitchOrCopyFields: Switches or Copies song data fields

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderatori: Peke, Gurus

phuggan
Messaggi: 4
Iscritto il: mar ott 13, 2009 4:42 am

Re: SwitchOrCopyFields: Switches or Copies song data fields

Messaggio da phuggan »

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.
sean
Messaggi: 93
Iscritto il: gio nov 03, 2011 10:29 am

Re: SwitchOrCopyFields: Switches or Copies song data fields

Messaggio da sean »

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??
Immagine
Steegy
Messaggi: 3452
Iscritto il: sab nov 05, 2005 7:17 pm

Re: SwitchOrCopyFields: Switches or Copies song data fields

Messaggio da Steegy »

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
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Typhoon

Re: SwitchOrCopyFields: Switches or Copies song data fields

Messaggio da Typhoon »

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
Ospite

Re: SwitchOrCopyFields: Switches or Copies song data fields

Messaggio da Ospite »

okay, maybe I should read the two other pages before asking a question. Stand by !
Typhoon
Jaye_Glenn
Messaggi: 1
Iscritto il: dom apr 19, 2020 9:04 pm

Re: SwitchOrCopyFields: Switches or Copies song data fields

Messaggio da Jaye_Glenn »

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:

Codice: Seleziona tutto

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

Codice: Seleziona tutto

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!
Eyal
Messaggi: 3128
Iscritto il: dom giu 26, 2005 9:27 am

Re: SwitchOrCopyFields: Switches or Copies song data fields

Messaggio da Eyal »

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.
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
NinjaProof
Messaggi: 6
Iscritto il: mer set 17, 2008 3:22 am

Re: (decades later...)

Messaggio da NinjaProof »

grayflannelsuit ha scritto: mar apr 15, 2008 9:28 am Great script! One small problem though - if I copy from Year to OriginalYear and the Year field has a date like 8/8/78, only the four-digit year gets copied.
In case this helps anyone, I had the same issue trying to get a simple script working but was able to track down why this happens. The Date field is comprised of Year, Month, and Day, so if you copy from Year to OriginalYear, the Month and Day values aren't copied. If you want a full date copied over from Date to Original Date, then you just have to copy all three string values starting with Year to OriginalYear, then Month to OriginalMonth and Day to OriginalDay.

https://www.mediamonkey.com/wiki/ISDBSo ... iginalYear
Rispondi