Format Value (Calculation Across Selected Files)

I have a field called "Explicit Score" this is a 3 digit numerical value that is calculated based on the number of choice words found in the lyrics of any given track.

I'd like to be able to select the tracks of an album & add up the explicit scores from each selected track & place that total value into %Description% for each track.

Not sure where to begin with this one, any suggestions?

I would think that a look at the scripting functions is a good first step:

and if that does not bring you any further, then

esp. the part about screenshots and examples.

Unfortunately my laptop is currently out of commission for a bit so im unable to send screenshots but in my case I have 3 files for example

Title1 - Artist1
Explicit Score 35

Title2 - Artist2
Explicit Score 10

Title3 - Artist3
Explicit Score 12

I'd like to select all 3 files & calculate the total "score" for these 3 files

So in this case 35+10+12 = 57

On each of these files id like to add the value 57 to a field "Description" on each file respectively.

As far as i know scripting in mp3tag is per file so I wasnt sure it was possible to use arithmetic scripting across multiple files besides using a placeholder such as %_total_files% which can give you a number based on how many files are currently selected.

The values im trying to sum are the same tag field but on different tracks

You are quite right: MP3tag does not compare or remember the data from different files.
The only way would be an export script that sums up the value into a text file from where you can import it.

E.g. here is an export script that calculates an average:

So, if you leave out the division at the end, you should get what you want.

Hmmm ok. I think my workaround (due to my lack of scripting writing knowledge) would be an action that exports just the Scores to a text document

Score1,Score2,Score3

Then i could import that text file to all the selected files & the info could go to a throw away field %BIN%

I could use guess to populate a number of extra throw away fields as needed depending on the number of "," present in %BIN% in this case there are 2 "," present therefore we have 3 scores.

My guess would be %BIN1%,%BIN2%,%BIN3%

Then using arithmetic scripting add BIN1-BIN3

I think that might do it again no computer so id have to test it another time but does that sound feasible?

There are so many ways to skin a cat.
If you find a working method then that is the way to go.

Very true I'll try both methods & whichever one doesnt drive me insane is what ill go with. Thanks again