Can Qlab shut a computer down?

656 views
Skip to first unread message

Ben Emerson

unread,
Mar 9, 2017, 12:27:27 PM3/9/17
to ql...@googlegroups.com
I seem to recall, once, seeing a script or some other method by which QLab could shut down it's computer, say at the end of the day in an installation.  Am I imagining this?  

I actually have a need to have a computer onstage shutdown automatically, and while I can accomplish this via screensharing, being able to cue it in the sequence running at that moment would be significantly more elegant.  I looked though Mic Pool's fabulous CookBook, but didn't see anything that translated, in my mind, anyway, to this.

Any thoughts?

--
Benjamin Emerson
Sound Supervisor
Huntington Theatre Co
Sound Design Instructor
Boston University School of Theatre,

MattM

unread,
Mar 9, 2017, 1:39:47 PM3/9/17
to QLab
Ben -- not a super elegant solution, but I would think it would be possible to write an AppleScript that uses GUI scripting to shut down the target computer. I've never tried, but if that can be done, the script could be fired from a script cue in QLab. You'd have to have some sort of a strategy to make sure there are no programs open that would interrupt shut down ("save file before closing?" type dialogs, etc.), but it sounds like you might be able to set something like that up ahead of time.

M

luckydave

unread,
Mar 9, 2017, 1:45:17 PM3/9/17
to ql...@googlegroups.com
Would this be a good starting point?

tell application "System Events" to shutdown



--
luckydave

On March 9, 2017 at 10:39:48 AM, 'MattM' via QLab (ql...@googlegroups.com) wrote:

Ben -- not a super elegant solution, but I would think it would be possible to write an AppleScript that uses GUI scripting to shut down the target computer. I've never tried, but if that can be done, the script could be fired from a script cue in QLab. You'd have to have some sort of a strategy to make sure there are no programs open that would interrupt shut down ("save file before closing?" type dialogs, etc.), but it sounds like you might be able to set something like that up ahead of time.

M

--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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/a1b2c01b-6317-47e0-9dfa-58dc86605f98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gunther J. Kibelkstis

unread,
Mar 9, 2017, 1:46:50 PM3/9/17
to QLab
Apple Script for Shut Down:

ignoring application responses

tell application "Finder"

shut down

end tell

end ignoring

Ben Emerson

unread,
Mar 9, 2017, 3:36:26 PM3/9/17
to ql...@googlegroups.com
Thanks, Gunther, this works beautifully.  Now what I need to learn is how to trigger it via WiFi from another computer running QLab.

I think I've seen something about this in my research, but if anyone has a suggestion I'd certainly appreciate it.



--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/f80d0de9-719d-4434-b716-23d97c03daf3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Charles Coes Lists

unread,
Mar 9, 2017, 5:11:36 PM3/9/17
to ql...@googlegroups.com
OSC works great, as does the built into the OS network MIDI...  Wireless is only as reliable as coverage... 
Charles Coes
cco...@gmail.com
www.charlescoes.com
"Man is an antientropic creature; he is a random-to-orderly arranger and tries to perceive patterns in all things." R. Murray Schafer

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/CAHohYdZm4ESrk7gtTgcpiE6JNx1STsz%2BdvNYwQsXG-VpqURKOQ%40mail.gmail.com.

Ben Emerson

unread,
Mar 9, 2017, 5:24:41 PM3/9/17
to ql...@googlegroups.com
I've had several people recommend OSC, I just need to find a primer on the syntax somewhere in order to write intelligible commands.  Any ideas?  I'm still scouring the Figure53 resources...






































--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Joel Wetzell

unread,
Mar 9, 2017, 5:27:52 PM3/9/17
to QLab
Figure53 has a pretty well done up OSC Dictionary for QLab at this link http://figure53.com/docs/qlab/v4/scripting/osc-dictionary-v4/
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.



--
Benjamin Emerson
Sound Supervisor
Huntington Theatre Co
Sound Design Instructor
Boston University School of Theatre,


--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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.

--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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.

Daniel Perelstein

unread,
Mar 9, 2017, 6:36:58 PM3/9/17
to ql...@googlegroups.com
Ben,
I just made sense of essentially exactly what you're doing for the first time for a show this fall. If you're finding it overwhelming or tough to parse I'm happy to walk you through it by phone.

Perhaps we could even record it and post it as a dead-simple primer for folks who are new to this and intimidated to get into it (as I was). Believe me when I say that it does wind up being dead simple once you get into it.

If you're interested, I'm pretty flexible tomorrow (friday) 1-4 pm EST or Saturday 1-6 pm EST.
Dan

To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.



--
Benjamin Emerson
Sound Supervisor
Huntington Theatre Co
Sound Design Instructor
Boston University School of Theatre,

--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
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/CAHohYdZm4ESrk7gtTgcpiE6JNx1STsz%2BdvNYwQsXG-VpqURKOQ%40mail.gmail.com.

MattM

unread,
Mar 10, 2017, 8:24:05 AM3/10/17
to QLab
HA! Would you believe that it didn't occur to me that there'd be an actual "shutdown" command in Applescript? Apple has been getting a little more protective about system integrity (restricting you from putting files into /usr/bin, for example, or making you check a box in system preferences allowing certain apps to control the computer), so I -- mistakenly -- assumed they wouldn't give you the power to shut down the computer in script!

...hang on, gotta go find a way to harass my colleague's machine with this...hehe

M

Reply all
Reply to author
Forward
0 new messages