You basically got it here:
so you want mareo to read an external TXT file, after being generated by an "encoder" run, and load the value to a "variable" that can then be used by the subsequent (mareo) "encoder" runs?
I want mareo to be able to load an external text file into a variable. That variable can then be used within any subsequent action lines - so when the action line is parsed the variable will be replaced by the text it contains.
In my first post I basically suggested three methods of loading a text file - but let's save some confusion and go with option (2.): Using an internal mareo function/method to load the text into the variable.
Let's say the path to MAREO is "C:\DOS\mareo.exe".
I have a file in the same folder ("C:\DOS") called "myfile.txt".
"myfile.txt" contains one line of text, "Hello World!".
If we do:
@variable1@ = LoadExternalText("@ownpath@\myfile.txt")
First, the line parses to:
@variable1@ = LoadExternalText("C:\DOS\myfile.txt")
... then the LoadExternalText function executes, and returns the text from the file "C:\DOS\myfile.txt" - "Hello World!".
@variable1@ now contains the text "Hello World!"
If we then do:
ape NONE NONE "@ownpath@\tag.exe" -t "COMMENT=@variable1@"
... the line will be parsed to become:
ape NONE NONE "C:\DOS\tag.exe" -t "COMMENT=Hello World!"
A real-world example using method (2.) would be:
; load text from file using mareo's internal 'LoadExternalText' function, and store it in @variable1@
@variable1@ = LoadExternalText("@ownpath@\CDImage.ape.cue")
; TAG.EXE Action Line using @variable1@
ape NONE NONE "@ownpath@\tag.exe" -t "CUESHEET=@variable1@"
I don't really think I can explain it any better.