QLab scripts

390 views
Skip to first unread message

OLIVIER OLRY

unread,
Jul 25, 2022, 9:23:21 AM7/25/22
to ql...@googlegroups.com
Hi there,
I’m looking for a script to refold all my Group Cues, as a Pre-Show Cue, and also a script that permit me to close all Finder windows opened…
Is there scripts to do this ?
Thank you for all the help you would give me


Olivier Olry

micpool

unread,
Jul 25, 2022, 10:17:30 AM7/25/22
to QLab
tell application "Finder" to close every window
tell application id "com.figure53.QLab.4" to tell front workspace
    set thegroups to cues whose q type is "group"
    repeat with eachcue in thegroups
        collapse eachcue
    end repeat
end tell

Kalman Tarr

unread,
Jul 25, 2022, 12:05:02 PM7/25/22
to ql...@googlegroups.com
Hi, there is a keyboard short cut doin' the same, collapse all groups. Or expand all if you want.
Kalman

--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/157f3e09-2383-4d21-9d11-4233862a1ab2n%40googlegroups.com.

Taylor Glad

unread,
Jul 26, 2022, 4:06:24 AM7/26/22
to QLab
...And the keyboard shortcuts (at least on my US English keyboard) are:
 collapse all - shift+< (or shift+comma)
expand all - shift+> (or shift+period)

It does sound nice to have it all happen in a preshow cue.
But also sharing anyways because I went forever without ever hearing of those shortcuts, and I wish I knew sooner. =)

Olivier OLRY

unread,
Jul 26, 2022, 4:44:19 AM7/26/22
to ql...@googlegroups.com
Thank you all for all these tips !!

Olivier Olry

Le 26 juil. 2022 à 10:06, Taylor Glad <taylo...@gmail.com> a écrit :

...And the keyboard shortcuts (at least on my US English keyboard) are:

Tim Parkin

unread,
Jul 27, 2022, 11:41:16 PM7/27/22
to QLab
Thank you for the shortcut which I have also been trying to find. I have also fiound the following:

Shift + >    Expand selected group
Shift + <    Collapse selected group

Shift + .     Expand all groups
Shift + ,     Collapse all groups

micpool

unread,
Jul 28, 2022, 5:45:01 AM7/28/22
to QLab
On Thursday, July 28, 2022 at 4:41:16 AM UTC+1 Tim Parkin wrote:
Thank you for the shortcut which I have also been trying to find. I have also fiound the following:

Shift + >    Expand selected group
Shift + <    Collapse selected group

Shift + .     Expand all groups
Shift + ,     Collapse all groups



I don't understand the difference between ⇧< and ⇧,

They are just two different ways of writing  the same  key press  combination, and the effect is identical i.e collapse all groups.

As far as I am aware ,there is no shortcut to collapse a selected group.

Mic

Taylor Glad

unread,
Jul 28, 2022, 4:54:01 PM7/28/22
to ql...@googlegroups.com
The left and right arrow keys expand and collapse selected groups.
Which is maybe what Tim was trying to say with the < characters...?   (Even though shift isn't necessary. Trying to give some benefit of doubt.)

--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/PQ0P1dVZE7s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/2b770e5c-4db5-488e-a0af-57dc4d8ad475n%40googlegroups.com.

Olivier OLRY

unread,
Jul 28, 2022, 6:04:01 PM7/28/22
to ql...@googlegroups.com
Hello everyone,

I’ve experienced the script sent further earlier, and I am super happy cause I can work it out with a PreShow Cue that reorganize my session and turn off all the secondary applications that might interfere with the QLab Show 
Thank you for all your help 

Olivier Olry

Le 28 juil. 2022 à 22:54, Taylor Glad <taylo...@gmail.com> a écrit :


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.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/CAMeegiciEgmBQbHYA1Q74rQtnw189JyD7gDmpqnTDcJ5h%3DpNeg%40mail.gmail.com.

Kalman Tarr

unread,
Aug 6, 2022, 5:01:08 AM8/6/22
to QLab
Hi All,

Micpool's script is really efficience, but if you start it from another cue list, I mean not from that cue list you want to close groups what is the target, than it doesn't work. This is my experience.
Thats why I tried to write this script, it does check all cue list and collapse all group cue in it. You can change it easily: set up cue list to current cue list you need to do the process.
Have to give a target e.g. keyboard shortcut...(x)
Your opinion?

tell application id "com.figure53.QLab.4" to tell front workspace
    set allCueList to every cue list as list
    set currentCueList to current cue list
    try
        repeat with i from 1 to count allCueList 
            set qName to q name of item (i) of allCueList
            set cuesToProcess to (cues in (first cue list whose q name is qName) whose q type is "group") as list
            repeat with eachcue in cuesToProcess
                set selected to eachcue
                collapse selected
            end repeat
        end repeat
    on error errmsg number errorNumber
        display dialog errmsg
    end try
    set current cue list to currentCueList
end tell

Best
Kalman

Rich Walsh

unread,
Aug 8, 2022, 10:05:03 AM8/8/22
to ql...@googlegroups.com
There seems to be a curious and undocumented feature that Group Cues do not “collapse” if their cue list is not the current cue list. This behaviour is, however, consistent with the actions of the “<“ & “>” shortcuts.

Your solution is inefficient – you don’t have to select a cue to work on it – and easily broken – if cue list names aren’t unique, for example. Try this:

tell application id "com.figure53.QLab.4" to tell front workspace
set startingList to current cue list
repeat with eachList in cue lists
set current cue list to eachList -- This brings each cue list to the front so the collapse command has an effect
repeat with eachCue in (cues of eachList whose q type is "Group") -- This only collapses the top level of Group Cues, not their children
collapse eachCue
end repeat
end repeat
set current cue list to startingList
end tell

Rich

Kalman Tarr

unread,
Aug 8, 2022, 3:05:32 PM8/8/22
to QLab
Your solution is extremely efficient Rich. Yeah.
Best
Kalman


Reply all
Reply to author
Forward
0 new messages