Skip to content

[business-logic] desktop_control_darwin.go menuSelect generates wrong AppleScript menu chain - menu_select fails on every depth>=2 path #819

Description

@topcheer

File: internal/tool/desktop_control_darwin.go L518-527.

Each nesting level generates 'menu item X of menu X' - the menu is named with the ITEM's own name. Live osascript probe on macOS: the menu under menu bar item 'File' is named 'File' (menus are named after their PARENT). menu_select 'File > Save' therefore references nonexistent 'menu "Save"' and always errors (-1728). Only depth-1 (opening a top-level menu) works.

Impact: High - the entire macOS menu_select capability is non-functional.
Fix: name each 'of menu' with the parent ('menu item "Save" of menu "File" of menu bar item "File"').
Verified by independent re-review with live System Events probe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions