• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Find Insertion Point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Follow-Ups:
    • Re: Find Insertion Point
      • From: "email@hidden" <email@hidden>
  • Prev by Date: RE: Newbie Progress Bar
  • Next by Date: Custom List Views...
  • Previous by thread: Find Insertion Point
  • Next by thread: Re: Find Insertion Point
  • Index(es):
    • Date
    • Thread