What's the OSC interface for the device you're looking to query?
I suppose if you could listen on a port and dump the translated OSC messages into a log as raw text you could construct the precise parsing form you need in AppleScript. Hmm, I wonder if there’s a way of reading the OSC input log file on the fly? Can Osculator do something like this: pass the raw text over to QLab?
Thanks
Wayde
q_num (text) : The QLab cue number, for QLab type messages.q_command (number) : The QLab OSC command, for QLab type messages.q_params (text) : The QLab command parameters, for QLab type messages. Not all messages have parameters.
set translation103_q_command to {1, "start", 2, "stop", 3, "hardStop", 4, "pause", 5, "resume", 6, "togglePause", 7, "load", 8, "preview", 9, "reset", ¬10, "panic", 11, "number", 12, "name", 13, "notes", 14, "cueTargetNumber", 15, "preWait", 16, "duration", 17, "postWait", 18, "continueMode", ¬19, "flagged", 20, "armed", 21, "colorName"}
set actorcount to 2
tell application id "com.figure53.QLab.4" to tell front workspace
repeat with i from 1 to actorcount
make type "Network"
set newCue to last item of (selected as list)
set patch of newCue to 2
set osc message type of newCue to custom
set custom message of newCue to "/dbaudio1/coordinatemapping/source_position_xy/1/" & (i as string) & " " & translation x of cue ("Actor" & (i as string)) & " " & translation y of cue ("Actor" & (i as string))
set the q number of newCue to "temp" & (i as string)
end repeat
make type "Group" -- Cue numbers not altered from QLab defaults
set groupCue to last item of (selected as list)
set mode of groupCue to fire_all
set q name of groupCue to "DS100 Scene "
set tempcues to every cue whose q number contains ("temp" as list)
repeat with eachCue in tempcues
move cue id (uniqueID of eachCue) of parent of eachCue to end of groupCue
set q number of eachCue to ""
end repeat
end tell