Skip navigation
Johnny_Bigtime
Currently Being Moderated

Loading personal preferences in CS3

Jun 22, 2009 7:16 AM

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

 
Replies
  • Currently Being Moderated
    Jun 22, 2009 8:46 AM   in reply to Johnny_Bigtime

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 10:43 AM   in reply to Johnny_Bigtime

    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.)

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 12:20 PM   in reply to Johnny_Bigtime

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 1:07 PM   in reply to Dog of War

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 1:09 PM   in reply to Dog of War

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 2:26 PM   in reply to Peter Spier

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 2:30 PM   in reply to Johnny_Bigtime

    Can that script be posted as a javascript?

     

    Please, oh please?

     

    Mike cross-platform Witherell in Maryland

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 2:36 PM   in reply to Johnny_Bigtime

    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&Item id=30

     

    Click on the third hyperlink listing down from the top.

     

    Mike Witherell in Maryland

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 3:44 PM   in reply to Michael Witherell

     

    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;
      }
    }
    
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2009 7:34 PM   in reply to Harbs.

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

     

    MIke Witherell in Maryland

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2009 8:02 AM   in reply to Johnny_Bigtime

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2009 8:25 AM   in reply to Johnny_Bigtime

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2009 7:25 PM   in reply to Michael Witherell

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2009 4:27 AM   in reply to Johnny_Bigtime

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 19, 2012 3:06 AM   in reply to Harbs.

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points