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:40:49 +1000
Thanks Jay!
That looks like a promising way to solve the problem. My initial
concern with doing it this way is that I might lose the text formatting
when massaging the text in a variable. We'll see how it goes. Thanks
again.
Dale
On Monday, September 30, 2002, at 06:51 AM, Jay Young wrote:
Hi Dale,
I would recommend using the AppleScript Text Item Delimiters. If your
document isn't too big, you could store all the text in a variable and
then fix it with the Text Item Delimiters and then put it back in
AppleWorks. I tested this code in OS 10.2.1 with AS 1.9 and it seemed
to work okay.
Please take notice of what Michelle Steiner has asked. If you have
commas in any numbers, or even periods in email addresses, the Script
will put a space after these characters too.
In the end, this code should change a period, comma, and question
mark to a period-space, comma-space, and question mark-space. It will
then look for any 2 spaces next to each other and change them to 1
space in a repeat loop until the document only contains 1 space in
every space location. I don't know if this is really what you're
looking for, but hopefully it will at least give you some ideas for a
solution.
--------------------------------------------
_______________________________________________
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.