Skip to content

Open an app's menu bar item from a popup block #431

Closed

Description

@Seb-GRAF

Problem

A popup can't open the panel of an app that lives only in the menu bar. Such apps, like Liip Timesheet, show their window as a popover under their menu bar icon, so open with their bundle ID only activates them and nothing appears. A package widget that shows the app's data can't give its popup an "Open app" button that works. With the macOS menu bar hidden, as StableBar usually keeps it, the icon isn't on screen either.

Proposal

Popup blocks take openMenuBarItem, a menu bar item reference like the entries of a Menu bar items widget's shown and hidden: app as a bundle ID or app name, and item for an app with several items.

{ "type": "text", "text": "Open app", "openMenuBarItem": { "app": "ch.liip.timesheet" } }
  • Clicking the block presses that item as the Menu bar items row does, through AppMenu.press, which shows the hidden menu bar first so the app's panel opens under its icon.
  • It needs Accessibility, like the row, and asks for it when missing.
  • Like open, it runs no command, so packages without commands can use it. It can't be combined with onClick, onClickField, open, openField or quitField, and it follows the popup's dismissOnAction.
  • The schema and the popup and package guides describe it.

Possible today

No. A script can press the item through System Events with osascript, at the cost of Automation access and without the hidden menu bar handling that pressInMenuBar does.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 6, 2026
  2. stablebar-releases commented on Nov 6, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.11.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions