• 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: Text delimiters and file reading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text delimiters and file reading


  • Subject: Re: Text delimiters and file reading
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 9 May 2002 16:51:38 +1000

Hi there,

From: Lachlan Deck <email@hidden>
Hi there,

<snip>
property retn: "\n"
...
set theEnd to (get eof from_file)
set theText to (read from_file from 0 to (theEnd - 1) using delimiter (retn as text))
set theText to (read from_file from 0 to (theEnd - 1) using delimiter return)

Any suggestions? This is quite annoying....

I've figured it out.
property retn: ASCII character 10 -- works well...

Thanks.

with regards,

--
Lachlan Deck
email@hidden
_______________________________________________
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: System calls in AS (was: Re: Unixy question)
  • Next by Date: Re: OS X replacement for Script Scheduler
  • Previous by thread: Text delimiters and file reading
  • Next by thread: Re: Text delimiters and file reading
  • Index(es):
    • Date
    • Thread