Skip to content

eoneof/indesign-custom-menu-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InDesign custom menu maker

With this simple framework you can create an infinite amount of your very own menu items in a declarative way.

Menus are useful for multi-purpose startup scripts.

screenshot Demo

Usage

  • Include MenuMaker.jsx into your script
  • Define a handler:
    var handler = function() {
      // Do your stuff here
    }
  • Define a submenu:
    var subMenu = new SubMenu({
      name: 'Do my stuff',
      onClick: handler
    })
  • Define a menu:
    var menu = new MenuMaker({
      name: 'Stuff',
      items: [subMenu]
    })

For more details see demo.jsx

Limitations

  • Sub-sub-menus are not supported
  • There are no extra error handlers or parameters checks

About

Create InDesign custom menu items with ease

Topics

Resources

License

Stars

Watchers

Forks