Auto Offline Stem / Grouping Assistant (kAXErrorCannotComplete (Grouping Assistant: Line 26))
Title
Auto Offline Stem / Grouping Assistant (kAXErrorCannotComplete (Grouping Assistant: Line 26))
What do you expect to happen when you run the script/macro?
Hi, I am getting this error message when trying to use the grouping assistant:
kAXErrorCannotComplete (Grouping Assistant: Line 26)
04.05.2024 16:06:39.62 [Backend]: !! Command Error: Grouping Assistant [user:clv3ja2a500002410vf6sf72r:ckp8e2cbv0009dn10fhkhlowv]:
kAXErrorCannotComplete (Grouping Assistant: Line 26)
SoundFlow.Shortcuts.AXUIElementException: kAXErrorCannotComplete
at SoundFlow.Shortcuts.AXUIElement.DoAction(String action) + 0x98
at SoundFlow.Shortcuts.Automation.Actions.ClickMenuAction.d__20.MoveNext() + 0x394
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x24
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x100
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x68
at SoundFlow.Shortcuts.Automation.AutoAction`1.d__25.MoveNext() + 0x33c
Are you seeing an error?
04.05.2024 16:06:39.62 [Backend]: !! Command Error: Grouping Assistant [user:clv3ja2a500002410vf6sf72r:ckp8e2cbv0009dn10fhkhlowv]: kAXErrorCannotComplete (Grouping Assistant: Line 26) SoundFlow.Shortcuts.AXUIElementException: kAXErrorCannotComplete at SoundFlow.Shortcuts.AXUIElement.DoAction(String action) + 0x98 at SoundFlow.Shortcuts.Automation.Actions.ClickMenuAction.d__20.MoveNext() + 0x394 --- End of stack trace from previous location --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x24 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x100 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x68 at SoundFlow.Shortcuts.Automation.AutoAction`1.d__25.MoveNext() + 0x33c
What happens when you run this script?
it just returns this enclosed error message, apparently in line 26 in the grouping assistant script? Best regards, Ola Kvernberg
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
5
Details
{ "inputExpected": "Hi, I am getting this error message when trying to use the grouping assistant: \n\nkAXErrorCannotComplete (Grouping Assistant: Line 26)\n\n04.05.2024 16:06:39.62 [Backend]: !! Command Error: Grouping Assistant [user:clv3ja2a500002410vf6sf72r:ckp8e2cbv0009dn10fhkhlowv]:\nkAXErrorCannotComplete (Grouping Assistant: Line 26)\n SoundFlow.Shortcuts.AXUIElementException: kAXErrorCannotComplete\n at SoundFlow.Shortcuts.AXUIElement.DoAction(String action) + 0x98\n at SoundFlow.Shortcuts.Automation.Actions.ClickMenuAction.d__20.MoveNext() + 0x394\n--- End of stack trace from previous location ---\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x24\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x100\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x68\n at SoundFlow.Shortcuts.Automation.AutoAction`1.d__25.MoveNext() + 0x33c", "inputIsError": true, "inputError": "04.05.2024 16:06:39.62 [Backend]: !! Command Error: Grouping Assistant [user:clv3ja2a500002410vf6sf72r:ckp8e2cbv0009dn10fhkhlowv]:\nkAXErrorCannotComplete (Grouping Assistant: Line 26)\n SoundFlow.Shortcuts.AXUIElementException: kAXErrorCannotComplete\n at SoundFlow.Shortcuts.AXUIElement.DoAction(String action) + 0x98\n at SoundFlow.Shortcuts.Automation.Actions.ClickMenuAction.d__20.MoveNext() + 0x394\n--- End of stack trace from previous location ---\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x24\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x100\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x68\n at SoundFlow.Shortcuts.Automation.AutoAction`1.d__25.MoveNext() + 0x33c", "inputWhatHappens": "it just returns this enclosed error message, apparently in line 26 in the grouping assistant script? Best regards, Ola Kvernberg", "inputHowRun": { "key": "-MpfwmPg-2Sb-HxHQAff", "title": "I used a Stream Deck button" }, "inputImportance": 5, "inputTitle": "Auto Offline Stem / Grouping Assistant (kAXErrorCannotComplete (Grouping Assistant: Line 26))" }
Source
function groupNames() {
let groupName = sf.ui.proTools.mainWindow.groupListView.childrenByRole('AXRow').map(r =>
r.childrenByRole('AXCell').allItems[1].buttons.first.title.value.split(/-\s/)[1])
return groupName.filter(name => name.includes("_Stem_")).map(x =>
+x.split("_")[0]).sort(function (a, b) { return b - a })[0]
}
sf.ui.proTools.appActivateMainWindow()
sf.ui.proTools.groupsEnsureGroupListIsVisible();
let highestNumber = groupNames()
if (highestNumber === undefined) { highestNumber = 1 } else { ++highestNumber }
let name
if (highestNumber >= 10) {
name = highestNumber + "_Stem_"
} else {
name = "0" + highestNumber + "_Stem_"
}
sf.ui.proTools.menuClick({
menuPath: ["Track", "Group..."],
});
sf.ui.proTools.createGroupDialog.elementWaitFor();
sf.ui.proTools.createGroupDialog.textFields.whoseTitle.is("").first.elementSetTextFieldWithAreaValue({
value: name,
});
Links
User UID: Aq32p7ObZrdtbhKWgSscIA0FzEm2
Feedback Key: sffeedback:Aq32p7ObZrdtbhKWgSscIA0FzEm2:-Nx2xKT9JlY2PLzGb0jr
Feedback ZIP: p0MlXPUOzlNrhv6Y8sx15PusiZ3xDKLHLHblNBIgm6qCbaSOaon4evWiqtFJlRtu4+D7JPo49lIHna4FuYDN/GEZpwgAwZtyGhOXuExdN8hVnqG8fgO0G+Sw/8aq6ePAc27HVbFybrQ3XK0kpoKfuH5uheU6kUC9xZdnsGaV5wqaOn2Kzc3EGaGOSih7dn9HpvPuM6g0Jl9xe9y3iuBVSdpt5qs2CkqkTxIPY/Tb+721sjFnh4lWqLdYwE8wNvilC92mmXZjJBmo45SmFWUiblZlDoeHuv/GsF66tBwvyWTj6qz+7mNCPkYoW2t5SXccwM/Hqk+T1/1c062oL80J0Q==
- SSoundFlow Bot @soundflowbot
Thanks for posting a question or an issue related to the 'Auto Offline Stem Bounce' package.
This package is made by @Yujiro_Yonetsu. We're auto-tagging them here so that they will hopefully be able to help you.