Skip to main content
Participant
October 5, 2016
Question

I would like to know if you can create embeded drop down menus and check boxes in FrameMaker.

  • October 5, 2016
  • 1 reply
  • 342 views

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.

This topic has been closed for replies.

1 reply

saurabhgedam
Participant
March 7, 2018

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");

  

    }

}