Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

MenuID or MenuAction

Return to Member Forum

  • Author
    Posts
    • #57906
      Duncan Comics
      Participant

      Greetings.

      I've searched long and far for this… my team of oxen have all perished and i'm hoping to get directions!

      Does anybody have a list of all the menu ID numbers or Menu Actions that one may run through an invoke ?

      Specifically.. arrange/send to back

      I wouldn't mind getting the id numbers for the other menu stuff!

      -Duncan

    • #57911

      Hi Duncan,

      Make a new document with a text frame. Click your text cursor into the text frame, and run this script to get a list of all ID's (ID boasts slightly over 3,200 commands!). I don't know how to get the “invoke” name, though — perhaps these are somewhere in the SDK documentation or headers. I'll have a look when I get home.

      res = [];
      for (a=0; a<app.menuActions.length; a++)
      res.push (app.menuActions[a].name+” (“+app.menuActions[a].area+”) = “+app.menuActions[a].id);
      app.selection[0].contents = res.join(“r”);

    • #57912
      Duncan Comics
      Participant

      You know what Jongware,

      You must go to work, casualy do your thing, and then suddenly when there's an indesign issue you excuse yourself to the other room and suddenly INDD MAN APPEARS! You have a cape with the indesign logo on it!

      You probably also work with a cute girl named lois don't you?!

      Thanks for the list script!

      app.menuActions.itemByID(####).invoke();

      Thats what i use to invoke the menu command inside my functions.

      Thanks again INDD Man!

      -Duncan

      Cartoon offer still stands!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads