Re: INDESIGN CS2: Altering a Text Selection
Re: INDESIGN CS2: Altering a Text Selection
- Subject: Re: INDESIGN CS2: Altering a Text Selection
- From: Eric C Saunders <email@hidden>
- Date: Thu, 10 Aug 2006 14:41:01 -0400
Rick Gordon wrote on 08/10/2006 at 02:30:27 PM:
> 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
> --
I do not have Indesign to test, but this works in
Quark:
set selection to (characters 1 thru -2 of selection)
Eric
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service._______________________________________________________________
This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure. The
information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited. If you have
received this transmission in error, please notify MeadWestvaco
immediately at email@hidden.
_______________________________________________________________________
_______________________________________________
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