Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: How to select two text boxes (linked) separated by a distance?

$
0
0

Hi,

 

Assumed there are page items named "box1" and "box 2" anywhere inside mDoc:

mDoc = app.activeDocument;
mDoc.pageItems.item("box1").select();
mDoc.pageItems.item("box2").select(SelectionOptions.ADD_TO);

 

other select options:

     SelectionOptions.REMOVE_FROM

     SelectionOptions.REPLACE_WITH

 

use

Adobe InDesign CS5 (7.0) Object Model

or another placed here: http://jongware.mit.edu

 

rgds

Jarek


Viewing all articles
Browse latest Browse all 37788


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>