• 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: compactness of expression question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compactness of expression question


  • Subject: Re: compactness of expression question
  • From: billp <email@hidden>
  • Date: Thu, 17 Jan 2002 15:44:13 -0600

Steven,

Thanks for the solution. I am up against my 32k limit in ScriptEditor
so every character counts now. The reason I set each global inside
the various if statements before was to not cause AS to set a global
for something it may not have measured. I was thinking it was more
efficient memory-wise.

Bill



>2. adding one global line:
>
>----
>
>global CharacterCount, WordCount, LineCount, ParagraphCount, TableCount
>
>if ItemKind = "Characters" then
> set CharacterCount to ItemCount
>else if ItemKind = "Words" then
> set WordCount to ItemCount
>else if ItemKind = "Lines" then
> set LineCount to ItemCount as integer
>else if ItemKind = "Paragraphs" then
> set ParagraphCount to ItemCount as integer
>else if ItemKind = "Tables" then
> set TableCount to ItemCount
>end if


  • Follow-Ups:
    • Re: compactness of expression question
      • From: Steven Angier <email@hidden>
  • Prev by Date: Re: how to tell if a particular application is running?
  • Next by Date: search and replace question
  • Previous by thread: Re: compactness of expression question
  • Next by thread: Re: compactness of expression question
  • Index(es):
    • Date
    • Thread