No internet connection
  1. Home
  2. Support

Trying to connect Soundflow to Keyboard Maestro on new machine

By Joe Trapanese @Joe_Trapanese
    2022-02-17 05:34:18.595Z

    Trying to connect Soundflow to Keyboard Maestro on new machine

    System Information

    SoundFlow 5.0.6

    OS: darwin 20.6.0

    ProductName: macOS
    ProductVersion: 11.6.4
    BuildVersion: 20G417

    Steps to Reproduce

    1. Run Keyboard Maestro action for first time
    2. popup asking to allow Soundflow to control Keyboard Maestro
    3. Thought It hit ok....
    4. Not able to control Keyboard Maestro

    Is there a way to reset this connection?

    Expected Result

    Thought I hit ok... Keyboard Maestro script should run

    Actual Result

    Nothing

    Workaround

    No

    Other Notes

    Secondary machine (laptop) in Big Sur v11.6.4


    Links

    User UID: qocpwEcEL4UVPS7SLjFvSZGr0MN2

    Feedback Key: sffeedback:qocpwEcEL4UVPS7SLjFvSZGr0MN2:-Mw5A7z6RWvRoDcd6O1w

    Feedback ZIP

    Solved in post #6, click to view
    • 8 replies
    1. Hi Joe,

      Which method are you using to control KM with? It sounds like you may be using AppleScripts?
      I believe there are methods you can use that don't require this authentication.

      See here:
      Controlling Keyboard Maestro with Soundflow #post-8

      1. J
        In reply toJoe_Trapanese:
        Joe Trapanese @Joe_Trapanese
          2022-02-17 15:51:23.078Z

          Christian, so very sorry - I totally forgot to say I'm experimenting with a Stream Deck setup in addition to our iPad set up. I'm using some of Stream Deck's own functionality and installed the Soundflow Stream Deck package.

          So this is via Stream Deck.

          -Joe

          1. Hi Joe,

            Thanks for the additional info. What I was asking for was how your macro in SoundFlow looks like that you want to control KM?

            If you're seeing the above error, it indicates that your macro is using AppleScript, as I mentioned. If you want help with the macro, please check the post I linked to.

            If you're controlling KM directly from Stream Deck without SF, then this question isn't about SF.

            It sounds like you're trying to build a very complex setup if you're intending to use both the Stream Deck app, KM and SoundFlow. Please note that we recommend not to do this as it is much more difficult to set up correctly.

            To get you help with this, please be much more specific in describing the actual setup you have, ie. share the macro/script you're using in SF, how it's hooked up to Stream Deck, etc.
            The post I linked to will show you how to control KM from SF without AppleScripts. If you need help invoking SF scripts from your Stream Deck, then you'd need to look at our guide for setting up SF with the Stream Deck app, etc.

            But from the information you're giving, it's very hard to know what exactly you're trying to do and where it goes wrong.

            1. JJoe Trapanese @Joe_Trapanese
                2022-02-18 05:34:25.717Z

                Thank you so much Christian.

                For the full details of the script, I'll have to loop in my assistant Derek who built the script using a combination of Soundflow and Keyboard Maestro.

                But to hopefully clear this up:

                See this link -
                https://soundflow.org/store/trigger-keyboard-maestro-actions

                and this specifically:
                "When you run it for the first time you might see a popup asking you to allow SoundFlow to control Keyboard Maestro"

                I saw this popup on my laptop, thought I selected "ok", but I'm thinking I must have instead selected "cancel" or whatever the other option is -

                Because while this interaction works on my main machine (which already has SoundFlow triggering Keyboard Maestro properly), it does not work on my laptop.

                When I brought the Stream Deck setup home to work on my laptop yesterday, this popup happened and I cannot get Stream Deck to trigger the same SoundFlow script (which uses Keyboard Maestro) on my laptop.

                Sorry for all the words! Trying to be clear.

                So the question really is - is there a way to "reset" this popup dialogue when? Is there a way to "undo" whatever I may have accidentally clicked on ('do not allow' or whatever is the other option!)?

                1. Gotcha, thanks for the additional info.

                  Yea this package from Benjamin Hörbe uses AppleScript under the hood, which is why you're seeing the popup in the first place. That clarifies this bit.

                  To reset all permissions for SoundFlow, try doing this:

                  • quit SF entirely (click SF icon, choose Quit)
                  • run this in Terminal:
                  tccutil reset All org.soundflow.sfsx
                  
                  • then relaunch SF from Applications.

                  You may need to grant SF permissions to control the computer again.

                  ReplySolution
                  1. Make sure when you're testing this that you're testing the SoundFlow script that uses KM directly from within the SF app. Ie. click on the "Run Script" or "Run Macro" button when you have this particular macro/script selected.
                    That should test SoundFlow -> KM.

                    Once you have that working, test the connection from Stream Deck -> SoundFlow.

                    That should make it easier to troubleshoot where things go wrong.

            2. J
              In reply toJoe_Trapanese:
              Joe Trapanese @Joe_Trapanese
                2022-02-18 17:42:25.583Z

                That did it! Thank you so very much for your help figuring this out, Christian!

                1. Awesome :)