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 bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com 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 "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Jan 04
e2o Re: script to copy IP address
Jan 04, 2009; 20:14
e2o
Re: script to copy IP address
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!