• 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: Weeding out words
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weeding out words


  • Subject: Re: Weeding out words
  • From: Luca Pozzato <email@hidden>
  • Date: Fri, 9 Feb 2007 16:22:06 +0100

Hi Brett,
if you don’t mind using scripting additions [Satimage.osax], you may try this… it works also with sentences


set TitleAns to "My Collection box set asset boxy dog box collection is here" -- some example text returned in a user dialog 
set Offenders to {"collection", "box", "set", "boxset"} -- words which need to be stripped if the user entered them by mistake. 

set j to change Offenders in TitleAns into {"", "", "", ""} with whole word without case sensitive
set j to change {"[[:space:]][[:space:]]+"} in j into {" "} with regexp


Luca
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re:Quomodo
  • Next by Date: Re: Weeding out words
  • Previous by thread: Re: Weeding out words
  • Next by thread: Re: Weeding out words
  • Index(es):
    • Date
    • Thread