Re: INDESIGN CS2: Altering a Text Selection
Re: INDESIGN CS2: Altering a Text Selection
- Subject: Re: INDESIGN CS2: Altering a Text Selection
- From: Malcolm Fitzgerald <email@hidden>
- Date: Fri, 11 Aug 2006 06:11:34 +1000
On 10 Aug 2006, at 19:30, Rick Gordon wrote:
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
On 11/08/2006, at 5:04 AM, kai wrote:
I'm only guessing too, Rick. But since this works in one or two other
apps, you might want to give it a shot:
-------------
set selection to text from character 1 to character -2 of selection
or a slightly different syntax
get text -1 thru -2 of selection
ha ha!
That was stupid but I'm thinking that perhaps you should be addressing
a property of the selection. There are a million of them. Try
get index of selection
get length of selection
get contents of selection
index of selection tells you where the first character of the selection
is.
malcolm
_______________________________________________
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