--To make pause cues from column A of an Excel spreadsheet
set numberOfCues to 150 -- number of cues to make from Excel spreadsheet
set theindex to 1 -- set to first row of spreadsheet with data
set thecueToPause to "1" -- MUST BE A STRING. Cue number for pause cues to target (usually group containing pause and other cues)
tell application id "com.figure53.QLab.4" to tell front workspace
repeat numberOfCues times
try
tell application "Microsoft Excel"
set thevalue to value of cell ("A" & theindex)
end tell
make type "Pause"
set thecue to last item of (selected as list)
set the pre wait of thecue to thevalue
set the cue target of thecue to cue thecueToPause
set theindex to theindex + 1
end try
end repeat
end tell
However, pausing and restarting a group containing cues with audio tracks, and cues with pre waits, like your lighting and pause cues hundreds of times may well be problematic. After 100 pauses and restarts of the group cue, you may find that the elapsed time of your video cue and the elapsed time of the group to be many, many seconds apart. Try it and see.
MIc