script to create tags with pre-defined text

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

Moderators: Peke, Gurus

kiwichick
Posts: 331
Joined: Tue Jul 21, 2009 6:35 am

script to create tags with pre-defined text

Post by kiwichick »

Hi there, For sorting and playlist purposes, I tag songs that were not released on albums with Album and AlbumArtist as "single" (without speech marks). Rather than batch-renaming the Album and AlbumArtist tags I would like a script where I can select all those songs, run the script and the tags will be filled with the word single. Any help is appreciated.
Lowlander
Posts: 56584
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: script to create tags with pre-defined text

Post by Lowlander »

Why not batch rename, seems much easier than using a script?
ZvezdanD
Posts: 3257
Joined: Thu Jun 08, 2006 7:40 pm

Re: script to create tags with pre-defined text

Post by ZvezdanD »

Lowlander wrote:Why not batch rename, seems much easier than using a script?
Maybe because with a script one could use keyboard shortcut or toolbar button, instead of to open the Properties dialog box, type "single" into wanted field, tick check box for batch, and click on OK?

RegExp Find and Replace add-on could do that, you could select tracks and just click on the toolbar button or press keyboard shortcut. You need to create preset for that just once and here are settings:
Preset: Assign "single" to Album
Shortcut: whatever, e.g. Shift+Ctrl+A
Toolbar button: checked
Find what: ^.*
Into: Album
Regular expression 1: checked
Replace with: single

Currently, with this add-on you cannot change two or more fields at once, but you could create two or more presets, one for each field.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
kiwichick
Posts: 331
Joined: Tue Jul 21, 2009 6:35 am

Re: script to create tags with pre-defined text

Post by kiwichick »

Lowlander wrote:Why not batch rename, seems much easier than using a script?
I don't see how. Selecting the tracks and pressing a button to fill the fields is far easier than selecting the tracks, selecting properties, entering single into the artist field, entering single into albumartist field and clicking ok.
ZvezdanD wrote:Maybe because with a script one could use keyboard shortcut or toolbar button, instead of to open the Properties dialog box, type "single" into wanted field, tick check box for batch, and click on OK?
Exactly!
ZvezdanD wrote:Currently, with this add-on you cannot change two or more fields at once.
And that is another reason for using a script. Thanks anyway ZvezdanD. I'll check out RegExp Find and Replace but maybe somebody else can give me the script.
Lowlander
Posts: 56584
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: script to create tags with pre-defined text

Post by Lowlander »

Okay
kiwichick
Posts: 331
Joined: Tue Jul 21, 2009 6:35 am

Re: script to create tags with pre-defined text

Post by kiwichick »

Lowlander, RegExp Find & Replace rocks!!! The best thing about it is being able to place a button the toolbar to execute the script. Would be just about perfect if it could do multiple changes - maybe in the future. Thanks so much!!!!
Post Reply