Welcome Guest

Pages: 1
Remove Artist inside Composer field
foxPostSeptember 29, 2025, 07:51
Newbie
Posts: 5
Registered:
May 29, 2025, 08:46
Normal topicRemove Artist inside Composer field

Hello,

I'd need an action that deletes Artist inside the Composer field.

I'll make an example to make it clear.

Let's say I have a Beatles album. The Composer field in some songs contains: 'The Beatles, John Lennon, Paul McCartney', in other songs is: 'John Lennon, Paul McCartney, The Beatles'

I want an action that removes 'The Beatles,·' and ',·The Beatles'.
At the same time, if Composer is 'John Lennon, The Beatles, Paul McCartney', I don't want both commas erased, otherwise it'll end up 'John LennonPaul McCartney'.

So far I made an incomplete action, as I can't find the correct function that removes only the Variable 0 inside the Composer field:

1: Force Grouped Execution
2: Copy the Artist field to Variable 0
3: Test if the Composer field contains Variable 0 case insensitive trim whitespace characters (Set test state)
4: if true
5: function needed to erase Variable 0 inside Composer field
6: endif

2MR2PostSeptember 29, 2025, 16:15
Avatar photo
Administrator
Posts: 2362
Registered:
August 23, 2012, 19:27
Normal topicRemove Artist inside Composer field

Yate is excellent at list manipulation. The Composer fields are lists delimited by comma space in your samples.

Determining which names are people and which are not (bands, etc.) is not possible without far more information. However, anything which starts with the is more than likely not a person's name. 🙂

A simple action to remove those items is only three action statements. However, anticipating issues with this simplistic approach, I've written a suite which enables far more capability. Four actions are provided, one of which is the simplistic implementation. This suite may eventually be generally released. The remainder add the ability to provide a list of names which should be removed. One of the actions lets you add items toi the list on the fly.

Download and install the file at:

https://2manyrobots.com/actions/User-Fox-RICF.zip

The actions all start with the name Remove Items from the Composer Field and will be in a folder of the same name. If you right click on any of the actions and select Resource Documentation, a web page with documentation will be displayed.

I've done only limited testing, so let me know if any issues arise. None of the actions save the files, so you can always revert if you don't like the results.

foxPostSeptember 30, 2025, 14:06
Newbie
Posts: 5
Registered:
May 29, 2025, 08:46
Normal topicRemove Artist inside Composer field

Now I feel sorry, I didn't mean to complicate things up. I thought it was a matter of "if Composer contain Artist, then remove Artist inside Composer field".

Huge thanks for taking the time to write a suite of 4 actions and relative documentation!

I've tried the Simple action and it works with 'The Beatles' example. But, as you said, it works only if there's the in Composer, like The Beatles, The Who etc..

The 'Train' action works great, because it lets me choose which one to erase. Unfortunately this one is not optimal for me, because when I modify in bulk multiple artists/albums it could mess things up, also I was looking for something automatic that could delete immediately, without the need of prompts or extra clicks.

I was thinking of an action that executes like in this example given. Artist is Tool; Composer contains various correct composers, while some songs contain Tool (Artist) which I want to remove:
Image

2MR2PostSeptember 30, 2025, 14:21
Avatar photo
Administrator
Posts: 2362
Registered:
August 23, 2012, 19:27
Normal topicRemove Artist inside Composer field

LOL!!!!!!!

Try this:

https://2manyrobots.com/actions/Remove-Artist-from-the-Composer-Field.zip

The action is named Remove Artist from the Composer Field

The read and write delimiters are comma space.

2MR2PostSeptember 30, 2025, 14:23
Avatar photo
Administrator
Posts: 2362
Registered:
August 23, 2012, 19:27
Normal topicRemove Artist inside Composer field

Oops the text in the previous post got mangled. I've edited it.

foxPostSeptember 30, 2025, 14:47
Newbie
Posts: 5
Registered:
May 29, 2025, 08:46
Normal topicRemove Artist inside Composer field

Works wonders! 😆

Thank you!

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