3 Replies Latest reply on Aug 23, 2010 12:50 PM by Harbs.

    Scripting preferences

    ChuckChiavarini

      I'm working on a script that sets various preferences for InDesign and InCopy. My goal is to be able to set every preference that appears on every tab of the Preferences dialog in either application.

       

      I've got most of them, but there are a few I can't nail down.

       

      InCopy:

      1. General tab: Enable attached scripts. (I'm assuming this can't be done with a script for security reasons.)

       

      2. Type tab: Set the font preview size.

       

      3. Grids tab: Set the "relative to" value for the baseline grid. (I can do this in InDesign, but the property seems to be read only for InCopy.)

       

      4. Guides & Pasteboard tab: Set the minimum vertical offset value for the pasteboard. (I can do this in InDesign, but the property seems to be read only for InCopy.)

       

      5. Display performance tab: all settings. (I can set all of these in InDesign, but can't find a way to get it done in InCopy.)

       

      6. File Handling tab: enable/disable Version Cue.

       

      InDesign:

      1. Type tab: Set the font preview size

       

      2. File Handling tab: Set snippet-import options and enable/disable Version Cue.

       

      Thanks in advance for any pointers.

        • 1. Re: Scripting preferences
          [Jongware] Most Valuable Participant

          Did you go over all Preferences in the JS Help?

           

          While checking for your Font Preview Size, I found a few mystifying ones in the General Preferences:

           

          enableMultiTouchGesturesboolr/wControls whether or not multi-touch gestures are enabled.

          objectsMoveWithPageboolr/wControls whether page items move when a page is repositioned from the UI. The option/alt key temporarily reverses this property

           

          .. and in ImageIOPreference, this one:

           

          previewResolutionnumberreadonlyThe image resolution in ppi, set when the graphic is imported.

           

          (unfortunately it's read-only!).

           

          (I didn't find either of your 2 missing items.)

          • 2. Re: Scripting preferences
            ChuckChiavarini Level 1

            Yes, I've been through the object model upside down and sideways. The missing items that puzzle me the most are the ones that work in InDesign but don't seem to be supported (or are read only) in InCopy.

             

            >>> "[Jongware]" <forums@adobe.com> 8/23/2010 3:40 PM >>>

            Did you go over all Preferences in the JS Help?

             

            While checking for your Font Preview Size, I found a few mystifying ones in the General Preferences:

             

            enableMultiTouchGestures

            r/w

            Controls whether or not multi-touch gestures are enabled.

             

            objectsMoveWithPage

            r/w

            Controls whether page items move when a page is repositioned from the UI. The option/alt key temporarily reverses this property

             

             

            .. and in ImageIOPreference, this one:

             

            previewResolution

            readonly

            The image resolution in ppi, set when the graphic is imported.

             

             

            (unfortunately it's read-only!).

             

            (I didn't find either of your 2 missing items.)

            • 3. Re: Scripting preferences
              Harbs. Level 6

              This script should save you a whole pile of work:

              http://in-tools.com/wordpress/indesign/scripts/preference-manager-script

               

              Harbs