Article View: adobe.scripting.indesign
Article #9951[AS, CS2] How can I get the name of the page of an image inclue in a text frame?
From: Olivier_Berquin
Date: Thu, 13 Jul 2006 15:41
Date: Thu, 13 Jul 2006 15:41
52 lines
1685 bytes
1685 bytes
Hi all, I would like to know the name of the page of an image include (anchored) in a text frame. I've write this: -- tell application "Adobe InDesign CS2" tell active document -- List of all the links set IDLinks to every item of all graphics repeat with myCounter from 1 to (count IDLinks) set myImage to item myCounter of IDLinks set myLink to item link of myImage if myLink is not equal to nothing then set LinkName to name of item link of myImage set theImage to parent of myImage set theFrame to parent of theImage set test1 to text frames of story 1 of parent of parent of theFrame end if end repeat end tell end tell -- The variable "test1" give me a list of all the text frame of the story, like this: text frame id 269 of page id 224 of spread id 217 of document "test_image.indd", text frame id 236 of page id 233 of spread id 226 of document "test_image.indd" In wich text frame is my image ??? TIA. Oli.
Technical Details
Message-ID:
<3bc0e71e.-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!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,1f6f34bb96041057,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Olivier_Berquin@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: [AS, CS2] How can I get the name of the page of an image inclue in a text frame? Message-ID: <3bc0e71e.-1@webcrossing.la2eafNXanI> Date: Thu, 13 Jul 2006 08:41:02 -0700 Lines: 48 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