Menu bar app

Set destinations example

This plugin creates a Hedge Menu (using Bitbar) and uses the Hedge API to set:

  • Sources

  • Destinations

  • Presets

  • Preferences

If you have any questions about this plugin, let us know

How to use

  • Download Bitbar here.

    • On Big Sur and want the menu item aligned properly? Use this BitBar build. (it's not an official build so you do need to allow it to run in macOS's security & privacy preferences).

  • Download the Hedge menu plugin 👇

  • Run the Bitbar app and point it to the pluginsfolder you just downloaded.

  • A Hedge menu should appear (see screenshot).

  • Install the Hedge presets by double-clicking the .hedge files in the presets folder.

  • Open plugins/hedge-menu/hedge-menu.applescript in (a) Script Editor

  • Edit the settings:

    Create a menu option by adding a menuAction object { }.

    • Each menuAction exists of:

      • menuLabel - the label visible in the menu

      • sourcePaths - a list of paths that get set as sources

      • destinationPaths - a list of paths that get set as destinations

      • presets - a list of presets that should get loaded. ALL other presets will get unloaded. Use the reset menuAction to load user presets again.

      • settings - a list of preferences that should get set (check defaultPrefs below for all available prefs)

      sourcePaths,destinationPaths, presets and settings are optional. Leave them empty {} when omitting.

Don't forget to reload Bitbar (CMD-R) after saving this file

------------------------------------------------------------
-- SETTINGS ------------------------------------------------
------------------------------------------------------------
set menuActions to { ¬
{ ¬
menuLabel: "Set Project X", ¬
sourcePaths: { }, ¬
destinationPaths: { "/Volumes/T1/Project X", "/Volumes/T2/Project X" }, ¬
presets: { "Project X - CAM A.hedge", "Project X - CAM B.hedge", "Project X - CAM C.hedge" }, ¬
settings: { ¬
{ "checkpoint_enabled", "1"} ¬
} ¬
},¬
{ ¬
menuLabel: "Set Project Y", ¬
sourcePaths: { }, ¬
destinationPaths: { "/Volumes/T1/Project Y", "/Volumes/T2/Project Y" }, ¬
presets: { "Project Y - CAM A.hedge", "Project Y - CAM B.hedge", "Project Y - CAM C.hedge" }, ¬
settings: { ¬
{ "checkpoint_enabled", "0"} ¬
} ¬
------------------------------------------------------------
  • Refresh the plugin via the menu > Hedge > Preferences > Refresh