Re: Standard Additions 'read' command - basic questions
Re: Standard Additions 'read' command - basic questions
- Subject: Re: Standard Additions 'read' command - basic questions
- From: Walter Ian Kaye <email@hidden>
- Date: Mon, 19 Jan 2004 07:03:33 -0800
At 03:22p +0100 01/19/2004, Emmanuel didst inscribe upon an electronic papyrus:
As CS emphasizes, this is broken under Panther, whence Chap's
question that I did not understand.
I wonder what is the rule which says which characters work as a
delimiter and which don't. I tried 250, 253, 254 and 255, they don't
work.
Dunno about rule, but one might write a test script to report which
do and which don't...
set out to "read command delimiter tests:" & return
repeat with i from 0 to 255
set d to ascii character i
if d is in {"a", "z"} then
set {t_left, t_right} to {"xxx", "yyy"}
else
set {t_left, t_right} to {"aaa", "zzz"}
end if
set t to t_left & d & t_right
--write t to file
--read from file using delimiter d
--compare result with t_left/t_right
--append delimiter success/failure info to out
--(perhaps i & tab & "yes"|"no" or something like that)
end repeat
--write out somewhere
(*someone else finish the script... add info about current OS version...*)
LF works (great delight!).
Sorry if this was well known already.
Well LF better work! :)
-boo
_______________________________________________
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.