🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #515

Re: JS TextColumnCount not working.

#515
From: Kasyan_Servetsky
Date: Thu, 12 Mar 2009 15:53
36 lines
1484 bytes
Malcolm,

I changed these two lines and it works for me. I'm posting the whole script.

Kasyan



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(textFramePreferences){
         textColumnCount = 6;
      }
   }
}
Technical Details
Message-ID: <59b83154.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
References: <59b83154.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,55a509572845f42c
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kasyan_Servetsky@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: JS TextColumnCount not working.
Message-ID: <59b83154.2@webcrossing.la2eafNXanI>
Date: Thu, 12 Mar 2009 08:53:05 -0700
References: <59b83154.-1@webcrossing.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit