LXconsole and Applescript help

LXConsole support and feedback
Post Reply
nizer
Posts: 157
Joined: Sun Jan 23, 2011 1:27 pm
Location: Virginia
Contact:

LXconsole and Applescript help

Post by nizer »

Had a catostrophic computer failure last night. Even iTunes would not work. Qlab wouldn't restart either. Good old trusty LXConsole kept chugging along though. I had no way to control the lights easily because they are triggered via MSC from Qlab and my tech person didn't get how to trigger lights in LXConsole.

How do I use applescript to trigger cues in LXConsole. I tried a bunch of stuff last night and failed.

All I need is

tell application LXConsole
activate
GO cueNumber 1
end tell

tell application LXConsole
activate
GO cueNumber 4
end tell

This way I can still trigger a few emergency cues while I am on stage.
Mark Nizer
mark@nizer.com
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post by admin »

This should do what you want:

tell application "LXConsole"

activate

setMode the front document to "live"

tell the front document

doCommand string "cue: 1"

GO

end tell

end tell


As far as fixing your computer, there are several standard things to try. First, use DiskUtility and repair disk permissions. That's always a good first try. Second, if you are running Mountain Lion, it is possible that GateKeeper is preventing an unsigned application from running. Open System Preferences->Security & Privacy and look at the "Allow applications downloaded from" setting. You may need to disable GateKeeper to run unsigned applications.
nizer
Posts: 157
Joined: Sun Jan 23, 2011 1:27 pm
Location: Virginia
Contact:

That does it

Post by nizer »

it works perfectly. This way even if Qlab is done for, I can turn on and off the lights.
Mark Nizer
mark@nizer.com
Post Reply