Hello,

A while ago, some nice list denizen provided me with the following
script to select an IP address when the cursor is anywhere within it.
Can anyone add the magic to select it AND copy it to the clipboard? (I
tried "set the clipboard to the selection", but no luck).

tell application "BBEdit"
        find "(?<![0-9.])" searching in text 1 of text document 1 options
{search mode:grep, backwards:true} with selecting match
        find "[0-9.]+" searching in text 1 of text document 1 options {search
mode:grep} with selecting match
end tell

Thanks!

- eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
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 specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to "[email protected]" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to