In article <050520082209212516%fuddled@[EMAIL PROTECTED]
>,
Fuddled <fuddled@[EMAIL PROTECTED]
> wrote:
> In article <jollyroger-67E3CD.22133904052008@[EMAIL PROTECTED]
>, Jolly
> Roger <jollyroger@[EMAIL PROTECTED]
> wrote:
>
> [snipped]
>
> > > >
> > > > Why use BBEdit at all? AppleScript can read text files and write
text
> > > > files. And AppleScript can replace text in strings. So you don't
even
> > > > need to involve BBEdit.
> > >
> > > As I'm building HTML pages, I can't think of anything more friendly.
> > > All those pretty colours are just the thing for an Arts faculty.
> > >
> > > I'm working on a whole collection of do***ents to present via
browser,
> > > consistently displayed, clean-and-simple, CSS etc., hence BBE.
> >
> > That may be, but in actuality, you are automating a search and replace
> > operation that has nothing at all to do with BBEdit. Sending commands
to
> > BBEdit will only slow things down, because BBEdit will have to draw
each
> > change in selection and so on to the screen. The job you are actually
> > doing has little to do with BBEdit - so why complicate things?
>
> I don't understand your meaning here. I'm building web-pages (very
> simple text ones) so I have the text in BBEdit (along with all the html
> stuff) where I'm marking it up for browsing.
>
> Tagging for italics is only a small part, and BBEdit is where the text
> is.
>
> Are you suggesting I use another Text Editor? BBEdit seems to work
> pretty well. Just as it claims - it truly doesn't suck!
No - I couldn't care less what text editor you use. : ) BBEdit is one
of the best out there, so it's good you are using it. But that's neither
here nor there. My comments are more about efficiency.
If you are already using BBEdit, then I'm curious why you don't use it's
most excellent multi-file regular expression search and replace facility
to change your tags?
The point is if you have a collection of files and you want to use
AppleScript to change some text in them, no text editor is needed. If
you do this in pure AppleScript instead, it's quick as lightning. You
said you'd try the script I sent you - did you try it? You'll find it's
faster than any script that uses a BBEdit window to change text. This is
because writing the AppleScript to control the text editor will only
slow things down - it takes time for the text editor to draw changes to
the window and so on.
--
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.
JR


|