Home | News | Products | Support | Download | Sales | library | Guests | Contact | WebCam | Links
CDS Logo LanBox-Talk mail archive
 

By date: Prev | Next | Index By thread: Prev | Next | Index

SubjectRe: [LCtalk] Scripting The Lanbox
FromFokko van Duin
DateSat, 10 Dec 2005 22:42:19 +0100


Hello Pat,

At 10:43 -0500 10-12-2005, patman209@aol.com wrote:
Okay, I just can't seem to do it. Whenever I tell the applescript to run, the cmd light flashes for about 30 seconds and nothing happens. I think I need a specific example of how exactly to pass commands to the lanbox through the applescript.

OK, here is an example to "Go" to 52.1, but these examples are included in the file:


property device : "USA49W4b21P1.1" -- alternative e.g. "192.168.1.77 777"
property layer : 1 -- layer A = 1
set cuelist to 52
set cuestep to 1
try
set res to do shell script "perl ~/Desktop/LanBoxScripts/cmdwrite.pl " & device & " '*56%2%4%2#' " & layer & " " & cuelist & " " & cuestep
if res contains "enied" then
error "Bad password"
else if res contains "?" then
error "Command failed"
end if
set the result to "Go " & cuelist & "." & cuestep
on error x
beep
display dialog "Error: " & x buttons {"OK"} default button 1
end try



But you where right, it was NOT working on a serial port. We have corrected that, and uploaded a new script including examples in zip and sit format at:
<http://www.lanbox.com/downloads/downloads.html#other>


It should work now :-)


-- Fokko van Duin, Creators of the LanBox-LC CDS advanced technology bv, DMX lighting controller. http://www.cds.nl/ http://www.lanbox.com/

We are member of MIDI Manufacturers Association, MMA

By date: Prev | Next | Index By thread: Prev | Next | Index