• 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
coding and using character ranges for AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coding and using character ranges for AppleScript


  • Subject: coding and using character ranges for AppleScript
  • From: jerome LAURENS <email@hidden>
  • Date: Fri, 7 Jun 2002 17:59:34 +0200

Hi,

i come back with AS, still improving TextEdit support of AppleScript (just to try)

Now I want AppleScript have an access to the selected range of a document window

How could I implement that?

it would be cool to have in the scripts something like

the selected range of the text of the document

return an NSRangeReference

but i don't know how to return a range reference from a cocoa object.

BTW, I don't know how to deal with NSRangeReference in apple scripts: for example with

set theRange to characters 2 through 4 of theText

how do i retrieve the indices 2 and 4, and theText from theRange, in AppleScript
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: About the accessibility stuff...
  • Next by Date: Launching Terminal example
  • Previous by thread: Re: Keyboard Events
  • Next by thread: Launching Terminal example
  • Index(es):
    • Date
    • Thread