🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15552

Re: The comparison chart of what has changed from 2.0.2 to CS

#15552
From: maxdunn
Date: Mon, 24 Nov 2003 21:50
30 lines
2031 bytes
Never mind that last question, I figured it out by iterating through the MasterPageItems, yes it seems that more objects are available, or they are indexed differently. Anyway, changing the index fixed it (I know, better to use names...).

Here are the steps that it took me to convert a typical script (VB6) from InDesign 2.0 to InDesign CS:

1. Replace "InDesign.Application.2.0" with "InDesign.Application.CS"

2. Replace "idAutoPageNumber" with
	"idSpecialCharacters.idAutoPageNumber"

3. Replace "ParaStyle", with either "ParagraphStyle" or "AppliedParagraphStyle" depending on context, i.e.:
 InDesign.ParaStyle -> InDesign.ParagraphStyle
 oParagraph.ParaStyle -> oParagraph.AppliedParagraphStyle	

4. Replace "TextLine" with "Line"

5. Replace MarginPreferences.MarginLeft with MarginPreferences.Left
(and same for Right, Top, Bottom)

6. Given a line like:
    oSection.PageNumberStart = 1
    must first put a line like:
    oSection.ContinueNumbering = False

7. Replace "TextContents" with "Contents"	

8. Change references to master page items by index to new index

It seems more naming changes than a major adjustment of the object hierarchy. Of course there must be more changes than this, but as this is representative of most of what I do, it's a relief that it's relatively straightforward to modify the scripts for this upgrade.

Max
Technical Details
Message-ID: <2cce85d4.5@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2cce85d4.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,82bd63829af58aec
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-24 14:08:16 PST
From: maxdunn@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: The comparison chart of what has changed from 2.0.2 to CS
Message-ID: <2cce85d4.5@webx.la2eafNXanI>
Date: Mon, 24 Nov 2003 13:50:26 -0800
References: <2cce85d4.-1@webx.la2eafNXanI>
Lines: 38
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit