-- Shuffle the cues in a specific Group Cue and set them to play consecutively (you should turn this into a Script Cue)
tell application "QLab"
set userGroupCueNumber to "1" -- Change this to the q number of the Group Cue
set userOverlap to -1 -- Use this variable to define how long before the end of a cue the next one should start (eg: "-1" will give a 1s overlap)
tell front workspace
set theGroupCue to cue userGroupCueNumber
set countCues to count cues of theGroupCue
repeat countCues times -- This won't always move every cue, but should move sufficient to randomise the order
set eachCueID to uniqueID of some item of items 1 thru -1 of (cues of theGroupCue as list) -- Trying to move the last cue to the end will result in a non-functional copy of it
move cue id eachCueID of theGroupCue to end of theGroupCue
end repeat
set shuffledCues to cues of theGroupCue
repeat with i from 1 to countCues
set eachCue to item i of shuffledCues
if i is not countCues then
set post wait of eachCue to (duration of eachCue) + userOverlap
set continue mode of eachCue to auto_continue
else
set post wait of eachCue to 0
set continue mode of eachCue to do_not_continue
end if
end repeat
end tell
end tell
--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Here's the solution I found for this problem which may come in handy for someone else. A simple Applescript that is set up in Automator with a link to Calendar Events, meaning that when the time and date correspond to the Calendar Event the Applescript runs and starts up a random track with the specified playlist group.
--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<automator.jpg><Qlab window.jpg><calendar.jpg>