🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9553

Re: [CS2 JS] anchoredObjectSettings

#9553
From: Dave_Saunders
Date: Thu, 17 Aug 2006 15:15
17 lines
1223 bytes
Getting it doesn't have much purpose, but in this case the parent of the object property is the object.

Now, that's not always true, for example:

myDoc.pages[n].parent

is not the document but a spread.

In the case you're working with, the parent happens to be the same object as you used to address it.

It's not clear to me what you're complaining about. If you are looking for the parent of the child, it's the character that holds it. If you're looking for its parent text frame, you need:

theChildRef.parent.parentTextFrames[0]

and, as long as the character in question isn't overset, that'll work.

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

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c90104d888f0df00
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: [CS2 JS] anchoredObjectSettings
Message-ID: <3bc14b6f.2@webcrossing.la2eafNXanI>
Date: Thu, 17 Aug 2006 08:15:37 -0700
References: <3bc14b6f.-1@webcrossing.la2eafNXanI>
Lines: 21
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.ecp.fr!news.stben.net!webcrossing