No internet connection
  1. Home
  2. Macro and Script Help

Create or Delete Temp Group doesn't delete the temp group anymore

By Gary Philips @Gary_Philips
    2024-06-13 02:34:11.137Z

    Title

    Create or Delete Temp Group doesn't delete the temp group anymore

    What do you expect to happen when you run the script/macro?

    This has been broken for me for a while. Creates group fine. Will not delete the group though. Selects all OTHER groups and asks if you want to delete, forcing you to say no and manually delete the temp group

    Are you seeing an error?

    could not delete temp group. line 6

    What happens when you run this script?

    This has been broken for me for a while. Creates group fine. Will not delete the group though. Selects all OTHER groups and asks if you want to delete, forcing you to say no and manually delete the temp group

    How were you running this script?

    I used a keyboard shortcut within the target app

    How important is this issue to you?

    5

    Details

    {
        "inputExpected": "This has been broken for me for a while.  Creates group fine.  Will not delete the group though.  Selects all OTHER groups and asks if you want to delete, forcing you to say no and manually delete the temp group",
        "inputIsError": true,
        "inputError": "could not delete temp group.  line 6\n",
        "inputWhatHappens": "This has been broken for me for a while.  Creates group fine.  Will not delete the group though.  Selects all OTHER groups and asks if you want to delete, forcing you to say no and manually delete the temp group",
        "inputHowRun": {
            "key": "-Mpfwh4RkPLb2LPwjePT",
            "title": "I used a keyboard shortcut within the target app"
        },
        "inputImportance": 5,
        "inputTitle": "Create or Delete Temp Group doesn't delete the temp group anymore"
    }

    Source

    
    var selection = sf.ui.proTools.selectedTrackNames.join(';');
    if (globalState.trackSelection === selection) {
        //Same tracks as last.
        //If Temp Group exists, remove it
        sf.ui.proTools.groupsTempCreateOrDelete();
    } else {
        //New tracks. Remove and Create
        sf.ui.proTools.groupsTempDelete({}, function (err) { });
        sf.ui.proTools.groupsTempCreate();
    }
    
    globalState.trackSelection = selection;
    
    

    Links

    User UID: SvvTAi4f55Q3ZPiR87JW0e8nJNs2

    Feedback Key: sffeedback:SvvTAi4f55Q3ZPiR87JW0e8nJNs2:-O-ERVnanHCf4l9AUYr4

    Feedback ZIP: XO9NKn1MfK7A2o5a6YaJ7YYIjBva60w4YvU0aUEKq5msVwFK/HVEgNbkZa9Rrl6UY/VaNl/gG7fqc2mA3IW2GJOfcVkqbDx6JBybpMBtL+6pq+Z/CN9bFjpiVHxelkX6NqiNwm8oAex0vmui0t36K68lUhCMUmXp/fy2b+fm8CvF3gsd99xLWllOKF23JNbqGI/kizk5UxT8PCPjG3bwCMKLs7U5+4bDoVGxS3UZVyVqHO8MsD+kQ0mPHYW2bArCY8P0SIXBIHdrR39gg+BOYaMwKzbyJiKfeZLuSKv5acCgU3vlx/UUZ4FZkh1sciLzqNuqUZNr8KCHEBeWLNnrviQPB9hoB21QYCHKj8rlPsk=

    Solved in post #14, click to view
    • 14 replies
    1. Gary Philips @Gary_Philips
        2024-06-21 00:35:27.760Z

        Can anybody point me in a direction toward resolving this? No one else reporting the same issue? Thanks!

        1. In reply toGary_Philips:
          Kitch Membery @Kitch2024-06-28 22:43:49.820Z

          Hi @Gary_Philips,

          Unfortunately, I'm unable to reproduce this issue on my machine.

          Did this issue start happening after you upgraded to Sonoma by chance?

          And if so could I get you to do a screen recording of the issue occurring when running a brand new script with the following code?

          sf.ui.proTools.groupsTempCreateOrDelete();
          

          Hopefully this information will help us troubleshoot the issue.

          Thanks in advance.

          1. S
            In reply toGary_Philips:
            SoundFlow Bot @soundflowbot
              2024-06-28 22:45:59.229Z

              This report was now added to the internal issue tracked by SoundFlow as SF-1186

              1. In reply toGary_Philips:
                Gary Philips @Gary_Philips
                  2024-07-12 22:32:03.006Z

                  Hey @Kitch any update on this? i don't seem to have access to the actual bug report to take a peek. Thanks!

                  1. Kitch Membery @Kitch2024-07-12 23:22:36.682Z

                    Hi @Gary_Philips,

                    Thanks for your patience with this.

                    We are tracking this issue internally and it is in the cue to be addressed. Once the issue has been resolved this thread will be updated.

                    1. PPhilip weinrobe @Philip_weinrobe
                        2024-09-30 21:59:53.491Z

                        not sure if this has been resolved yet but i'm still experiencing this issue.
                        seems to me that the problem is pro tools is now throwing up a new dialog warning about deleting groups not being able to be undone, and that is stopping the flow.

                        1. Gary Philips @Gary_Philips
                            2024-09-30 22:09:15.966Z

                            Yeah, still not working here either. 5.8.2. Such a bummer -- must be something incredibly complicated for us to go 4 months without a resolution. . . .

                            1. PPhilip weinrobe @Philip_weinrobe
                                2024-09-30 22:14:01.835Z

                                i've made a little delete all groups script i run in case i get this dialog, then re-run whatever script contained the temp group command.

                                sf.ui.proTools.appActivateMainWindow();
                                sf.ui.proTools.invalidate();
                                
                                // Make sure we're on the Edit window.
                                if (!sf.ui.proTools.getMenuItem("Window", "Edit").isMenuChecked) {
                                    sf.ui.proTools.menuClick({
                                        menuPath: ["Window", "Edit"],
                                    })
                                };
                                
                                sf.ui.proTools.groupsEnsureGroupListIsVisible();
                                
                                const [allGroup, ...groupNames] = sf.ui.proTools.mainWindow.groupListView.children.whoseRole.is("AXRow").map(row =>
                                    row.children.whoseRole.is("AXCell").map(cell =>
                                        cell)[1].buttons.map(btn =>
                                            btn.title.invalidate().value)[0]).map(names => names.split(" - ").slice(1).join(" - "));
                                
                                if (groupNames.length > 0) {
                                
                                    sf.ui.proTools.mainWindow.groupListPopupButton.popupMenuSelect({
                                        menuPath: ["Suspend All Groups"],
                                        targetValue: "Disable"
                                    });
                                
                                    sf.ui.proTools.groupsActivate({ groupNames: groupNames });
                                
                                    sf.ui.proTools.mainWindow.groupListPopupButton.popupMenuSelect({
                                        menuPath: ["Delete Active *"],
                                        useWildcards: true
                                    });
                                
                                   // const deleteConfirmation = sf.ui.proTools.confirmationDialog.invalidate().buttons.whoseTitle.is("Delete").first.elementWaitFor().element
                                   // if (deleteConfirmation.exists) {
                                  //      deleteConfirmation.elementClick();
                                  //  };
                                
                                };
                                

                                i then threw this in a macro and added a "press keys" with the enter button.
                                it's a very ugly workaround, and slows me down...but it works.

                                very confused as to why this isn't fixed yet.

                                1. In reply toGary_Philips:
                                  Kitch Membery @Kitch2024-09-30 22:49:33.278Z

                                  Hi @Gary_Philips, @Philip_weinrobe and @Will_Cohen,

                                  I'm sorry this issue is still unresolved. We will look into resolving this asap.

                                  Please note in the future that it's always best to log your own individual Bug reports for issues you are seeing, that way, we'll get the information we need to address them. By doing so, it also facilitates tracking how many people are experiencing similar problems.

                                  Thanks in advance.

                                  1. Hi all,

                                    Apologies for the delay in handling this!

                                    Please see the root cause analysis and potential fix here:

                                    Reply1 LikeSolution
                          • W
                            In reply toGary_Philips:
                            Will Cohen @Will_Cohen
                              2024-08-15 09:51:43.914Z

                              Unfortunately this one hasn't worked for me for a while either... I'm on the latest v5.8.1 as of now. This is something I have historically used constantly - any update on when it might get looked at?

                              1. Gary Philips @Gary_Philips
                                  2024-08-15 17:08:28.678Z

                                  Same! Incredibly frustrating. That was the script that made me first sign up for SoundFlow and it hasn’t worked in MONTHS.

                                  1. WWill Cohen @Will_Cohen
                                      2024-08-15 17:25:16.619Z

                                      Yep - it's one of the fundamental uses for me too.

                                      1. Hi guys,

                                        I do apologize this took us longer than usual to address. We're managing hundreds of simultaneous requests, in addition to working on both 5.9 and 6.0 in parallel, and I failed to prioritize this properly as I wasn't aware of its importance. We'll see what we can do to make sure we get better at this.

                                        Please see the following post for root cause analysis and a likely fix: