-- prefix the q name with a prefix string and copy the new name to the notes of all cues in the current cue list
set thePrefix to "Modified " --Text to Prefix cue names with
tell application id "com.figure53.QLab.5" to tell front workspace
set theList to {}
set theCues to cues of current cue list
repeat with eachcue in theCues
set the q name of eachcue to (thePrefix & the q list name of eachcue)
set the notes of eachcue to the q list name of eachcue
end repeat
end tell
Mic
I don't know of a way to preserve the font styles when setting the notes of a cue by AppleScript or OSC.
Because of the way rich text styling works in macOS, the only way to preserve styling is to programmatically copy the style then reapply it after replacing the text, or leave some of the original text in place which will dictate the style of the new text.
tell application id "com.figure53.QLab.5" to tell front workspace
go
set theNext to last item of (selected as list)
set theText to "Cue: " & q number of theNext & return & q list name of theNext
set the text of cue "INFO" to theText
end tell
You can also the same for up and down
tell application id "com.figure53.QLab.5" to tell front workspace
movePlayheadUpASequence
set theNext to last item of (selected as list)
set theText to "Cue: " & q number of theNext & return & q list name of theNext
set the text of cue "INFO" to theText
end tell
tell application id "com.figure53.QLab.5" to tell front workspace
movePlayheadDownASequence
set theNext to last item of (selected as list)
set theText to "Cue: " & q number of theNext & return & q list name of theNext
set the text of cue "INFO" to theText
end tell

Because of the way rich text styling works in macOS, the only way to preserve styling is to programmatically copy the style then reapply it after replacing the text, or leave some of the original text in place which will dictate the style of the new text.
Can you give a practical example of how you might do that?
I believe I am mistaken in fact… the text style of the text in the notes field does not appear to be scriptable at all.
On Monday, April 24, 2023 at 5:11:52 PM UTC+1 fg wrote:yes that's right. Read it from the stage