• 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: even better coerce to record with usrf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: even better coerce to record with usrf


  • Subject: Re: even better coerce to record with usrf
  • From: Arthur J Knapp <email@hidden>
  • Date: Sat, 15 Dec 2001 10:38:25 -0500

> Date: Fri, 14 Dec 2001 19:18:27 -0500
> Subject: Re: even better coerce to record with usrf
> From: Arthur J Knapp <email@hidden>

> property kUsrfLongHeader : ({{a:0}} as string)'s text 1 thru -2
>
> on AsciiNumber(c)
> return a of ((kUsrfLongHeader & c) as record)

> set t0 to current date
>
> repeat 1000 times
> ASCII number "a"

> set t1 to current date
>
> repeat 1000 times
> AsciiNumber("a")

> set t2 to current date
>
> {t1 - t0, t2 - t1} --> {21, 1}

Whoops.

I got these times while in "debugger" mode in Script Debugger. In
Apple's Script Editor, the times are closer to {2, 1}.



{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://homepage.mac.com/kshook/applescript.html>
on error number -128
end try
}


  • Prev by Date: perl to applescript
  • Next by Date: Startup Disk in 9.2.2
  • Previous by thread: Re: even better coerce to record with usrf
  • Next by thread: Re: Difference between "as alias" and "as file spec
  • Index(es):
    • Date
    • Thread