3 Replies Latest reply on Oct 25, 2011 3:07 AM by rlloyd9

    CS5 - default settings for Quick Apply menu

    rlloyd9

      I need to set the defaults for Quick Apply to just Paragraph p: and Text c:

       

      How do I access the preferences for Quick Apply in javascript ?  (CS5)

       

      thanks in advance

      René

        • 1. Re: CS5 - default settings for Quick Apply menu
          rlloyd9 Level 1

          it seems to be something like this ( if the menus are in Danish, that is )

           

          var Anvend = app.menus.itemByName( 'Menuen Indstillinger for Anvend hurtigt').menuItems;

           

          for(var myCounter1 = 0; myCounter1 < Anvend.length; myCounter1 ++){

                  

               if (Anvend[myCounter1].name== 'Medtag tegnformater (c:)' ) {

                   try {

                          Anvend[myCounter1].select()

                          }

                   catch (myError)

                      {

                          // select fails if already set

                      }

                   }

               else if  (Anvend[myCounter1].name== 'Medtag afsnitsformater (p:)' ) {

                  try {

                          Anvend[myCounter1].select()

                      }

                  catch (myError)

                      {

                          // select fails if already set

                      }

                   }

              

               else

                  {

            

                  try {

                          Anvend[myCounter1].remove()

                      }

                  catch (myError)

                      {

                          // remove fails if already gone

                      }

                   } // end if

                  

                   } // end for

          • 2. Re: CS5 - default settings for Quick Apply menu
            rlloyd9 Level 1

            Except, this wasn't exactly what I wanted.  I want to uncheck the menuitems, not remove them. But checked is a readonly attribute. Is this not possible then ?

            • 3. Re: CS5 - default settings for Quick Apply menu
              rlloyd9 Level 1

              I have also looked at defining a custom workspace with a menu setup - this allows me to hide menuitems - but it doesn't let me set a default for checked / unchecked...