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

reading paragraphs from a file


  • Subject: reading paragraphs from a file
  • From: Alex Morken <email@hidden>
  • Date: Thu, 6 Dec 2007 08:49:35 -0800

Hello,

When executing the script below I am getting the following error -- "Cannot get every paragraph of 697". Each time I run the script the number increases by one. The txt file I am reading from contains 1 line and will never grow beyond that. I am not sure why the number of paragraphs would be increasing (if that is what it is saying).

set tempdir to "/private/tmp/p.txt"
set fpath to POSIX file tempdir
set f to open for access file fpath
set r to paragraphs of f
display dialog r
set r to nothing
close access f

Thank you,
Alex Morken

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: reading paragraphs from a file
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Finder inconsistency (Was: What makes AppleScript difficult)
  • Next by Date: Re: reading paragraphs from a file
  • Previous by thread: Re: What makes appleScript so easy
  • Next by thread: Re: reading paragraphs from a file
  • Index(es):
    • Date
    • Thread