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: "Joseph A. Weaks" <email@hidden>
- Date: Sat, 16 Jun 2001 00:56:08 -0500
At 15:51 -0700 6/15/01, List Guy 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."
I'm not sure how Word's search & replace commands word, but wouldn't
find: "????[cr]"
replace with (nothing)
find: "???[cr]"
replace with (nothing)
find: "??[cr]"
replace with (nothing)
find: "?[cr]"
replace with (nothing)
remove all paragraphs whose contents are 4 characters or fewer? Perhaps the
same can be done with greater than 9, somehow.
Yes, but the correct parsing should be
find: "[cr]???[cr]" -- assuming each word is alone on a line; if
separated by spaces, the criteria should be " ???", etc.
You could also use " ??????????" and higher for words longer than 9 characters.
Joe Weaks