• 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
Toggling case insensitivity in AKUA's "whose names match"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Toggling case insensitivity in AKUA's "whose names match"


  • Subject: Toggling case insensitivity in AKUA's "whose names match"
  • From: Roger Howard <email@hidden>
  • Date: Sat, 23 Dec 2000 14:29:15 -0800

Hi there,

I am using AKUA Sweets to search a directory structure for a filename
containing a given string... I use the "whose names match" switch in the
"the entries in" command like this:

First I construct a wildcard str to match the filenames like this:

set wildStr to ("*" & thisStr & "*") as string

Then I search like this:

set matchFiles to the entries in rootFolder whose names match wildStr to
a depth of searchDepth as alias

The only issue with this is that it matches only files whose names match the
case of the original string (thisStr) and none else. I need this to be case
insensitive.

Obviously my problem is in the formatting of my wildcard string, but I have
tried several additions to it with no luck. I know this is simple so I don't
want to get hung up on it... I have tried several different uses of the "%"
flag (thinking backing to my reg expressions) but I may have made an error.
Please help!

Thanks, please respond directly (as well as to the list) if possible,

--
Roger Howard
Artificial Engineer, binaryboy.org
A new kind of company for a brave new world


  • Follow-Ups:
    • Re: Toggling case insensitivity in AKUA's "whose names match"
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Script not quitting Entourage
  • Next by Date: Re: Script not quitting Entourage
  • Previous by thread: Re: applescript-users digest, Vol 2 #159 - 18 msgs
  • Next by thread: Re: Toggling case insensitivity in AKUA's "whose names match"
  • Index(es):
    • Date
    • Thread