• 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: TIDs case insensitive? [ToLower errata]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TIDs case insensitive? [ToLower errata]


  • Subject: Re: TIDs case insensitive? [ToLower errata]
  • From: Richard 23 <email@hidden>
  • Date: Thu, 8 Mar 2001 00:48:31 -0800

Oops. Left out the ABC and xyz properties in the ToLower hander.

-- ---------------------------------------------------------
-- Preprocessed by Convert Script 1.0d5
-- ---------------------------------------------------------
-- author: Richard 23, date: Wednesday, March 7, 2001
-- ---------------------------------------------------------
property ABC : "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
property xyz : "abcdefghijklmnopqrstuvwxyz"

on ToLower(theStr)
set theStr to theStr as string
repeat with thePos from 1 to 26
if theStr contains ABC's character thePos then
set {AppleScript's text item delimiters} to ==>
{ABC's character thePos}
set {AppleScript's text item delimiters} to ==>
{xyz's character thePos, theStr's text items}
set {AppleScript's text item delimiters, theStr} to ==>
{"", result's end as string}
end if
end repeat
return theStr
end ToLower
-- ---------------------------------------------------------

R23


  • Prev by Date: Script to format dictionary for HTML?
  • Next by Date: [ANN] iBuild 0.9.5
  • Previous by thread: Re: Script to format dictionary for HTML?
  • Next by thread: [ANN] iBuild 0.9.5
  • Index(es):
    • Date
    • Thread