On Wednesday, July 20, 2011 7:01:44 PM UTC-4, Rich Siegel wrote:
Targeting windows with AppleScript has been deprecated for a
> *very* long time, and beginning with 10.0 is no longer
> supported. […]
>
> The correct targeting for text operations is the "text document"
> object, as in "text document 1" instead of "text window 1".
>
Reviving an old thread…
If that is so, then why does
tell application "BBEdit"
tell text document 1
set OPT to {search mode:grep, starting at top:true, wrap around:false,
backwards:false, case sensitive:false, match words:false, extend
selection:false}
replace "a" using "b" options OPT
end tell
end tell
generate <error "BBEdit got an error: \"a\" doesn’t understand the replace
message." number -1708 from "a">, while the same script with "text window
1" instead of "text document 1" works without any problems?
(BBEdit 10.5.1, Mac OS X 10.7.5)
Thanks.
--
--
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>