tell application id "com.figure53.QLab.5" to tell front workspace
set theTT to slice markers of cue "1"
set theInterval to 1 --interval between markers in seconds
set theCue to cue "1" --target cue
set theNumber to q number of theCue
set theDuration to the duration of theCue
set theTime to theInterval
repeat while theTime is less than theDuration
set oscCmd to "/cue/" & theNumber & "/addSliceMarker " & (theTime as string)
do shell script "echo " & oscCmd & " | nc -u -w 0 127.0.0.1 53535"
set theTime to theTime + theInterval
delay 0.1
end repeat
end tell