On Wednesday, July 20, 2011, ronk13 <[email protected]> wrote:
Anyone else reverting to 9.x, it looks like they totally blew the
testing of AppleScript in BBEdit 10 under Mac OS X 10.6.x?
I'm not reverting.
tell application "BBEdit"
activate
replace "\\t" using "|" searching in text window 1 options {search
mode:grep, starting at top:true, wrap around:false, backwards:false,
case sensitive:false, match words:false, extend selection:false}
end tell
Targeting windows with AppleScript has been deprecated for a
*very* long time, and beginning with 10.0 is no longer
supported. I know that adapting to it will cause a certain
amount of pain, and I'm sorry for the inconvenience. The
consolation is that you only need do it once.
The correct targeting for text operations is the "text document"
object, as in "text document 1" instead of "text window 1".
R.
--
Rich Siegel Bare Bones Software, Inc.
<[email protected]> <http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.
--
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>