• 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: Writing Binary Files, Data Code Limitations, and Unicode Tables (not necessarily in that order)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing Binary Files, Data Code Limitations, and Unicode Tables (not necessarily in that order)


  • Subject: Re: Writing Binary Files, Data Code Limitations, and Unicode Tables (not necessarily in that order)
  • From: kai <email@hidden>
  • Date: Sun, 23 Nov 2003 01:00:34 +0000

on Sat, 22 Nov 2003 23:12:26 +0000, Nigel Garvey wrote:

> Nearly three times as fast as even that is:

Excellent. I was also exploring a similar tids-based method, which appears
to have an even greater advantage when applied to a longer list:

--------

script s
set s to {}
repeat with n from 0 to 255
set s's end to ASCII character n
end repeat
s
end script

property p : run script s
property m : (ASCII character 254) & (ASCII character 255)
property f : file specification ((path to temporary items as Unicode text) &
"Unicode Table.txt")

set d to current date
set o to open for access f with write permission
set eof o to 0
write m to o
repeat with t in p
set text item delimiters to t's contents
write t & p to o
end repeat
close access o
set text item delimiters to ""
(current date) - d

--------

---
kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Remapping autocomplete
  • Next by Date: Re: Remapping autocomplete
  • Previous by thread: Re: Writing Binary Files, Data Code Limitations, and Unicode Tables (not necessarily in that order)
  • Next by thread: Re: Writing Binary Files, Data Code Limitations, and Unicode Tables (not necessarily in that order)
  • Index(es):
    • Date
    • Thread