Page 1 of 2

Apple script

Posted: Thu Oct 14, 2010 5:44 am
by gooze
How do I establish a telnet connection (and execute commands like HC.CueListGO) using AppleScript?
Since you can run AppleScript with CueLab (Figure53.com), I'd like to give that option a try.

Doing the same thing over MIDI would have been easier, but...
Sending MIDI over Lan is probably not going to be implemented, and I want to size my setup down, instead of expanding it by buying a larger desk, just because of the hardware midi connection (from a century long ago).

Re: Apple script

Posted: Fri Oct 15, 2010 11:03 am
by GaryDouglas
This might get you close:

set telnet to "telnet 192.168.1.58"
set go_script to "HC.CueListGo('Main Cue List')"
tell application "Terminal"
run
do script telnet
delay 1
do script go_script in window 1
end tell

Re: Apple script

Posted: Tue Oct 26, 2010 5:55 am
by gooze
This works. I made some adjustments, because it takes 30 seconds before the connection is completely established.
I made this into a sample file for QLab, a great showcontrol application for MaxOSX.
Palette Go scripts.zip
QLab remote control for Palette
(24.7 KiB) Downloaded 239 times

Re: Apple script

Posted: Sat Oct 30, 2010 4:39 pm
by Buffy
That is fantastic, great bit of script.

Re: Apple script

Posted: Fri Nov 12, 2010 6:20 pm
by rtully
Hi There,

I just found this thread as I have been set a task to trigger an older Palette (one that doesn't have the ability for the midi card) via qlab (figure53.com) Will this script do this via an ethernet link? if not can anyone tell me can i hack the palette to accept a midi interface via USB?

Many thanks

R

Apple script

Posted: Sat Nov 13, 2010 7:52 am
by gooze
This works via a wired or wireless network. The only thing you have to do is change the ip adress in the QLab script to the ip of your console and make sure your console and the external computer are connected (as with the remote video or web app. )

Re: Apple script

Posted: Mon Nov 15, 2010 11:30 am
by rtully
Thanks for that,

Terminal is showing that the telnet is connected and the commands are being sent however this is having no effect on the desk.
Any ideas would be greatly appreciated.

Thanks

Ronan

Re: Apple script

Posted: Tue Nov 16, 2010 1:36 am
by RobertBell
try sending
help <cr>
to the desk and see if you get a response

Re: Apple script

Posted: Tue Nov 16, 2010 6:26 am
by rtully
Hi Robert,
It sent back a list of all the command scripts back to the mac. But still no joy when trying to go cue.

Apple script

Posted: Tue Nov 16, 2010 7:22 am
by gooze
The name of your cuelist does matter.