set the endtimer to 10 --set how many seconds of end to play here
tell application id "com.figure53.QLab.4" to tell front workspace
try
set theselected to last item of (selected as list)
pause theselected
set theduration to duration of theselected
load theselected time theduration - endtimer
start theselected
end try
end tell
Mic
set the endtimer to 10 --set how many seconds of end to play here
tell application id "com.figure53.QLab.4" to tell front workspace
try
delay 0.1
set theselected to last item of (selected as list)
pause theselected
set theduration to (post wait of cue "last10" as string) - end timer --post wait time of cue "last10" is set with preceding network cue
set oscCmd to "/cue/selected/loadAt " & theduration
do shell script "echo " & oscCmd & " | nc -u -w 0 127.0.0.1 53535"
delay 0.1
start theselected
set the post wait of cue "last10" to 0
stop cue "last10"
end try
end tell