Page 1 of 1

script to create tags with pre-defined text

Posted: Thu May 20, 2010 8:14 pm
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.

Re: script to create tags with pre-defined text

Posted: Thu May 20, 2010 11:22 pm
by Lowlander
Why not batch rename, seems much easier than using a script?

Re: script to create tags with pre-defined text

Posted: Fri May 21, 2010 2:35 am
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.

Re: script to create tags with pre-defined text

Posted: Fri May 21, 2010 3:08 am
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.

Re: script to create tags with pre-defined text

Posted: Fri May 21, 2010 11:35 am
by Lowlander
Okay

Re: script to create tags with pre-defined text

Posted: Fri May 21, 2010 10:56 pm
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!!!!