• 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: Reading a file as it fills up by another program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading a file as it fills up by another program


  • Subject: Re: Reading a file as it fills up by another program
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 12 Dec 2003 06:07:05 -0600

At 16:47 +0100 12/11/2003, Harald E Brandt wrought:

How to read a file, record by record, as the file is being filled up by another process?
...
If using 'open for access', EOF will retain its value of 0 until the file is closed, so it won't read the file as it fills up. Is it possible at all to use the standard 'read' to do that?
______________________________________________________________________

Hello Harald,

Hmm. There is never any need to open a file if you just want to read it.

Does your Unix process keep the file open? Or does it close it after it writes to it?

If the latter perhaps you can use the "busy status" of the "info for" event from the Standard Additions osax.


Chris
_______________________________________________
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.

  • Follow-Ups:
    • Re: Reading a file as it fills up by another program
      • From: Harald E Brandt <email@hidden>
References: 
 >Reading a file as it fills up by another program (From: Harald E Brandt <email@hidden>)

  • Prev by Date: Re: SnapShot
  • Next by Date: Type and Creator while being copied or created
  • Previous by thread: Re: Reading a file as it fills up by another program
  • Next by thread: Re: Reading a file as it fills up by another program
  • Index(es):
    • Date
    • Thread