🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9774

Re: Variation of Dave's Script in "How To Begin Scripting"

#9774
From: Dave_Saunders
Date: Mon, 17 Jul 2006 14:09
19 lines
1127 bytes
Fred,

In answer to 1, there doesn't appear to be a way to add a generic anchored object that takes on the anchored object default settings.

Rather, you can add a text frame or a rectangle by:

myIP.rectangles.add();

or

myIP.textFrames.add();

They take on the free-standing item defaults rather than the anchored object defaults.

As for number 2, if you know the paragraph in question, then you can just write:

myIP = myPara.insertionPoints[0].

Dave
Technical Details
Message-ID: <3bc0ed94.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0ed94.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c3f000112de732ba
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Variation of Dave's Script in "How To Begin Scripting"
Message-ID: <3bc0ed94.1@webcrossing.la2eafNXanI>
Date: Mon, 17 Jul 2006 07:09:44 -0700
References: <3bc0ed94.-1@webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing