Re: Find Insertion Point
Re: Find Insertion Point
- Subject: Re: Find Insertion Point
- From: "Marc K. Myers" <email@hidden>
- Date: Sat, 16 Dec 2000 12:31:53 -0500
- Organization: [very little]
Paul Berkowitz wrote:
>
Date: Thu, 14 Dec 2000 19:46:30 -0800
>
Subject: Find Insertion Point
>
From: Paul Berkowitz <email@hidden>
>
To: Applescript-Users <email@hidden>
>
Cc: "Christopher C. Stone" <email@hidden>
>
>
Does anyone know if it's possible to get the "coordinates" of the insertion
>
point in an MS Word document? If you know a way in some other app that
>
supports the Text Suite, I'll give it a go here. I want to find a location
>
that way that I can later use to insert text at that location.
I don't have MS word, but in Tex-Edit Plus you can say:
set x to the insertion point of window 1
It returns the offset in characters. So, while you can't copy anything
directly to the insertion point, you can accomplish the same thing by saying:
tell application "Tex-Edit Plus"
activate
set x to the insertion point of window 1
copy "Hello!" to after character x of window 1
end tell
I hope this will help.
Marc [12/16/00 12:31:01 PM]