• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Eliminating items from a MS Word list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Eliminating items from a MS Word list (From: List Guy <email@hidden>)

  • Prev by Date: Re: Scripting Mail in OS X
  • Next by Date: Re: Scripting Mail in OS X
  • Previous by thread: Eliminating items from a MS Word list
  • Next by thread: Re: Eliminating items from a MS Word list
  • Index(es):
    • Date
    • Thread