• 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: Verify if name contains an element of a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Verify if name contains an element of a list


  • Subject: Re: Verify if name contains an element of a list
  • From: Emmanuel <email@hidden>
  • Date: Thu, 20 Apr 2006 01:47:22 +0200

At 2:30 PM -0400 4/19/06, stephan wrote:
Something like:

myListofChar = {"/", "\", "*", "?", "|"}

if FileName contains a element of myListofChar then


I need to identify which element of the list and replace it by something

Looks like a job for Satimage.osax, the groundbreaking Scripting Addition that Satimage-software makes available for free for the best comfort of all AppleScript users over the planet:


set myNewString to change myListOfChar into myListOfReplacements in myOriginalString

Emmanuel
From Satimage-software
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Verify if name contains an element of a list (From: stephan <email@hidden>)

  • Prev by Date: Re: MacBook Pro iSight Scripting
  • Next by Date: Re: Verify if name contains an element of a list
  • Previous by thread: Re: Verify if name contains an element of a list
  • Next by thread: Re: Verify if name contains an element of a list
  • Index(es):
    • Date
    • Thread