INDESIGN CS2: Altering a Text Selection
INDESIGN CS2: Altering a Text Selection
- Subject: INDESIGN CS2: Altering a Text Selection
- From: Rick Gordon <email@hidden>
- Date: Thu, 10 Aug 2006 11:30:27 -0700
I am confused on how to accomplish the task of truncating (or otherwise altering) the current text selection. For instance, take the example where I would want to determine if the last character in the active selection is a return character, and recalculate the selection so that the return character is no longer part of the selection).
The following code snippet does not work, nor does any variant I've tried specifically extracting references or object references. Can someone please point me in the right direction?
tell document 1
set selection to text from character 1 of selection to character -2 of selection
end tell
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden