On 25 Oct 2012, at 15:05, Joey Buddenberg wrote:
> Hey all, hope you can help me out. I'm not so much into scripting. I need a script wich plays a certain cue and sets the playback position to the following cue. I found how to start a certain cue, not how to set the playback position to the following cue.
That's a very open question without revealing how you are identifying the "certain cue"; you kind of need to know that to know how to identify the following cue...
Nonetheless, here are two alternatives:
set userCueNumber to "10" -- Assuming you're identifying the cue to start by its Cue Number
tell application "QLab"
tell front workspace
-- Start the cue
set userCue to cue userCueNumber
start userCue
-- Move the playback position
set theCueList to parent of userCue -- Assume that the cue you are starting is in a cue list, and not inside a Group Cue
set playback position of theCueList to cue after userCue
load theCueList -- Load the new cue
end tell
end tell
Or:
set userCueNumber to "10" -- Assuming you're identifying the cue to start by its Cue Number
tell application "QLab"
tell front workspace
set userCue to cue userCueNumber
-- Move the playback position to the first cue
set theCueList to parent of userCue -- Assume that the cue you are starting is in a cue list, and not inside a Group Cue
set playback position of theCueList to cue after userCue
-- Start the cue list, which fires the first cue and stands by for the one after it…
start theCueList
end tell
end tell
You should be able to extrapolate from there to however you are defining your "certain" cue.
Rich