<pre>on createCustomMenubar  toComputer  put getCustomMenubar() into customMenus  if customMenus is empty then exit createCustomMenubar  --------------------------------------------------------------------------  put the menus into standardMenubar  repeat with x = 2 to the number of lines of standardMenubar    delete menu line x of standardMenubar  end repeat  --------------------------------------------------------------------------  repeat with x = 1 to the number of lines of customMenus    put line x of customMenus into menuData    createCustomMenuItem menuData  end repeat  --------------------------------------------------------------------------  get the short name of this stack  if there is a menuItem it of menu "Modules"  then set checkMark of menuItem it of menu "Modules" to trueend createCustomMenubar</pre>