script to create tags with pre-defined text

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

script to create tags with pre-defined text

Post by kiwichick » Thu May 20, 2010 8:14 pm

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: 46678
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: script to create tags with pre-defined text

Post by Lowlander » Thu May 20, 2010 11:22 pm

Why not batch rename, seems much easier than using a script?
Lowlander (MediaMonkey user since 2003)

ZvezdanD
Posts: 3098
Joined: Thu Jun 08, 2006 7:40 pm

Re: script to create tags with pre-defined text

Post by ZvezdanD » Fri May 21, 2010 2:35 am

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.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

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

Re: script to create tags with pre-defined text

Post by kiwichick » Fri May 21, 2010 3:08 am

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: 46678
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: script to create tags with pre-defined text

Post by Lowlander » Fri May 21, 2010 11:35 am

Okay
Lowlander (MediaMonkey user since 2003)

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

Re: script to create tags with pre-defined text

Post by kiwichick » Fri May 21, 2010 10:56 pm

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