Welcome Guest

Pages: 1
Find and delete duplicates in Composer field
foxPostApril 22, 2026, 07:30
Newbie
Posts: 7
Registered:
May 29, 2025, 08:46
Normal topicFind and delete duplicates in Composer field

Hi,

Sometimes I come across duplicate composer names in the Composer field.

Let's say I have a Composer list like this in one song:

Arthur Joy, Paul Grant, Joel Kelly, Dennis King, Joel Kelly, Johnny Lamb, Paul Grant

What I'd like to achieve is to delete the last instances of Paul Grant and Joel Kelly and have this result:

Arthur Joy, Paul Grant, Joel Kelly, Dennis King, Johnny Lamb

Delimiter is: ", "

I've tried without success to set an action with "List manipulate find duplicates".

Is there a solution?

2MR2PostApril 22, 2026, 08:37
Avatar photo
Administrator
Posts: 2443
Registered:
August 23, 2012, 19:27
Normal topicFind and delete duplicates in Composer field

When you build a list, duplicates are typically removed. (In some cases it depends on the statement's options).

The List Manipulate statement has a Set function which basically rebuilds each list, removing duplicates and preserving the order.

Download: https://2manyrobots.com/actions/Remove-Duplicates-from-Composer.zip

The zip contains an action named Remove Duplicates from Composer

The function has three statements.

-----
Copy the Composer field to Variable 0
List Manipulate save each unique case insensitive item in 'Variable 0'(, ) to 'Variable 0'(, )
Copy the Variable 0 field to the Composer field
-----

The first statement copies Composer (for every file) to the Variable 0 field.
The 2nd statement is a List Manipulate statement. It uses a Set function (see the screenshot) to rebuild the lists stored in each Variable 0.
The 3rd statement copies Variable 0 back into Composer.

I've made the operation case insensitive. You can make it case sensitive by unchecking at the red arrow,

I've made the source and result delimiters comma-space. You can make this a little more forgiving if you wish by making the source delimiter simply a comma. Blue arrow.

Image

foxPostApril 22, 2026, 12:04
Newbie
Posts: 7
Registered:
May 29, 2025, 08:46
Normal topicFind and delete duplicates in Composer field

Unfortunately when I drag the action into Yate it says:
Remove-Duplicates-from-Composer.plist was created by version 9.1 build 12662(12644) of Yate which is newer than the current version 9.0.0.1 build 12643(12478).

In any case I was able to recreate the action easily thanks to your suggestion, what I was missing was set as a Function.

It works flawlessy, as always thank you 🙂

2MR2PostApril 22, 2026, 12:10
Avatar photo
Administrator
Posts: 2443
Registered:
August 23, 2012, 19:27
Normal topicFind and delete duplicates in Composer field

Sorry about that. I'm working on v9.1 and I forgot to downgrade the action for exporting. I'm glad you got it working.

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