Facility Control

 View Only
  • 1.  Using Dashboard to trigger recording on a Mac Pro running Logic Pro X

    Posted 07-30-2017 14:40
    Anyone have experience triggering recording in Logic Pro X or similar application via Dashboard. Thinking OSC commands might work but was curious if anyone has any insight? Thanks in advance.


  • 2.  RE: Using Dashboard to trigger recording on a Mac Pro running Logic Pro X

    Posted 08-04-2017 11:31

    I currently do have a working Dashboard to AppleScript function, so I could look into the AppleScript for Logic Pro X and trigger the recording through that.

    Under the meta part, you need to add an API object, with the following code:

    function runAppleScript(applescriptCommand)
    {
    var runtime = java.lang.Runtime.getRuntime();
    var args = ["osascript", "-e", applescriptCommand];
    var process = runtime.exec(args);
    }

    Then as the action for a key or what not, add your script like this:

    var applescriptCommand =  "tell application \"QLab\"\n" +
                                "tell front workspace\n" +
                                  "start cue \"2\"\n" +
                                "end tell\n" +
                              "end tell";
    
    runAppleScript(applescriptCommand);

    This one is a simple AppleScript in order to tell QLab to run a specific cue. Do remember all your escapestrings and lineshifts etc. It's a bit messy, but it works!

    NOTE: The script above implies that I am running QLab on the same MAC running Dashboard, to trigger an external MAC you would have to include the remote connection as well. Take a look here for further into:

    http://www.makeuseof.com/tag/remotely-control-mac-simple-applescripts/
    Yes, you will need a BUNCH of escape strings...

    Hope this helps! :D


    #DashBoard


  • 3.  RE: Using Dashboard to trigger recording on a Mac Pro running Logic Pro X

    Posted 08-20-2017 14:00
    Thanks for the info!

    I see the Logic Pro X (LPX) iPad app uses OSC of some flavor to trigger commands on LPX. I was hoping to do a direct trigger (straight to the Mac Pro running LPX) without an intermediary like QLab. I'm guessing you'd use MIDI to from QLab to trigger LPX? We've kicked the tires on QLab but haven't taken a test drive. Thanks again for the info.
    #DashBoard


  • 4.  RE: Using Dashboard to trigger recording on a Mac Pro running Logic Pro X

    Posted 08-30-2017 09:37
    I have a setup that actually works with this, where I use Dashboard to trigger QLAB through the above AppleScript, and QLAB again to trigger both a Behringer X32 mixer through both MIDI and OSC, a ME DOT2 lighting through midi notes and MSC, and another laser software through MIDI notes, and also playback video through QLAB.
    I also set up my Dashboard to trigger Ross Xpression as well, so, as far as I am concerned, you can basically trigger anything from Dashboard.

    You can also send OSC through Dashboard, as it's mainly just a UDP message, however it needs to be in big-endian format (as pr. OSC documentation), and that I have yet to crack.
    Will bring it up in another topic here though. But you can find the "Send UDP Message" if you just search for it in the visual editor.
    So I would guess if we can figure out how to do that, you/we can then just send the OSC commands straight from Dashboard to LPX.

    Reading up on LPX just quickly online, and it seems the AppleScript support of LPX is pretty much non-existing actually (kinda surprised there actually), as I can find no dictionary, but plenty posts asking for the same, with negative results (except some basic AppleScript menu triggering and hotkey mapping/triggering).

    So for LPX, maybe OSC is the way to go...
    #DashBoard