• 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: Any way to get "file pointer"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to get "file pointer"?


  • Subject: Re: Any way to get "file pointer"?
  • From: Steve Mills <email@hidden>
  • Date: Fri, 01 Jun 2018 11:54:34 -0500

> On Jun 1, 2018, at 10:52, Gil Dawson <email@hidden> wrote:
>
> Is there a way to get the current value of the "file pointer" value of an
> open file?
>
> I be reading a text file "before delimiters" without closing and reopening,
> so each read gets a new line from the file.
>
> Then comes a time, I'd like to know the byte number in the file for the next
> read; i.e., of the first character which the next read will bring.

Since you already have a file reference, just call “get eof fr” where fr is
your variable for the file reference. It returns the length of the file.

Steve via iPad

 _______________________________________________
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: Any way to get "file pointer"?
      • From: Gil Dawson <email@hidden>
References: 
 >Any way to get "file pointer"? (From: Gil Dawson <email@hidden>)

  • Prev by Date: Any way to get "file pointer"?
  • Next by Date: Re: Mysterious OSX Mail scripting problem [solved!]
  • Previous by thread: Any way to get "file pointer"?
  • Next by thread: Re: Any way to get "file pointer"?
  • Index(es):
    • Date
    • Thread