No internet connection
  1. Home
  2. How to

How to script entering text in the SoundFlow editor?

Is SF itself scriptable? I'd love to make a macro that'll type "sf.ui.protools." and "sf.ui.protools.appActivate();" etc with a single keystroke. It'd save a lot of typing. (I'm aware of and use auto-complete but a one-key macro would be ace).

Solved in post #6, click to view
  • 6 replies
  1. You should be able to use a Type Text action for this, I believe.

    1. Hmmm.
      Doesn't seem to work.

      1. Works just fine here. Give us some more info than "it doesn't work" and it's gonna be easier to help.
        For example, show us what you were doing, how you assigned a trigger to it, and then when it didn't work, what exactly happened.

        1. Sorry for that Christian. It's been a hectic week of revisions
          I created a Type Text action and assigned it to shift - F4 when SF is the focused app.
          When triggered nothing happens - no errors either.
          But when assigned to all apps it does work within SounFlow.
          Perhaps org.sounflow.sfsx isn't the proper app that needs to be focused? It's the only one available in the application dropdown menu. I also get the same results when I browse for SoundFlow.

          1. Ah yea.. Gotcha. Due to how SoundFlow runs as both a background service and then, optionally, as the UI, it has different bundle IDs.
            So, effectively, you cannot limit your trigger to only work in SF, it has to be global.

            ReplySolution
            1. One workaround I'm starting to use is to define
              const sup = sf.ui.proTools
              at the top of a script.

              Saves a lot of typing :)