No internet connection
  1. Home
  2. Script Sharing

Solution for a Full Screen Text Display

By Tony David Cray @tdc
    2022-03-29 09:53:02.790Z2022-03-29 20:45:30.074Z

    Hi Folks,

    New SF user here, having a lot of fun migrating from Keyboard Maestro / Companion / StreamDeck.

    One really helpful script I had built with KM to run with Pro Tools during long orchestral sessions was a "New Take" button that increments a Take number variable, then puts Pro Tools into Record, adds a Marker with the Take Number, and then displays this take number Full Screen and everyone else can see it. This helped clean up incorrectly incremented take numbers and reduced the number of times I would make a goose of myself.

    It seems that SF at present doesn't have a way to display text like this so have hacked up a Workflow in Alfred (https://www.alfredapp.com) that does this. Here is the workflow: shorturl.at/knESW

    I then call the Alfred workflow from SF with the following:

    // add your own text_variable here 
    const text_variable = "Take 002"
    
    sf.system.execAppleScript({
        script: `
        tell application id "com.runningwithcrayons.Alfred" to run trigger "com.alfred.display_large_text" in workflow "com.alfred.display_large_text" with argument  "${text_variable}"`
    });
    
    

    The Alfred workflow has a follow on action to remove itself after a few seconds.
    You can change this or even modify it so you can pass in your own time via the AppleScript.

    Enjoy!

    • 0 replies