19 Replies Latest reply: Jul 19, 2012 3:06 AM by greenrookie RSS

    Loading personal preferences in CS3

    Johnny_Bigtime Community Member

      Hi:

       

      I'm using InDesign CS3. I've been having a preferences annoyance for some time now.

       

      I have my workspace and InDesign preferences set to my wishes, however when I work on a file that another designer created the preferences are obviously different. As this doesn't effect my workspace, it effects my InDesign preferences. I would prefer not resetting the Type, composition, Units & Increments, etc. everytime I work on someone else's file. Is there any way to load the preferences I've set in a way similar to loading a workspace?

       

      Thanks,

      JP

        • 1. Re: Loading personal preferences in CS3
          Peter Spier ACP/MVPs

          I think not. Preferences set with nothing open become global for new files, and with a documten open are for that doc only, but in either case, they are saved with the document when closed.

          • 2. Re: Loading personal preferences in CS3
            Johnny_Bigtime Community Member

            I didn't think so either. I was hoping I was missing something. Thanks for your reply.

            • 3. Re: Loading personal preferences in CS3
              Dog of War Community Member

              It can be scripted. I've attached an Apple Script for CS3 that adjusts some preferences and style sheet settings when you run it. You can open it and modify it (to whatever values you want) / add to it as needed. (I hadn't used this in a while, but I ran a quick test and it seems to work ok.)

              • 4. Re: Loading personal preferences in CS3
                Johnny_Bigtime Community Member

                Here's a noob question: how do I download attachments off this forum? I can't click on it.

                • 5. Re: Loading personal preferences in CS3
                  Dog of War Community Member

                  I'm new to using the attachments, too. I think you need to wait till it no longer says "queued" next to it. Not sure why such a small file would take so long, but I suppose there's a good reason.

                  • 6. Re: Loading personal preferences in CS3
                    Johnny_Bigtime Community Member

                    That's what I figured. Thanks Dog.

                    • 7. Re: Loading personal preferences in CS3
                      Peter Spier ACP/MVPs

                      Dog of War wrote:

                       

                      Not sure why such a small file would take so long, but I suppose there's a good reason.

                      No, not really...

                       

                      Sometimes it works and sometimes it doesn't. Seems to be no reason behind why things get stuck in the queue.

                      • 8. Re: Loading personal preferences in CS3
                        Peter Spier ACP/MVPs

                        Dog of War wrote:

                         

                        It can be scripted. I've attached an Apple Script for CS3 that adjusts some preferences and style sheet settings when you run it. You can open it and modify it (to whatever values you want) / add to it as needed. (I hadn't used this in a while, but I ran a quick test and it seems to work ok.)

                        Sure, you can script the start-up prefs, but that won't, I think, have any effect on an existing document. As I said earlier, prefs for the document become part of the data in the file.

                        • 9. Re: Loading personal preferences in CS3
                          Dog of War Community Member

                          Run the script with the document open. It will then change the prefs for that document. If you are working on a lot of supplied files that you want to change the prefs for it will save some time to run the script on each file before you begin editing it.

                           

                          This is pretty basic, but cut and paste into Applescript and then modify as needed and it will work.

                           

                          tell application "Adobe InDesign CS4"

                          activate

                           

                          tell document 1

                           

                          set properties of view preferences to {horizontal measurement units:points, vertical measurement units:points}

                          set ruler origin of view preferences to page origin

                          set superscript size of text preferences to 65

                          set superscript position of text preferences to 33.3

                          set subscript size of text preferences to 65

                          set subscript position of text preferences to 33.3

                          set small cap of text preferences to 75

                          set cursor key increment of view preferences to 1

                          set kerning key increment of text preferences to 5

                          set baseline shift key increment of text preferences to 0.1

                          set leading key increment of text preferences to 0.1

                           

                          set x to the name of every paragraph style

                          --set PScount to the count of every item of x

                          repeat with i from 2 to the count of x

                          set PSname to name of paragraph style i

                          set composer of paragraph style PSname to "Adobe Single-line Composer"

                          set minimum word spacing of paragraph style PSname to 85.0

                          set desired word spacing of paragraph style PSname to 100.0

                          set maximum word spacing of paragraph style PSname to 133.0

                          set minimum letter spacing of paragraph style PSname to 0.0

                          set desired letter spacing of paragraph style PSname to 0.0

                          set maximum letter spacing of paragraph style PSname to 0.0

                          set hyphenate after first of paragraph style PSname to 2

                          set hyphenate before last of paragraph style PSname to 3

                          set hyphenate ladder limit of paragraph style PSname to 2

                          set hyphenate capitalized words of paragraph style PSname to true

                           

                           

                          end repeat

                          end tell

                          end tell

                          • 10. Re: Loading personal preferences in CS3
                            Michael Witherell ACP

                            Can that script be posted as a javascript?

                             

                            Please, oh please?

                             

                            Mike cross-platform Witherell in Maryland

                            • 11. Re: Loading personal preferences in CS3
                              Michael Witherell ACP

                              By the way, for those who would like to sort out which preferences are document-specific and which preferences are application-specific, check out this freely downloadable information:

                               

                              http://jetsetcom.net/index.php?option=com_content&task=view&id=24&Itemid=30

                               

                              Click on the third hyperlink listing down from the top.

                               

                              Mike Witherell in Maryland

                              • 12. Re: Loading personal preferences in CS3
                                Johnny_Bigtime Community Member

                                AWESOME. This works great. How do I set the text wrap? I tried a few different options but they all failed.

                                • 13. Re: Loading personal preferences in CS3
                                  Harbs. MVP

                                   

                                  Please, oh please?

                                  Since you asked so nicely...

                                   

                                  try{SetPrefs()}
                                  catch(e){}
                                  
                                  function SetPrefs(){
                                    var e;
                                    var doc=app.documents[0];
                                    doc.viewPreferences.properties= {
                                      horizontalMeasurementUnits : MeasurementUnits.points,
                                      verticalMeasurementUnits : MeasurementUnits.points,
                                      rulerOrigin : RulerOrigin.PAGE_ORIGIN,
                                      cursorKeyIncrement : 1
                                    };
                                       
                                    doc.textPreferences.properties = {
                                      superscriptPosition : 33.3,
                                      superscriptSize : 65,
                                      subscriptPosition : 33.3,
                                      subscriptSize : 65,
                                      smallCap : 75,
                                      baselineShiftKeyIncrement : 0.1,
                                      leadingKeyIncrement : 0.1
                                    }
                                       
                                    var styleProps = {
                                      composer : "Adobe Single-line Composer",
                                      minimumWordSpacing : 85,
                                      desiredWordSpacing : 100,
                                      maximumWordSpacing : 133,
                                      minimumLetterSpacing : 0.0,
                                      desiredLetterSpacing : 0.0,
                                      maximumLetterSpacing : 0.0,
                                      hyphenateAfterFirst : 2,
                                      hyphenateBeforeLast : 3,
                                      hyphenateLadderLimit : 2,
                                      hyphenateCapitalizedWords : true
                                    }
                                    try{var styles=doc.allParagraphStyles;}
                                    catch(e){var styles = doc.paragraphStyles}
                                    for(var i=1;i<styles.length;i++){
                                      styles[i].properties=styleProps;
                                    }
                                  }
                                  
                                  • 14. Re: Loading personal preferences in CS3
                                    Michael Witherell ACP

                                    Wow! Harbs, you are the greatest! I am going to try this right away!

                                     

                                    MIke Witherell in Maryland

                                    • 15. Re: Loading personal preferences in CS3
                                      Dog of War Community Member

                                      jb -- sorry, no time to test now, but it should be something like:

                                       

                                      set text wrap mode of text wrap preferences to jump object text wrap

                                       

                                      set text wrap offset of text wrap preferences to [12, 12]

                                       

                                      set text wrap side of text wrap preferences to both sides

                                      • 16. Re: Loading personal preferences in CS3
                                        Michael Witherell ACP

                                        I've been playing with this script! Another question or two for you, Harbs, if you wouldn't mind?

                                         

                                        In your JavaScript:

                                            minimumLetterSpacing : 0.0,
                                            desiredLetterSpacing : 0.0,
                                            maximumLetterSpacing : 0.0,

                                        Is that expressed in tenths of a percent? How would you write a negative 5 percentage on the minimumLetterSpacing? -5.0?

                                         

                                        If you have RulerOrigin.PAGE_ORIGIN, can you also have RulerOrigin.SPINE_ORIGIN, and RulerOrigin.SPREAD_ORIGIN?

                                         

                                        How would you also set the Basic Paragraph Style to Adobe Garamond Pro, 10 pt size?

                                         

                                        How would you set the Pages panel icon display to not be vertical?

                                         

                                        Is there a lookup resource dictionary listing all these ExtendScript objects and properties and methods?

                                         

                                        Mike Witherell in Maryland

                                        • 17. Re: Loading personal preferences in CS3
                                          emmanuel schaffner-GWzHaU Community Member

                                          If you want to view the different choice for a setting, you can open the "Extend Script Toolkit 2" (easiest way is by choosing to modify a script in the script palette/panel).

                                          Then choose "Object Model Adobe InDesign CS3" in the 'Help' menu.

                                          You'll be presented with a window where you can search all pertinent data, you already correctly guessed the different values for RulerOrigin.

                                           

                                          Another way is to use the JavaScript reference guide that jongware did and that is talked about here http://forums.adobe.com/thread/421981

                                           

                                          emmanuel

                                          • 18. Re: Loading personal preferences in CS3
                                            Michael Witherell ACP

                                            Thanks Emmanuel and also to Jongware for the InDesign CS4 object reference guide. You have provided me with hours of good clean research fun! I'm going to have a go at it.

                                             

                                            Mike Witherell in Maryland

                                            • 19. Re: Loading personal preferences in CS3
                                              greenrookie Community Member

                                              Hiya,

                                               

                                              This is an old post, but this JS that Harbs wrote still works great for me.

                                               

                                              Is there a way to make this JS into a toggle between the custom settings here, then setting back to the original document settings?

                                               

                                              Many thanks,

                                               

                                              gr