hammerspoon2-docs
    Preparing search index...

    Function create

    • Create a new menu bar item

      Parameters

      • Optionalhidden: boolean

        Pass true to create the item hidden (not shown in the menu bar). Defaults to false (immediately visible).

      Returns HSMenuBarItem

      A new HSMenuBarItem

      A visible item stays in the menu bar, with its callbacks, until it's hidden or destroyed, even if you don't keep a reference to it