I'm a little new do doing anything serious with AppleScript. I've been porting the vim Surround plugin, and I've gotten it working great except currently it only operates on the selection. I want to have it operate by default on whatever the word is under the cursor.
My problem is while I can locate where the cursor is in the document, I can't seem to gin up the right incantation for "given an insertion point at startColumn foo" (say, in the middle of a word), "backtrack to the word boundary and use that as the new start point". Is this even possible, or am I totally approaching it from the wrong mental angle? Thanks, -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
