0 Replies Latest reply on Sep 15, 2009 5:57 AM by Loic.Aigon

    [JS] menuAction.invoke() working with cs3 but not cs4 :-(

    Loic.Aigon Adobe Community Professional



      I wrote a script and chose to call a menu through menuAction.invoke();

      I wanted to use an independant locale string to avoid dealing with localization.


      It works nice on CS3 but just fails in the CS4.


      //I want to fit the window to the spread

      var myMenuAction = app.menuActions.item("$ID/Toolbar Fit in Window");


      I am really stuck because I have read the indesign CS4 scripting guide carefully on page 119. The given instruction seem to be the same as in the  indesign CS3 scripting guide.


      I can't see what I did wrong and yet, no way to get it working on CS4. Any hint ?


      Thanks in advance,