[Bug] Union command fails when run from a JSFL script in Animate 2027 (27.0.0.33), but works from the menu
Environment
- Adobe Animate 2027, version 27.0.0.33 (updated on 2026-11-11)
- Windows 11 Pro (build 26300)
- The same command worked in Animate 2024.
Steps to reproduce
1. Create a one-line JSFL command that calls the union method of the current document.
2. Put it in the Commands folder and assign a keyboard shortcut to it.
3. In a document, select a shape on the stage (merge-drawing shape).
4. Run the command (via the shortcut or the Commands menu).
Expected result
The selected shape is combined into a drawing object, the same as the Union item in the Modify menu (Combine Objects submenu).
Actual result
An error dialog says that the union function is currently unavailable.
With the same selection, the Union item in the Modify menu works correctly, so only the scripted call fails.
Workaround
Assigning the keyboard shortcut directly to the Union menu item (Modify menu, Combine Objects submenu) works.

