• 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: Brett Conlon <email@hidden>
  • Date: Fri, 9 Feb 2007 14:13:25 +1000

Yes, I have thought of this issue also. But my initial concerns with
people entering the wrong information are much greater than a "correct"
title being altered.

I suppose I could have a warning dialog appear asking the user to confirm
if a suspect word should be there or not...

As for "Box Set", yes, that was a mistake in my test script. The words
"Box" and "Set" would be sufficient to eliminate them.

...still working on ironing out all the kinks.  ;-)

Cheers,

Coj




Matthew Smith <email@hidden>
Sent by:
applescript-users-bounces+brett.conlon=email@hidden
09/02/07 02:42 PM

To
AppleScript Users <email@hidden>
cc

Subject
Re: Weeding out words






On 09/02/2007 14:26, "Brett Conlon" <email@hidden> wrote:

My script later on adds the words "Collection" or "Box Set Collection" or
"Season" or "Triple Pack" etc. When the user is prompted to enter the
movie title's name, if they didn't just stick with the movie title and
added the words "Box Set" or "boxset" or whatever, there would be
double-ups in the file name later. The cleanup script trims any of these
out first.

Here's what I ended up using. A big thanks to Matthew and Malcolm for
offering their advice which helped me to get it working very nicely:

set TitleAns to "My Movie Title Special Box Set Boxset"
set Offenders to {"Special", "Edition", "SE", "Box Set", "Boxset", "Box",
"Set"} -- words which need to be stripped if the user entered them by
mistake.

Brett,

I am not sure why you have "Box Set" in there. It's two words.

What is going to happen if there is a title that actually contains those
words? For example, a movie could be called Late Edition. Your code would
change it to Late. I can think of several other possible titles where a
word would be stripped.

--
Matthew Smith

 _______________________________________________
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

References: 
 >Re: Weeding out words (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: Weeding out words
  • Next by Date: [OT] Re: problem w/ text item delimiters
  • Previous by thread: Re: Weeding out words
  • Next by thread: Re: Weeding out words
  • Index(es):
    • Date
    • Thread