Re: Writing Binary Files, Data Code Limitations, and Unicode Tables (not necessarily in that order)
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.