Welcome Guest

Pages: 1
Copy and Add Field instead of Replacing?
eclecticaudioPostMay 10, 2015, 18:53
Newbie
Posts: 3
Registered:
May 10, 2015, 22:41
Normal topicCopy and Add Field instead of Replacing?

Greetings!

Been using Yate for a few months, and it has been supremely helpful. About 15,000 tags down, lots more to go. However, when I started out, I was using the Mood tag to list subgenres, in the event I ever found a good player that would recognize multiple genres. Now that I have found that (Swinsian), I want to batch move all the Mood tags to Genre without replacing the current Genre, and adding a comma after the existing Genre tag.

Is this possible?

Example:

CURRENT:
Genre: Rock
Mood: Psych-Rock, Prog-Rock

TO THIS:
Genre: Rock, Psych-Rock, Prog-Rock

Sincerest thanks.

P.S. I have looked everywhere for an official documentation with instructions so I could try to figure this out myself. Does this exist?

2MR2PostMay 10, 2015, 19:12
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicRe: Copy and Add Field instead of Replacing?

Try this:

Add "\[Mood]" to the end of the list in field Genre delimiter ", "
Clear the Mood field

The first statement is an Add List statement. Add List is a great method of appending two fields any of which can be empty. If you only have a Genre or Mood, but not both, you won't get the comma separator.

The action will work when run interactively or in the batch processor. It does not do the Save, so if running batched, specify the Save option.

WARNING: The auto mailer seems to strip out backslashes. You must have a backslash before [Mood] in the first statement.

Sorry no documentation except for the online help and the various sample actions on the site.

eclecticaudioPostMay 11, 2015, 01:21
Newbie
Posts: 3
Registered:
May 10, 2015, 22:41
Normal topicRe: Copy and Add Field instead of Replacing?

Thank you.

I tried this.

It added the comma, cleared the Mood field, but only added \[Mood] instead of the contents of the Mood field.

eclecticaudioPostMay 11, 2015, 01:38
Newbie
Posts: 3
Registered:
May 10, 2015, 22:41
Normal topicRe: Copy and Add Field instead of Replacing?

So, not sure why your suggestion didn't work, but I accomplished what I wanted. Here is how:

Insert "," at index 0 from the end in field Genre
Append the Mood field to the Genre field

2MR2PostMay 11, 2015, 04:22
Avatar photo
Administrator
Posts: 2364
Registered:
August 23, 2012, 19:27
Normal topicRe: Copy and Add Field instead of Replacing?

What you've done will work unless one of the two fields is empty in which case you'll have an extra comma.

For my example. somehow the escape sequence is being entered incorrectly. In the Add List statement, specify the Mood field by right clicking in the Add text field and selecting 'Insert Yate Field>Mood'. This should work unless you're running an older version of Yate. The field escape sequences were introduced in v3.4.

There are lots of ways to do things in Yate. 🙂 If you're not worried about empty fields you can even combine both statements into one.

Append ", " and the Mood field to the Genre field

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.098 seconds.