• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stumped on BBEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stumped on BBEdit


  • Subject: Re: Stumped on BBEdit
  • From: Ricardo Montiel <email@hidden>
  • Date: Tue, 12 Jun 2001 13:01:52 -0300

on 8 Jun 2001 07:15:24 -0700 (PDT), Bill Metzinger at
<email@hidden> wrote:

> Hey now,
> I'm stuck on multifile searches with BBedit. I'm doing the search in a
> repeat loop where my search string is constantly changing but the context of
> my hits stays the same. The hit returned each time is the first hit. What am
> I not doing reset the hit?
>
>
> tell Application "BBEdit 5.1"
> set myfind to find mystring starting at mydir with multi file
> set templine to context of first item of myfind as text
> end tell

Hi Bill,

The result from a Multi file search is a list with all the hits at once, so
it is necessary to iterate on every item of the list (in the code you
posted, only the _first_ item is been processed), as in:

tell Application "BBEdit 5.1"
set myfind to find mystring starting at mydir with multi file
-- log myfind -- to see all the hits returned by the multi file search
repeat with mymatch in myfind
-- do your stuff here, as in the following example:
copy (context of mymatch) to templineList's end
end repeat
end tell


HTH


Saludos (Regards)
Ricardo Montiel
Buenos Aires - Argentina


  • Prev by Date: Re: Apple Event timeout problems... Large script.
  • Next by Date: Re: Replace all attributes font in a quark document.
  • Previous by thread: Stumped on BBEdit
  • Next by thread: AppleEvent timeout during file move / rename?
  • Index(es):
    • Date
    • Thread