Skip to main content
Inspiring
March 29, 2014
Answered

InDesign Preference Settings

  • March 29, 2014
  • 1 reply
  • 2647 views

Hi,

   I need to enable the options in InDesign Preferences. How to enable the Font Preview Size.

InDesign Preferences for Appearance of Black and File Handling is under which preference?? (Eg., viewpreference, textpreference)

Some of them are found.  Some of them are not found.

Preserve Images Dimension when Relink, Snippet Import Position at and properties under Applearance of black.  Where can i find the properties for these ?? 

If anyone know pls let me know.

Thanks in advance,

Sudha K

This topic has been closed for replies.
Correct answer Jongware

Use the CHM version of my reference. The wording in Javascript is at times different from the exact phrase in the interface. With a good CHM viewer, you can use search the full text.

Educated guesses lead me to:

http://jongware.mit.edu/idcs6js/pc_DocumentPreference.html#snippetImportUsesOriginalLocation

http://jongware.mit.edu/idcs6js/pc_ImagePreference.html#preserveBounds

http://jongware.mit.edu/idcs6js/pc_ColorSetting.html#idealizedBlackToScreen

1 reply

Trevor:
Legend
April 1, 2014

I presume you are using Jongwares reference guide.  If not you shoud be.

If you want you can make your own in an indesign document.

Here's a start of how to expore the properties.

for (n in app) $.writeln(n);

$.writeln("\r\rFOR MORE DETAILs ITERATE THE LIST\r\r");

for (n in app.generalPreferences) $.writeln(n);

Community Expert
April 1, 2014

@Trevor – yes.

Sometimes it's important not only knowing the properties, but also their actual values:

var myObject = app.generalPreferences;

for(x in myObject){

    try{

        $.writeln(x+"\t"+myObject);

        }catch(e){$.writeln(x+"\t"+e.message)};

    };

Uwe

Community Expert
April 8, 2014

Hi Jarek Jongware,

Regarding the suggestion for the capitalization and plurals of the words I was really talking about the preferences suite.  This was the suite that had caused me more problems when I started scripting.  I clicked onto the plural use of and capitalization of objects like rectangles and can see a logic (all be it a bit of a pain in the neck) of having a singular capitalized form Rectangle for the the [object Rectangle], after all a rectangle's constructor.name is Rectangle and not

rectangles and the use of the plural form for a collection of rectangles (or rectangle objects).  I did struggle a bit more with the preferences which have no visible singular working form, there are [object Preferences] but not [object Preference].

All sounds pretty simple that I shouldn't have had any trouble with it but seeing as both and Uwe and I did somewhat struggle with the issue and that we probably are not too much thicker than the average bloke on the street and given the convenience of  of having a copyable title up the top for simple copy paste purposes I don't think it's a completely invalid "feature request".

All said you are 100% the boss on this topic and the chm Object Reference is probably the most useful and used scripting resource out there.

Thanks.

Hi Jarek Uwe,

I guess you must of had some German in your script titles or somewhere else in the file which caused it to be a 0 byte file.

Please can you try the below which has encoding, lineFeed and BOM added to it. I'm sure that will work but would like to hear some confirmation.

Regards,

Jarek Trevor

P.s. Hi Jarek

var topics = [],

      properties = [],

      z = 0, t, p, c;

for (t in app) topics[z++] = t;

z--;

for (n = 0; n < z; n++) {

    y = 0;

    properties = [];

    try {

        properties[0] = "********************   " + topics + "   *************************\r"

        for (p in app[topics]) {

        try {c = app[topics]

} catch (e) {c = "?";};

        properties[++y] = "app." + topics + "." + p + "\t=\t" + c;

        }

    properties = properties.join("\r");

    }

    catch (e) {};

}

temp = new File (Folder (Folder.temp) + "/" + app.name + " Properties and Preferences " + ("" + new Date).replace(/:/g,"\xB7").replace(/\s\S+$/,"")+ ".txt");

temp.encoding = "UTF-8";

temp.lineFeed = ($.os[0]=="M") ? "Macintosh" :" Windows";

temp.open('w');

temp.write("\uFEFF************* " + app.name + " Properties and Preferences *************\r\r");

temp.write("********************   Contents   *************************\r\rapp." + topics.join("\rapp.") + "\r\r\r" + properties.join("\r\r"));

temp.close();

$.sleep(300);

temp.execute(true);


Hi, Trevor!

Now. It's working as intended :-)

Uwe