No internet connection
  1. Home
  2. How to

open an application created with automator

By Masayoshi Sugai @Masayoshi_Sugai
    2021-09-29 00:37:00.097Z

    Hello everyone.
    I want to open an application created with automator, but when I try to use Soundflow's Launch Application or Open a File, it doesn't work.
    I think that it corresponds to the operation of selecting a file on the Finder and double-clicking (or ⌘ + O). Is there a good way?

    Solved in post #2, click to view
    • 5 replies
    1. Kitch Membery @Kitch2021-09-29 00:52:58.669Z

      Hi @Masayoshi_Sugai,

      This will do what you want. Just update the automatorAppPath to the path of your automator file.

      const automatorAppPath = "/Users/kitchmembery/Desktop/Speak.app";
      
      sf.system.exec({ commandLine: `automator "${automatorAppPath}"` });
      

      I would however suggest recreating the app within SoundFlow that way you will have access to it on any system you are working on. :-)

      Rock on!

      ReplySolution
      1. MMasayoshi Sugai @Masayoshi_Sugai
          2021-09-29 01:18:39.042Z

          Thank you, Kitch!!
          It worked!!

          By the way, the name of the App created by Automator was [Automator_Eject "CLARITY M"] and soundflow did not respond, and when I changed it to [Eject CLARITY M], it worked fine.

          Are there any characters that shouldn't be used in filenames, not just this script?

          1. Kitch Membery @Kitch2021-09-29 02:03:07.078Z

            Yes the following characters are seen as special characters in command line;

            You can escape them by adding a backslash \ before each occurrence of them.

            :-)

            1. MMasayoshi Sugai @Masayoshi_Sugai
                2021-09-29 02:06:37.937Z

                got it!
                Thank you! !!

                1. Dustin Harris @Dustin_Harris
                    2021-09-29 12:54:12.178Z

                    Hi @Masayoshi_Sugai , if you’re ejecting a drive, here is a way to do it using only SoundFlow, if you find it helpful: