No internet connection
  1. Home
  2. Macro and Script Help

Macros timing out

By Mark Edmondson @Mark_Edmondson
    2023-12-04 10:25:47.034Z2023-12-04 10:45:28.781Z

    Title

    Macros timing out

    What do you expect to happen when you run the script/macro?

    Open audiosuite plugin

    Are you seeing an error?

    Could not activate Pro Tools Could not ensure main window became frontmost after waiting 2000 ms

    What happens when you run this script?

    Happening for all audiosuite open macros - triggering either from keyboard shortcut or iphone running soundflow app - timeout after 2000ms

    Log:

    04.12.2023 10:25:17.86 [Backend]: #StreamDeck: deck-button-click -> The Glue

    04.12.2023 10:25:17.86 [Backend]: >> Command: The Glue [user:clpl8mqjk0000do10o1dvot5h:clpq1h97100055w109khe1jts]

    04.12.2023 10:25:17.86 [Backend]: Checking for running apps with bundle 'com.avid.ProTools'

    04.12.2023 10:25:17.87 [Backend]: NSArray.ArrayFromHandle count = 1

    04.12.2023 10:25:17.88 [StartMenu]: StartMenuContainer currentPageKey='home' Line 24630 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar//dist/bundle.js
    04.12.2023 10:25:20.37 [Backend]: Logging error in action (01) AppActivateMainWindowAction: Could not ensure main window became frontmost after waiting 2000 ms
    Logging error in action (01) AudioSuiteOpenPluginAction: Could not activate Pro Tools

    04.12.2023 10:25:20.37 [Backend]: !! Command Error: The Glue [user:clpl8mqjk0000do10o1dvot5h:clpq1h97100055w109khe1jts]:
    @Error invoking proTools.audioSuite.openPlugin (The Glue: Line 1)
    Could not activate Pro Tools
    Could not ensure main window became frontmost after waiting 2000 ms

    << Command: The Glue [user:clpl8mqjk0000do10o1dvot5h:clpq1h97100055w109khe1jts]

    04.12.2023 10:25:20.54 [StartMenu]: StartMenuContainer currentPageKey='home' Line 24630 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar//dist/bundle.js
    04.12.2023 10:25:20.54 [StartMenu]: StartMenuContainer currentPageKey='home' Line 24630 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar//dist/bundle.js
    04.12.2023 10:25:26.10 [Backend]: [SF_FIREBASE_WS]: Sending keep-alive

    How were you running this script?

    I used a keyboard shortcut within the target app and same behaviour when triggering from iphone runnning soundflow app

    How important is this issue to you?

    5

    Details

    {
        "inputExpected": "Open audiosuite plugin",
        "inputIsError": true,
        "inputError": "Could not activate Pro Tools\n    Could not ensure main window became frontmost after waiting 2000 ms",
        "inputWhatHappens": "Happening for all audiosuite open macros - triggering either from keyboard shortcut or iphone running soundflow app - timeout after 2000ms\n\nLog:\n\n04.12.2023 10:25:17.86  [Backend]: #StreamDeck: deck-button-click -> The Glue\n\n04.12.2023 10:25:17.86  [Backend]: >> Command: The Glue [user:clpl8mqjk0000do10o1dvot5h:clpq1h97100055w109khe1jts]\n\n04.12.2023 10:25:17.86  [Backend]: Checking for running apps with bundle 'com.avid.ProTools'\n\n04.12.2023 10:25:17.87  [Backend]: NSArray.ArrayFromHandle count = 1\n\n04.12.2023 10:25:17.88  [StartMenu]: StartMenuContainer currentPageKey='home' Line 24630 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar//dist/bundle.js\n04.12.2023 10:25:20.37  [Backend]: Logging error in action (01) AppActivateMainWindowAction: Could not ensure main window became frontmost after waiting 2000 ms\nLogging error in action (01) AudioSuiteOpenPluginAction: Could not activate Pro Tools\n\n04.12.2023 10:25:20.37  [Backend]: !! Command Error: The Glue [user:clpl8mqjk0000do10o1dvot5h:clpq1h97100055w109khe1jts]:\n@Error invoking proTools.audioSuite.openPlugin (The Glue: Line 1)\n    Could not activate Pro Tools\n    Could not ensure main window became frontmost after waiting 2000 ms\n\n<< Command: The Glue [user:clpl8mqjk0000do10o1dvot5h:clpq1h97100055w109khe1jts]\n\n04.12.2023 10:25:20.54  [StartMenu]: StartMenuContainer currentPageKey='home' Line 24630 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar//dist/bundle.js\n04.12.2023 10:25:20.54  [StartMenu]: StartMenuContainer currentPageKey='home' Line 24630 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar//dist/bundle.js\n04.12.2023 10:25:26.10  [Backend]: [SF_FIREBASE_WS]: Sending keep-alive\n\n",
        "inputHowRun": {
            "key": "-Mpfwh4RkPLb2LPwjePT",
            "title": "I used a keyboard shortcut within the target app"
        },
        "inputImportance": 5,
        "inputTitle": "Macros timing out"
    }

    Source

    //Macro converted to script
    
    
    sf.ui.proTools.audioSuiteOpenPlugin({
        category: "Dynamics",
        name: "The Glue",
    });
    
    
    

    Links

    User UID: DWY1HpHUYhbpZqsvQmPF1qllFlT2

    Feedback Key: sffeedback:DWY1HpHUYhbpZqsvQmPF1qllFlT2:-NkoMBvzIQLEuV_dkRQd

    Feedback ZIP: ZjwWKztlK6Q7ZI22XTeRwoLGBM43FRK4c+LZ10DN1Xn9T/Sr6MUTd5fVXfP6LZD9V/sE0oy4ZXecCcZRMBH4r2ZM1qice/hgkDcI/zWgx51LEPa/S3Q6LAtgfWNmyr+96ODMflTKhJlMJnO7XAKwJ6tll5F4cRibCTQHXdXnJfLuPNP0OVrlYpAQZScpoO4PTSAR2TKB3hXhqFKkn0fTKC8vPAVtheQNV6nw01qWQVaivFRqsnsWHhMTONfXxborSuc46y+NgY4WJHf7uz+mObMfAnsi0LUh0Mf8OHuec+jCAGO0feGFdJ4/Xbyo3YcjsLD8AYmarJWU5IIHNRnLPA==

    ----EDIT----

    Have found the issue - soundflow gets upset when Render Friend is also used. If I've fired a macro from render friend (used mostly to send to rx and render rx) and then try to fire a soundflow macro the error occurs.

    I prefer to use render friend for RX macros as it's on screen buttons, I can keep my hands on the mouse/keyboard. I know soundflow can achieve the same thing but I'd like to not sacrifice my current workflow entirely.

    • 1 replies
    1. Hi Mark,

      I'm not sure what SF can do in this case - it appears Render Friend is somehow making it impossible for Soundflow to focus Pro Tools. Focusing PT is needed for most SF related scripts to run.

      As you mentioned, it's possible to do everything RF can do in SF itself, and you would be able to set up any deck to be displayed on-screen.