I think the 5 Band Example is fairly easy to adapt, and I've just checked it still workls in current versions of QLab 5.
Here are the important points
When cue "WRITE" is started, it creates a file on the desktop called showlogger if it doesn't yet exist and writes whatever is in its notes field at the time to the file.
When cue "CALC1" is started, it converts whatever number is in its notes field at the time to H: M:S and replaces the number in its notes field with the HMS string.
All the other cues are just concerned with putting the right information into those 2 cue's notes fields and then running those cues.
You can edit them to do whatever you want to do.
e.g cue LOGN just writes the Name of the QLab file to the notes of cue "WRITE" and starts it.
cue "LOG1S" gets the name of the first Band, but for general use you could just change the line to
set themessage to "Whatever label you want to attach to the current time"
When Cue "LOG1S" is started it writes the current time and themessage to the log
So if you wanted it to label the time it records as House Open you would set themessage to "House Open"
So you could delete all the BANDX cues at the top.
Your LOG cues could just be numbered LOG1, LOG2, LOG3 etc.
And you just edit those cues to
set mycue to whatever you have numbered the cue as.
set themessage to the label you want.
The Timeline group Just contains the Calculations you want to run. These are separated by 1 second prewaits in the example but the interval could be much smaller.
Again you could simplify the numbering to TIME1, TIME2, etc.
you would set mycue to whatever you have numbered the cue as.
mystring is just the label for the calculation e.g set myString to "Act 1 Running Time"
This is thecalculation you want to do and is set to subtract the notes of one of your log cues from the notes of an earlier log cue
So if cue "LOG5" was your End of Act One time and cue "LOG2" was your curtain up time you would:
set thesecs to (notes of cue "LOG5") - (notes of cue "LOG2")
You can have as many LOG cues and as many CALC cues as you want.
In this cue list:
cues LOG1 to LOG6 all have the same script
set mycue to "LOG1"
tell application id "com.figure53.QLab.5" to tell front workspace
set themessage to q list name of cue mycue
set notes of cue mycue to (do shell script "date +%s") as integer
set thedate to current date
set this_data to (thedate as string) & space & themessage & return
set the notes of cue "WRITE" to this_data
start cue "WRITE"
end tell
except for the first line that changes to contain each cue's cue number.
Cues TIME1 to TIME6 all have the same script
set mycue to "TIME1"
tell application id "com.figure53.QLab.5" to tell front workspace
try
set mystring to q list name of cue mycue
repeat while the length of mystring is less than 50
set mystring to " " & mystring
end repeat
set thesecs to (notes of cue "LOG4") - (notes of cue "LOG2")
set the notes of cue "CALC1" to thesecs
start cue "CALC1"
delay 0.2
set the notes of cue mycue to the notes of cue "CALC1"
set the notes of cue "WRITE" to return & mystring & ": " & notes of cue mycue & return
start cue "WRITE"
end try
end tell
except for the first line that changes to contain each cue's cue number.
Cues LOGN, CALC1 and WRITE are the same as in the current demo workspaces.
Universal example workspace attached
Mic