No internet connection
  1. Home
  2. How to

How create a script to close any app.

By Chip Williams @Chip_Williams
    2021-11-16 14:25:09.575Z

    Is there an availble command for closing pro tools or a basic one that can point at any application? I tried to create a toggle button, but I think i'd honestly prefer a button specific for closing pro tools, any other app as well

    • 4 replies
    1. Hi Chip,

      We're getting an easy to use "Quit Application" action in the upcoming version of SoundFlow, but for now you can automate this by accessing the menu of the app in question. There's a lot of examples of this in the forum already :)

      But maybe that's not what you meant?

      1. CChip Williams @Chip_Williams
          2021-11-16 14:58:10.572Z

          That's exactly what i'm looking for. When i searched I found the posts about the scripts for creating toggle buttons. i also just anticipated finding the command already somewhere as a macro.

          1. In reply tochrscheuer:
            CChip Williams @Chip_Williams
              2021-11-16 15:06:26.620Z

              So here's what I found - use the exisiting macro - Click Menu Item, Then just point it at the app and menu entries and there ya go. Will work for any app, and then the script convert helps us non-coders understand what that looks like in script.

              1. In reply tochrscheuer:
                CChip Williams @Chip_Williams
                  2021-11-16 15:07:32.273Z

                  This is it for PT:

                  sf.ui.proTools.menuClick({
                  menuPath: ["Pro Tools","Quit Pro Tools | Ultimate"],
                  });