Hi Sam,
Thank you for the response!
This has fixed the network patch issue I was getting with the scripts as they were previously! The second script has mysteriously stopped working, but I cross-checked it with the same script in QLab 4 and the same result – no errors, no warnings, just simply not making an OSC cue
I did however modify the first script to achieve the same thing (just by changing the patch number), but I am struggling with the syntax to get the cue number into the OSC cue (an issue I'm also having with the video cue creation script)
Here's what the video script looks like now:
tell application "QLab" to tell front workspace
set vidCueNo to the text returned of (display dialog "Video cue number please if you wouldnt mind" default answer "")
if vidCueNo is "" then return
make type "network"
set theNewCue to last item of (selected as list)
set network patch number of theNewCue to 5
>>> set cue number of theNewCue to vidCueNo <<< (This line returns a message saying "ERROR: QLab got an error: Can't make number go into type integer. (-1700)")
set q color of theNewCue to "cerulean"
end tell
The resultant cue also has a Workspace type rather than a Cues type but I'm not sure I know the command to change that when making a new cue
And here is what the LX script looks like now:
tell application "QLab" to tell front workspace
set lxCueNo to the text returned of (display dialog "LX cue number please" default answer "")
if lxCueNo is "" then return
make type "network"
set theNewCue to last item of (selected as list)
set network patch number of theNewCue to 4
set q color of theNewCue to "Purple"
set cue number of theNewCue to lxCueNo
end tell
I am experiencing the same problem and the same error as above, but strangely the cue created has a QLab (Workspace) message type instead of an ETC Eos Family type (even though the patch is set to ETC Eos Family)
Thanks again for the help!