In article <jollyroger-687940.20565905052008@[EMAIL PROTECTED]
>, Jolly
Roger <jollyroger@[EMAIL PROTECTED]
> wrote:
> 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.
I think you've wandered off into the weeds a little. You can't select
some text and wrap it in tags using a batch process; by its very nature
the task is interactive.
The real question is why the original poster is trying to write scripts
to wrap text in HTML tags rather than just using BBEdit's HTML tools,
which already do that and more. You can even assign keyboard shortcuts
to them, so you just hit, say, Ctrl-I and it wraps the selected text in
<i> and </i> tags. No script is needed.
--
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>
Send only plain text messages under 32K to the Reply-To address.
This mailbox is filtered aggressively to thwart spam and viruses.


|