on 12/17/10 Kendall Conrad said:
>Can you provide a sample script that this happens with? My AppleScript
>scripts seem to be working fine.
Up until 9.6.2 the following code was working:
tell application "BBEdit"
set grepSearch to {search mode:grep, starting at top:true}
find "((^{i}[^{]+{/i}$\\r+){4,})" searching in text window 1 options
grepSearch ¬
with selecting match
if found of the result then
set a to contents of selection of text window 1
set selection of text window 1 to return & return & "{divi}" &
return
& return ¬
& a & return & return & "{/div}" & return & return
replace "{/*i}" using "" searching in the selection of text
window 1 ¬
options grepSearch
else
set searchLoop to false
end if
end tell
When I debug the script, it tells me that 'result' is not defined and I
get progress
bar dialog with a drop down sheet telling me that the string was not found.
My real scripts have tens of these find -> if found of the result statements.
--
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>