Here’s what I’ve got:
set the_new_item to make new menu item at the end of menu items of theObject with properties {title:"Web Searches"}
set web_submenu to make new sub menu
set the_new_item's sub menu to web_submenu
set the_new_item to make new menu item at the end of menu items of the sub menu of theObject with properties {name:tempItem, title:tempTitle, enabled:true}
It gets all kinds of argument errors and things. I’m probably doing everything wrong, and help would be appreciated. Thanks.