Reading a UTF file
Reading a UTF file
- Subject: Reading a UTF file
- From: Steve Roy <email@hidden>
- Date: Thu, 22 May 2003 21:24:31 -0400
Hi everyone,
I have a script that reads a UTF-8 tab-delimited file using the 'read' command
from the Standard Additions osax. I'm trying to add support for Unicode text,
for international users. So I do
set theText to read theFileRef as Unicode text
The problems are with what comes after. Trying to get 'every paragraph of
theText' returns a list with only 1 item, even if there's really more than one
paragraph.
Also, each paragraph is tab delimited, so I try getting a list of all the items
in the paragraph like this:
set AppleScript's text item delimiters to {tab}
every text item of aParagraph
This also returns a list with just one item. So what am I doing wrong, or what
am I not doing that I should be? Or do I have this all wrong from the start?
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
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.