• 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: change case script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change case script


  • Subject: Re: change case script
  • From: Arthur J Knapp <email@hidden>
  • Date: Sat, 03 Nov 2001 14:07:46 -0500

> Date: Fri, 02 Nov 2001 16:46:32 -0800
> Subject: Re: change case script
> From: Paul Berkowitz <email@hidden>

> On 11/2/01 3:33 PM, "Arthur J Knapp" <email@hidden> wrote:

>> set text item delimiters to {""}


> I notice that you are orthodox about resetting tids to the correct
> single-item list, Arthur, but throughout the script you set them to strings
> instead (lowerC's item x, "_", rather than {lowerC's item x}, {"_"}). I
> know you're big on timings and speed issues. Has anyone ever tested whether
> doing the string to list coercion for tids (which AppleScript does for you
> when you leave out the list braces) say, 5000 times, makes any difference
> whatsoever to performance?

I have never thought about this. My assumption has always been that
the typical value-to-single-item-list takes up very little time, but
I would welcome anyone showing this not to be the case.

When I write handlers, I try to always use the save, set, and restore
technique for tids, because I don't like to make any assumtions about
what the "main" calling script is doing with the delimiters, but when
I post "top-level" bits of code, I'm never sure what the best way to
deal with the tids is.


Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden

Hey, check out:
http://www.zavatone.com/


  • Follow-Ups:
    • Memory leaks (Was: change case script)
      • From: Steven Angier <email@hidden>
    • Re: change case script
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Ticks in OS X
  • Next by Date: Re: change case script
  • Previous by thread: Re: change case script
  • Next by thread: Re: change case script
  • Index(es):
    • Date
    • Thread