Skip to main content
Inspiring
October 19, 2008
Question

With CS4, some things have changed

  • October 19, 2008
  • 25 replies
  • 16887 views
This topic is not about new features but changes, primarily in the object model, that will affect scripts that run perfectly well under CS3.

Bear in mind that as before, you can create a folder for previous version scripts and run from there, in which case the previous object model is employed -- indeed, CS4 allows you to do this for scripts all the way back to CS scripts. The Object Model Viewer in ESTK, once you've initialized it by opening it once and choosing the InDesign CS4 Object Model, allows you to see all four supported object models.
This topic has been closed for replies.

25 replies

Inspiring
October 19, 2008
Harbs,

You're welcome to start such a topic. I'll make sure it stays at or near the top.

Dave
Peter Kahrel
Community Expert
Community Expert
October 19, 2008
At http://www.kahrel.plus.com/indesign/pdf_dictionaries.html is a list with all properties, methods, and enumerations of InDesign's CS4 object model. New items are highlighted, so that it is easy to see what has been added since CS3.

Peter
Harbs.
Legend
October 19, 2008
Hi Dave,

Thankfully, this thread should be much much shorter than the CS3 one.
There have been very few changes that will effect existing scripts. How
about starting another thread for new features? There's a number of new
features I'm quite happy about! (Like UndoMode, isValid, ScriptUI
enhancements, etc.) I think they're worth discussing.

--
Harbs
http://www.in-tools.com
Inspiring
October 19, 2008
One thing to watch for, which isn't really a scripting change but may well<br />affect scripts, is the change to the way rulers work when the document<br />origin is set to spine.<br /><br />In CS4, the rulers measure out from the spine, with values to the left<br />negative and values to the right positive. This means, for example, items on<br />page 2 of a typical facing pages document will have bounds such that x2 is<br />less than x1 if the origin is set to spine.<br /><br />It might be prudent to start setting the origin to a known value at the<br />beginning of some scripts, to avoid surprises.<br /><br />Ironically, the values returned in CS4 match the way they were returned when<br />scripting InDesign (but not in the UI) many versions ago.<br /><br />-- <br />Shane Stanley <sstanley@myriad-com.com.au>
Inspiring
October 19, 2008
The TextWrapPreferences property previously known as textWrapType is now called textWrapMode.

This affected my WrapNudger. To see how I handled the change so WrapNudger would work with both CS3 and CS4, see this topic in my blog.

Dave
srakete
Inspiring
May 15, 2009

Hi,

it looks like that with 6.0.2 Adobe changed the textWrapPreferences property textWrapMode back to textWrapType as it was in CS3.

Or am I totally confused now ?

Stefan

May 15, 2009

Hi Stefan,

It didn't change. Is it possible that you're looking at/using the CS3 version of the scripting DOM?

Thanks,

Ole