Article View: adobe.scripting.indesign
Article #512JS TextColumnCount not working.
From: Malcolm Wooden
Date: Thu, 12 Mar 2009 14:48
Date: Thu, 12 Mar 2009 14:48
31 lines
1374 bytes
1374 bytes
I have a simple JS to create a new 6 column document, however I cannot get 'TextColumnCount' to work. Can anyone see where I'm going wrong here?
Thanks
var myDocument = app.documents.add();
with(myDocument.documentPreferences){
pageHeight = "297mm";
pageWidth = "210mm";
pageOrientation = PageOrientation.portrait;
facingPages = false;
}
with(myDocument.textDefaults){
kerningMethod = "Metrics";
appliedFont = "Arial";
}
with(myDocument.pages.item(0)){
with(marginPreferences){
columnCount = 6;
columnGutter = "4.233mm";
bottom = "12.7mm";
left = "12.7mm";
right = "12.7mm";
top = "12.7mm";
}
with(textFrames.add()){
geometricBounds = ["12.7mm", "12.7mm", "284.3mm", "197.3mm"];
contents = "This is some text";
with(TextFramePreference){
TextColumnCount = 6;
}
}
}
Technical Details
Message-ID:
<59b83154.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,55a509572845f42c,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Malcolm Wooden" <mwooden@dtptypes.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: JS TextColumnCount not working. Message-ID: <59b83154.-1@webcrossing.la2eafNXanI> Date: Thu, 12 Mar 2009 07:48:38 -0700 Lines: 33 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit