Re: Eliminating items from a MS Word list
Re: Eliminating items from a MS Word list
- Subject: Re: Eliminating items from a MS Word list
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 15 Jun 2001 08:23:08 -0700
On 6/14/01 11:46 PM, "email@hidden" <email@hidden> wrote:
>
I'm trying to create a script which will take a (very long... probably too
>
long for Applescript's memory buffer) list of items in Microsoft Word, and
>
eliminate those which are shorter than 4 characters or longer than 9. Each
>
item is separated by a carriage return, and I'd like to eliminate the
>
carriage returns along with the deleted item, so that I'm left with a neat
>
list with no vertical spaces between items.
>
Michelle tried to help me with this general concept yesterday, using a simple
>
text file and she was incredibly generous with her assistance, but the list
>
i'll be working with is too long for Simple Text or the Scriptable Text
>
Editor.
>
Any help would be greatly appreciated. I've been trying for many hours now,
>
and I think my head is about to explode! ;-)
You're not giving much in the way of detail for anybody to be able to help
you. First of all, trying to applescript MS Word is a waste of time and
energy: its scripting is bad and corrupt. the only thing that works properly
with it, for anything other than really basic, primitive stuff (and even
much of that) is the command 'do Visual Basic'; then you have to learn VBA.
Totally unnecessary here, I'm sure, unless you absolutely have to do it in
Word because of something it offers in the way of styles, tables, or other
sophisticated word processing.
If it's just a matter of the 32K and the need to have an applescriptable
text editor - use Tex-Edit Plus, a wonderfully scriptable editor.,
Officially it's non-nag shareware ($15), but, equally officially, you're not
required to pay the fee! (After you use it for a few months, you may want
to.) Get it now, look it over, and come back with some script details.
<
http://www.nearside.com/trans-tex/>
--
Paul Berkowitz