• 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
String replacement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String replacement


  • Subject: String replacement
  • From: Matthew Stuckwisch <email@hidden>
  • Date: Mon, 8 Apr 2002 21:39:32 -0500

What's the quickest way to do a Hangman style text replacement? eg you have the following strings:

"This Is the Phrase" as the hidden phrase
"---- -- --- ------" as the displayed phrase
"i" and "I" as search strings

Basically, you look for the search strings in the hidden phrase, and if one of them matches you replace that respective character in the displayed phrase. Right now I'm going one by one checking. Any ideas?


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa / G}(esperNET / irc.massinova.com)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: String replacement
      • From: Matthew Stuckwisch <email@hidden>
References: 
 >Re: Finder Version Wrong in OS X (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Finder Version Wrong in OS X
  • Next by Date: Re: Activating applet or app?
  • Previous by thread: Re: Finder Version Wrong in OS X
  • Next by thread: Re: String replacement
  • Index(es):
    • Date
    • Thread