No internet connection
  1. Home
  2. How to

How do I launch macOS app's from the Deck?

By Dean Landon @Dean
    2020-03-26 00:34:49.659Z

    When I try to create a launch for Mac's System Preferences or Disk Utility, you can't add those and other Mac related app's in SF. Am I missing something?

    Thanks!

    Solved in post #9, click to view
    • 28 replies

    There are 28 replies. Estimated reading time: 9 minutes

    1. Kitch Membery @Kitch2020-03-26 01:06:11.372Z

      Hi Dean,

      Check out this link;

      https://soundflow.org/docs/how-to/stream-deck/setting-up

      It will show you how to do it.

      Rock on
      Kitch

      1. In reply toDean:

        I think what you mean is that using the Launch application action you can't do this.
        Instead for now as a workaround you should be able to do this via the "Execute System Command" (runs commands like from Terminal).

        For example this command line will open the Security -> Privacy" tab of System Preferences:

        open "x-apple.systempreferences:com.apple.preference.security?Privacy"
        
        1. Ron Aston @Ron_Aston
            2020-03-26 02:10:07.334Z

            Hi Christian....I'm also interested in making a macro for launching Disk Utility as well as Launch System Prefs. I'm stumped.

            Thanks!

            -Ron

            1. Hi Ron.

              Disk Utility should be possible to find via "Launch application". If not, you can use "Open a File" action, and in the Path, click the 3 small dots to browse to the Disk Utility app. Leave the "application" field blank.

              1. Different ways of doing it:

                1. Ron Aston @Ron_Aston
                    2020-03-26 02:17:51.346Z

                    Wow. thanks for this! I’ll tell Dean to just go here so he can see it. Much appreciated!

                    1. In reply tochrscheuer:
                      DDean Landon @Dean_Landon
                        2020-03-26 02:45:01.684Z

                        Christian, none of those work. I tried all 3. For some reason, I can't get them to run on my end.

                        1. Dean please give us more info. "Doesn't work" doesn't help us help you. Show us, tell us what you did, what happened, what's the error etc.

                          1. DDean Landon @Dean_Landon
                              2020-03-26 02:49:28.870Z

                              Ok, you mentioned above "Different ways off doing it. I tried them, but it doesn't bring up the Disk Utility window when I Run Macro.

                              1. The most likely case is that you entered something in wrong, or that Disk Utility is not responding to events (I've seen this in the past if the app is stuck).
                                However - when you don't show me how you entered it, and don't quote from the log then I can't help you.

                                To narrow down your issue, try running this from Terminal:

                                open "/applications/utilities/disk utility.app"
                                
                                1. DDean Landon @Dean_Landon
                                    2020-03-26 02:57:30.280Z

                                    When I ran open "/applications/utilities/disk utility.app" in Terminal, I get:

                                    Last login: Wed Mar 25 19:55:13 on ttys000
                                    dlp@Deans-Mac-Pro-2 ~ % open "/applications/utilities/disk utility.app"
                                    The file /applications/utilities/disk utility.app does not exist.
                                    dlp@Deans-Mac-Pro-2 ~ %

                                    1. That explains - so the app has been moved out of place. Not a SoundFlow bug, but an error in your installation of macOS.
                                      You should find out where it's located so you can provide the correct path.
                                      If you followed my instructions this shouldn't have been the issue, since I asked you to browse to its path (wherever that may be):

                                      If not, you can use "Open a File" action, and in the Path, click the 3 small dots to browse to the Disk Utility app.

                                      1. DDean Landon @Dean_Landon
                                          2020-03-26 03:05:01.037Z

                                          Disk Utility is in my Utilities folder. Also, this happens with System Preferences, Photos, Preview and other Apple app's.

                                          1. DDean Landon @Dean_Landon
                                              2020-03-26 03:05:32.910Z

                                              I tried both Launch and Open a File... same difference.

                                              1. DDean Landon @Dean_Landon
                                                  2020-03-26 03:09:04.758Z

                                                  Ok the 3 dot worked for DU. I'll see if I can do that with the other app's. Thanks!

                                                  1. On the action you got working, please do the following:

                                                    • Click "Convert to Script"
                                                    • Copy/paste the working script code here.
                                                    1. DDean Landon @Dean_Landon
                                                        2020-03-26 03:18:51.703Z

                                                        Here you go

                                                        sf.file.open({
                                                        path: "/System/Applications/Utilities/Disk Utility.app",
                                                        });

                                                    2. In reply toDean_Landon:

                                                      The issue is not with SoundFlow directly but with something that disallows you to find these things through Terminal.
                                                      You should get this working from Terminal, then just copy/paste that code into Execute System Command.

                                                      Your terminal result says there's no file located there:

                                                      The file /applications/utilities/disk utility.app does not exist.

                                                      So clearly something's off.
                                                      Potential issues:

                                                      • Do you use a case-sensitive file system
                                                      • Is your applications folder located on a different drive?
                                                      • Do you have symlinks installed for the applications folder?
                                                      • Or any other weirdness?
                                                      1. DDean Landon @Dean_Landon
                                                          2020-03-26 03:15:40.956Z

                                                          To answer your questions...

                                                          Do you use a case-sensitive file system (I don't think so. How would I even know?)
                                                          Is your applications folder located on a different drive? (It's not. It's in the usual place)
                                                          Do you have symlinks installed for the applications folder? (I don't even know what that is)
                                                          Or any other weirdness? (I cleaned installed Catalina and finished installing PT and plug ins, VIs)

                                                          1. DDean Landon @Dean_Landon
                                                              2020-03-26 03:17:22.916Z

                                                              I followed your instructions: If not, you can use "Open a File" action, and in the Path, click the 3 small dots to browse to the Disk Utility app.

                                                              This is the Path.

                                                              /System/Applications/Utilities/Disk Utility.app

                                                              1. Beautiful - thank you. This explains it. The path apparently has been changed for OS apps in Catalina.

                                                                1. DDean Landon @Dean_Landon
                                                                    2020-03-26 03:19:53.200Z

                                                                    Aah, thank goodness. I thought I was losing my mind. :-)

                                                                    1. 3.5.1 will have a fix so that it also searches for apps in /System/Applications, which means the Launch Application action should work normally (ie. you'd be able to find Disk Utility there normally).

                                                                      1. DDean Landon @Dean_Landon
                                                                          2020-03-26 15:32:31.969Z

                                                                          That'll be great, Christian.

                                            • In reply tochrscheuer:
                                              Ron Aston @Ron_Aston
                                                2020-03-26 02:16:41.333Z

                                                Thanks a lot Christian! I’ll give this a go tomorrow but I’ll pass this onto Dean now so he can try it.

                                            • In reply tochrscheuer:

                                              Example of launching system preferences in the root (not already navigated to a sub folder):

                                              ReplySolution
                                              1. See this article for some examples of Terminal code that can open System Preferences:

                                                https://www.tweaking4all.com/forum/macos-x-software/macos-how-to-open-system-preferences-from-terminal/
                                            • D
                                              In reply toDean:
                                              Dean Landon @Dean_Landon
                                                2020-03-26 02:39:41.969Z

                                                Thanks guys. I appreciate it. :)