> On Nov 30, 2017, at 4:28 PM, Christopher Stone <[email protected]> 
> wrote:
> 
> Hey Folks,
> 
> I'm trying to write some efficient AppleScript code to select the WORD the 
> cursor is IN or next to (right or left).
> 
> Examples would be having the cursor anywhere between the “>” & “<” symbols in 
> the text below:
> 
> ----------------------------------------------------------------
> 
>> Now< is the time for all good men to come to the aid of their country
> 
>> Supercalifragilisticexpialidocious< is obviously from “Mary Poppins” if 
>> you're of a certain age...
> 
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 
> >tempor<
> 
> ----------------------------------------------------------------
> 
> I've got some spaghetti code I don't like at the moment and thought I'd ask 
> before continuing to reinvent the wheel.

Take a look at this article 
<https://daringfireball.net/2003/09/select_word_script_for_bbedit> from Daring 
Fireball in 2003. More than you wanted to know. 

Regards,

        Neil Faiman

-- 
This is the BBEdit Talk public discussion group. 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>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to