Would it be possible for Qlab to do this automatically. i.e compile any scripts entered into the script field as external scripts and reference them?. Would there be a downside to it doing this?
--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
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.
For more options, visit https://groups.google.com/d/optout.
but I've not yet come across the shell ampersand…
A different solution to this – would it make sense to have an app separate to QLab that is solely responsible for handling external devices through scripts, TCP/UDP, etc. – and QLab could trigger this app through OSC? If nobody can think of an app like this that already exists, I’m tempted to make one.
Adding ampersands to the very end of a line in shell tells the shell to run the command in the background, and not wait for it to complete.The ampersand in the &> /dev/null bit is a shortcut for 2>&1 > /dev/null which means to redirect both errors and the standard output to /dev/null
A different solution to this – would it make sense to have an app separate to QLab that is solely responsible for handling external devices through scripts, TCP/UDP, etc. – and QLab could trigger this app through OSC? If nobody can think of an app like this that already exists, I’m tempted to make one.
So, an app that receives MIDI and OSC and triggers applescripts or sends serial data would be ideal.
Note that the "qlab" before the IP address is a non-admin user I created on the projector with no password. I believe the projector can be configured to accept commands without a user name as well but I think that might be dangerous. A non-admin user can only mess up so much through errant scripting. :-)
Does it bounce then close? Or is there an actual crash report?
If anyone is interested, the code comes from another project I built on a RaspberryPi to ready light and pressure sensors, then send OSC commands to QLab. I would be glad to post that info too.
$ /Users/douglas/Downloads/OSC\ Apple\ Script/OSC\ Apple\ Script.app/Contents/MacOS/OSC\ Apple\ Script
Traceback (most recent call last):
File "<string>", line 30, in <module>
File "/Users/drewschmidt/Desktop/Python Test/build/OSC Apple Script/out00-PYZ.pyz/OSC", line 1765, in __init__
File "/Users/drewschmidt/Desktop/Python Test/build/OSC Apple Script/out00-PYZ.pyz/SocketServer", line 419, in __init__
File "/Users/drewschmidt/Desktop/Python Test/build/OSC Apple Script/out00-PYZ.pyz/SocketServer", line 430, in server_bind
File "/Users/drewschmidt/Desktop/Python Test/build/OSC Apple Script/out00-PYZ.pyz/socket", line 224, in meth
socket.error: [Errno 48] Address already in use
/runScript/code "tell application 'Terminal' to do script 'rm -rf …'"
If you want to find what error you might have, drag & drop the app into terminal (it’ll write in the path), then add "/Contents/MacOS/OSC\ Apple\ Script" on the end and hit enter to run (like in my example above) – you might get interesting output.
Also be aware, allowing arbitrary OSC strings to run as Applescript can have security implications. Make sure nobody untrusted gets access to your network – in theory someone could run a command that deletes all your files! Don’t run this:/runScript/code "tell application 'Terminal' to do script 'rm -rf …'"
On April 16, 2014 at 4:21:43 PM, micpool (m...@micpool.com) wrote:
If the former, then I can put it on the list but I’ll be honest: it’s a long list, and this isn’t very pressing as compares to other items since this one has a known solution. But no harm in considering it, right?
I made an app to go alongside QLab and posted it on GitHub with some instructions. So if you need to do ...
Apple Script
Terminal Commands
Telnet
UDP
... outside of QLab, here's an app that will respond to OSC cues from QLab. And of course, it's open source, free free to grab the code and bend it for your usage.
http://archiedestructo.github.io/OSC-Script/
Enjoy!
-Drew