Re: Weeding out words
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