🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2339

Retrieving index of a selected Rectangle/Image

#2339
From: Justin_Monsees
Date: Mon, 29 Dec 2008 00:40
7 lines
1173 bytes
I am currently working on a project in which I need to import images and attach captions to them. I would like to create a script that would allow me to select an image and then run the script to attach a textbox beneath it with a caption. In order to do this I need the index number of the select Image/Rectangle. I tried using the Document.selection property but that returns a Rectangle. Using Document.selection.index only returns "undefined."

What is the proper syntax to retrieve the index number of Rectangle/Image that is currently selected in a document?

Thanks,

Justin M.
Technical Details
Message-ID: <59b7604e.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,be5a41652ed26385,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Justin_Monsees@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Retrieving index of a selected Rectangle/Image
Message-ID: <59b7604e.-1@webcrossing.la2eafNXanI>
Date: Sun, 28 Dec 2008 16:40:09 -0800
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing