• 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: Return or No Return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return or No Return


  • Subject: Re: Return or No Return
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 23 Mar 2006 17:48:53 -0600

When I use
read refNr as Unicode text
I get a dialog full of Chinese characters and the data returned by a simple 'read' is class string, so I don't think Unicode text is involved here.


Then I tried
    set textLine to read refNr before (ascii character 10)
Now I can read Mail's text files OK, but Eudora's text files are messed-up.

It looks like there are two formats of plain-text file involved here:
    return delimited plain-text; and
    linefeed delimited plain-text.

The problem is now that I need to know what the file format is before reading it.
I've looked at the file's 'type identifier', but it's of no use at all.


One solution might be to read the whole file into a variable, then compare the offsets of return and linefeed.
But is this guaranteed to work - always?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Return or No Return
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Replace slash by underscroe in file name
  • Next by Date: Re: Return or No Return
  • Previous by thread: Re: Return or No Return
  • Next by thread: Re: Return or No Return
  • Index(es):
    • Date
    • Thread