coding and using character ranges for AppleScript
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.