I have the following bit as part of a larger script:

tell application "BBEdit"
        set checkSearch to {search mode:literal, returning results:true,
starting at top:true, showing results:false}

        set num_search to (find "Chapter" searching in text 1 of text window
1 options checkSearch)
        if found of num_search then
                set found_instances to found matches of num_search
                set theCount to count found_instances
                display dialog "number of found instances: " & (theCount as 
string)
        end if
end tell

Produces the following error:

Can’t get found matches of {found:true, found object:characters 44
thru 50 of text document 1 of application "BBEdit", found
text:"Chapter"}.

I need the number returned in theCount. It worked correctly in 9.6.1.
Am I missing some sort of syntax error that I made? or is this a bug
in 9.6.2?

-- 
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>

Reply via email to