Skip to main content
Participating Frequently
February 8, 2012
Question

Scripting syntax for text frames

  • February 8, 2012
  • 2 replies
  • 842 views

Hi,

I'm using CS5 on a Win7 32bit machine and I've been following some examples in the 'Adobe Intro To Scripting.pdf' which is for CS5.

I've been at this for a couple of hours so far, with no success at all.

Thanks.

This topic has been closed for replies.

2 replies

Community Expert
February 9, 2012

@Bob – and later you can assign your new text frame to a layer:

myTextFrame.itemLayer = myLayer;

See Jongware's extremly helpful online documentation of the "InDesign JavaScript Reference Guide", if you want looking for objects, their methods and properties. There is also a chm-Version you can download, access and search offline:

http://www.jongware.com/idjshelp.html

Uwe

Jongware
Community Expert
Community Expert
February 9, 2012

Thanks, Uwe!

Laubender wrote:

[...] – and later you can assign your new text frame to a layer:

In fact you can do so immediately when creating the new text frame (you still have to add to a page or spread). See the first optional parameter in http://jongware.mit.edu/idcs5js/pc_TextFrames.html#add

(The above direct link appears courtesy of Mr. John Hawkinson, Esq.)

John Hawkinson
Inspiring
February 9, 2012

You'll need to add page items to pages or spreads, not to layers.