On 8 Gen, 13:30, Stefano <[email protected]> wrote:

Probably it's not the best, but for the moment this is what I did. It
could be useful for somebody else, who knows ...
Well, I've placed the Find&Replace statements in a subroutine.

 on sub()
   ...
 end sub

Then a really simple repeat statement as below:

 repeat
  my sub()
  display dialog "Ok, or Cancel to stop"
 end repeat

So adding "select insertion point before line 1 of text document 1" I
start at the beginning, then the script run the sub() find the first
<p></p> tags, after some Find&Replace statements, the dialog "ask" to
click "Ok" (for next <p> search) or "Cancel" (to stop) and so on until
the end of document.

If anybody else has a better way, let me know.
Thanks,
Stefano



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