I'm really struggling with wrapping my brain around the new document/window
model in the latest versions of BBEdit.
This used to work:
*tell* *application* "BBEdit"
*set* myDoc *to* (name *of* *text document* 1 *as* *string*) -- because it
is already open and frontmost
*set* myReplacementString *to* "hello" -- value is normally set by some
function
*find* "###" searching in *text* *of* *text document* myDoc options {search
mode:literal, starting at top:false} *with* selecting match
*set* selection *of* *text window* myDoc *to* myReplacementString
*end* *tell*
Now all the scripts I've written in the past with these commands are
broken, and I can't figure out how to target selected text in a document
and change it.
- David
--
--
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>
---
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].
For more options, visit https://groups.google.com/groups/opt_out.