1 Reply Latest reply on Oct 1, 2013 7:53 AM by Jump_Over

    How to enable the checkbox of "Case Sensitive" through JavaScript in the menu of "Check Spelling"

    Abhi_apple

      Hi Friends,

       

      I am working on a JavaScript where I need to invoke the "Check Spelling" dialog box and click on the check box of "Case Sensitive".

       

      I am able to invoke the check spelling box by:

       

      app.menuActions.item("Check Spelling...").invoke();

       

      However, I am unsure how to activate and deactivate the check box of "Case Sensitive" through JavaScript. Appreciate if anyone can suggest a way out.

       

      Please see the below screen shot for the exact requirement.

       

      Screen shot 2013-10-01 at 5.37.07 AM.png

       

      Thanks,

       

      Abhi

        • 1. Re: How to enable the checkbox of "Case Sensitive" through JavaScript in the menu of "Check Spelling"
          Jump_Over Level 5

          Hi,

           

          This checkbox is related to "Add" button, so it manage adding words to chosen dictionary in case sensitive or unsensitive mode. Is it a workflow you were looking for?

           

          So this dialog is complex since spelling and adding word to a dict - both methods - are connected in one place.

           

          As far as I know, there is no addWords preferences.

           

          From the other hand - this dialog looks like "user interaction" by default, so some options can lay outside of script area.

           

          ID UI seems to remember this button "state", but to the end of ID session only.

          Thats why is hard to believe this option is connected to preferences.

           

          Moreover, checkboxes from dialogs "Dictionary..." and "Check Spelling..." are connected, so anyone ON/OFF involves another to the same state.

           

          Jarek