• 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
Reading a UTF file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: writing and retrieving comments from document files?
  • Next by Date: All groups of person in Address Book
  • Previous by thread: Re: writing and retrieving comments from document files?
  • Next by thread: All groups of person in Address Book
  • Index(es):
    • Date
    • Thread