Re: Faster way to replace text in AppleWorks?
Re: Faster way to replace text in AppleWorks?
- Subject: Re: Faster way to replace text in AppleWorks?
- From: Dale Gillard <email@hidden>
- Date: Mon, 30 Sep 2002 19:35:54 +1000
On Monday, September 30, 2002, at 02:01 AM, Michelle wrote:
I have written a script that loops thru an AppleWorks document looking
for specific characters and replacing them eg ensuring a period/full
stop has a single space after it. As you can imagine, it takes quite a
while to do this even in a document of only a few hundred words.
I can see a big problem with your algorithm: have you tried it with
numbers, e.g., "$1,234,567.89", in the document?
Also, what about periods that are followed by more than one space? Do
you want to leave them as they are, or do you want to reduce them to
one space after the period?
--Michelle
Thanks for pointing those issues out. I hadn't thought of the currency
issue, but had thought of multiple spaces issue. Initially, I was just
trying to get the AppleScript running as fast as possible before
introducing checks that would slow it down.
Thanks
Dale
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.