Thank you! Adding "starting at top: true" works. That doesn't change the fact that the same script did work in the past on the same sort of files.
2008/9/18 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > On 18-Sep-2008, at 15:25, Michael Richards wrote: > > A test sample comes from an html file:<h2 class="indiv"><a > > name="I1267"></a> > > Chauvin Isabelle Marie</h2> > > > > The applescript that used to work contains the line: > > > > set aMatch to (find "name=.I\\d+" searching in (text 1 of text > > document 1) > > options {search mode:grep} with selecting match) > > [ one line ] > > Can confirm that doesn't work as posted. You know why? It's the > 'start at top' setting that sorta vanished in BBEdit 9. If the > insertion point is at the top of the document, it works. > > {found:true, found object:characters 22 thru 32 of text document 1 of > application "BBEdit", found text:"name=\"I1267"} > > This makes it work every time: > > set aMatch to (find "name=.I\\d+" searching in (text 1 of text > document 1) options {search mode:grep, starting at top:true} with > selecting match) > > > > Also smoke comes out of the computer. > > > Heh. > > -- > "Katrina, $4 gas, a trillion dollar war, rising unemployment, > deregulated housing market, global warming...NO MORE!" > http://is.gd/2mxY > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com 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 specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[EMAIL PROTECTED]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---