I have a fair few classical flac files from the Classical mega box sets, and a fair number are titled as follows (%track%: %title%):
5: Op.4 No.1 in G minor, HWV 289: I. Larghetto e staccato
6: II. Allegro
7: III. Adagio - Andante
8: Op.4 No.2 in B flat major, HWV 290: I. A tempo ordinario e staccato - Allegro
etc.
What I'd like is the following:
5: I. Larghetto e staccato || Op.4 No.1 in G minor, HWV 289
6: II. Allegro || Op.4 No.1 in G minor, HWV 289
7: III. Adagio - Andante || Op.4 No.1 in G minor, HWV 289
8: I. A tempo ordinario e staccato - Allegro || Op.4 No.2 in B flat major, HWV 290
Where %track%: %title% || %album%.
The problem here is that I'm carrying over information from the previous track. I was wondering if there was any way to do this?
Initially I thought, as the sequence of operations is guaranteed, a global variable like an environmental variable, would work, but I can't find a way of setting it, only getting it.
MP3tag does not save or compare data from one file to another.
So any information that should be rearranged must be "visible" from the current file.
If you want to treat files, then do not use the filename as information storage but the metadata tags.
If you want to append a field like TITLE that has varying contents with a constant string, see the FAQs:
To clarify none of this was in the filename. I was just trying to represent the columns of %track%, %title% and %album%, which I clearly didn't do very well! In the first example all of the albums are blank and the title of track 5 is "Op.4 No.1 in G minor, HWV 289: I. Larghetto e staccato", whereas the title of track 6 is "II. Allegro".
What I want to be able to do is to select a bunch of tracks (in the correct sequence) and apply an Action to each title, if the title matches %piecename%: %movementname%, then set a global variable (say %_globalvar%) to %piecename%, then set %album% to %_globalvar% and %title% to %movementname%. If on the other hand the title matches just %movementname%, well as it is in sequence then the %album% must be set to %_globalvar% and %title% set to %movementname%. So if we have the ability to use a %_globalvar% like for instance the environmental variables, I would be able to do this, as long as I can both set and get them. I know I can get environmental variables, but I don't know if I can set them.
If you have files of an album (and only these) grouped together in a folder, then you can use the folder name to fill the album with Convert>Filename-Tag
Mask: %album%\%dummy%
If the folder has a different name, then you could use the data from a file that already has the correct data in ALBUM and rename the folder and then apply that folder name to all the files' ALBUM in the folder.