Article View: adobe.scripting.indesign
Article #17245Re: Best place to store (non-visual) info?
From: roberto soto
Date: Fri, 20 Jun 2003 11:29
Date: Fri, 20 Jun 2003 11:29
20 lines
1564 bytes
1564 bytes
Hi Ana,
You can create a few objects like Rectangle that have a label properties and put them into InDesign page, the user trough the script label windows locate in the menu windows-scripts of InDesign can see and modify this label and you can use at any time in the program.
example:
Set myInDesign = CreateObject("InDesign.Application.2.0")
Set myDocument = myInDesign.ActiveDocument
myDocument.ViewPreferences.HorzMeasurementUnits = idMSPicas
myDocument.ViewPreferences.VertMeasurementUnits = idMSPicas
Set myRectangle = myDocument.Rectangles.Add
myRectangle.GeometricBounds = Array(10, 10, 25, 25)
myRectangle.Label = "This is a sample text"
At this point you can go to InDesign and select the rectangle, you will see this text in the script label window.
Roberto
Technical Details
Message-ID:
<1de99c73.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de99c73.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,1497ef569aff8392 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-20 04:37:47 PST From: "roberto soto" <roberto1soto@hotmail.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Best place to store (non-visual) info? Message-ID: <1de99c73.1@WebX.la2eafNXanI> Date: Fri, 20 Jun 2003 04:29:10 -0700 References: <1de99c73.-1@WebX.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit