--requires a network cue numbered Ltime with the OSC message "/cue/selected/loadFileAt #/cue/Stime/notes#"
--requires the cue containing this script to be numbered Stime
tell application id "com.figure53.QLab.5" to tell front workspace
try
set theCue to last item of (selected as list)
set theMarkers to slice markers of theCue
set theSlice to text returned of (display dialog "Slice Number?" default answer "1")
set the notes of cue "Stime" to (time of item theSlice of theMarkers as text)
start cue "Ltime"
end try
end tell
Screen recording attached
Wow thank you so much! I will check both out.
Also when using finite loops, the resulting length is calculated and is to be used when using a load cue. So then it's a different time value from where I've put my slices and the only way I can find to get it, is by calculating it by hand.
I think you have missed the fact that 2 of my examples use the OSC/cue/{cue_number}/loadFileAt {number}
Yeah, it seems that doing infinite loops isn't the best practice, though I don't really understand why.