cue cart edit

115 views
Skip to first unread message

Kalman Tarr

unread,
Jan 23, 2025, 4:27:00 AM1/23/25
to QLab
Hi pros,
I faced to a problem yesterday. I had to create 'cue cart' using applescript. I show you my starting situation. After this I tried to set some properties. Grid's size basically. This is the first point I stoped.
When I compile the script gives me error maessage.

tell application id "com.figure53.QLab.5" to tell front workspace

make type "cue cart"

set newCart to last cue list

tell newCart

set q name to "filatelia"

set properties of cart position to {row:3, column:3}

--set row of cart position to 3

--set column of cart position to 3

end tell

end tell


--error "QLab got an error: Can’t make properties of cart position of cue id \"1141F346-F380-4DD4-8F37-8A100FFEA7A8\" of workspace \"Untitled Workspace\" into type specifier." number -1700 from properties of cart position of cue id "1141F346-F380-4DD4-8F37-8A100FFEA7A8" of workspace "Untitled Workspace" to specifier



Sintacticaly looks perfect according to the script editor. But in run time the next error occured.
I tried to complie commands in the comments too in tell block (set row of cart position to 3). It is unseccessful too. 
Any help?
In summary, how to edit the properties of 'cue cart' type cue list.
Thanks in advance.
Kalman

Rich Walsh

unread,
Jan 23, 2025, 5:28:18 AM1/23/25
to ql...@googlegroups.com
Did you try looking in the AppleScript dictionary? Carts are thoroughly non-scriptable and “cart position” is a read-only property of Cues (not Cue Lists):


The word “cart" appears 8 times on that webpage, and only 5 times in the sdef file – 4 of those in the information about the “cart position” property.

Also, the form “set properties of <a property>” is never going to work; “set properties of <an object>” might occasionally work, but more likely “set <a property> of properties of <an object>”. If you try to get the properties of a Cue Cart you’ll see it has no AS properties to get or set anyway…

Just because code will compile in Script Editor it does not mean it will work! This will compile, but it will throw an error:

set mouse's name to "Gerald"


Rich

Kalman Tarr

unread,
Jan 23, 2025, 6:12:00 AM1/23/25
to QLab
Thanks Rich,
Meanwhile I realized what a stupid question I asked, the cart position is really read only.
According to this, you can only set the cart dimensions (column, row) on the Qlab interface.
I've already looked at the apple script dictionary, there really aren't many references to programming the cart.
Interesting, but this is it.
Thank you again Rich for the reply.

Best,
Kalman

Rich Walsh

unread,
Jan 23, 2025, 6:22:38 AM1/23/25
to ql...@googlegroups.com
That means that you can’t do it, not that it’s undocumented. The sdef file is literally the thing that tells AS how to work with an application.

Rich

Kalman Tarr

unread,
Jan 23, 2025, 10:13:51 AM1/23/25
to QLab
Rich,
I don't want to be pushy but I'll tell you why I'm interested.
My goal is to assign the audio cues of the main cue list to the elements of a cue cart. There can be up to 8 - 12 audio cues on the main cue list. I would like to start playback from individual elements of the cue cart. I know it can be solved manually. But I would like to solve it using a script.
Any suggestions pls...

Best,
Kalman

Paul

unread,
Jan 26, 2025, 9:40:56 AM1/26/25
to QLab
You can make Start cues for all the audio cues in your workspace with a script like this

-- make start cues for audio cues in cue cart

tell application id "com.figure53.QLab.5" to tell front workspace

set myCueListName to "Cue Cart"

set MyCueList to first cue list whose q name is myCueListName

set current cue list to MyCueList

repeat with audiocue in (every cue whose q type is "Audio")

make type "Start"

set startcue to last item of (selected as list)

set cue target of startcue to audiocue

end repeat

end tell



Kalman Tarr

unread,
Jan 26, 2025, 1:34:58 PM1/26/25
to QLab
Thanks Paul,
But it's not quite what I expect
I can't set the grid size parameters with this.
But I think there is a solution, using UI BROWSER.
Thanks again.

Best,

Kalman
Reply all
Reply to author
Forward
0 new messages