Copy link to clipboard
Copied
I would like to know if you can create embeded drop down menus and check boxes in FrameMaker.
We are publishing documents that require DTDs and we want to incorporate some drop down menus and check boxes.
Copy link to clipboard
Copied
var sampleCmd1 = DefineCommand(1, "Command1", "Open ExtendScript IDE", "");
var sampleCmd2 = DefineCommand(2, "Command2", "List of Scripts", "");
alert(typeof sampleCmd1.Name);
var sampleMenu = DefineMenu("ESTMenu", "Extendscripts Menu");
sampleMenu.AddCommandToMenu (sampleCmd1);
sampleMenu.AddCommandToMenu (sampleCmd2);
mainMenu = app.GetNamedMenu("!MakerMainMenu");
if(mySampleMenu.ObjectValid())
{
mySampleMenu.AddMenuToMenu(sampleMenu);
}
mySampleMenu = app.GetNamedMenu("!BookMainMenu");
if(mySampleMenu.ObjectValid())
{
mySampleMenu.AddMenuToMenu(sampleMenu);
}
UpdateMenus();
alert("Menus updated");
function Command(id){
if(id==1)
{
alert("This is the command to open the ExtendScript IDE but we havent written the function yet");
}
else if(id==2)
{
alert("This is the command to open the dropdown list of all scripts but we havent written the function yet");
}
}