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
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.)
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.
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
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
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;
}
}
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
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
North America
Europe, Middle East and Africa
Asia Pacific