How to get the NSRange of Selected Text in NSTextField
Integrating Objective-C code into an AppleScriptObjC application is incredibly easy. In this example, I use an Objective-C helper class to retrieve the NSRange of the selected text in an NSTextField. If you have any questions about the code, post them in the comments.

