• 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: Closing a file you left open (error -49)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Closing a file you left open (error -49)


  • Subject: Re: Closing a file you left open (error -49)
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 19 Apr 2011 15:28:11 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Closing a file you left open (error -49)

Thanks Stan, that's a good point, so I'm posting to the list...

Ed


> Your handler does a 'set eof' to one. However, if you 'get eof' of a
newly-created file, zero is returned, not one. I just did a couple tests and,
sure enough, an eof value of one leaves behind the first character of any
previously-contained text. And if you create a new file, do 'set eof to 1',
then close the file, it will contain one space character.

> Better change that '1' to '0'!


 _______________________________________________
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

  • Prev by Date: Re: Closing a file you left open (error -49)
  • Next by Date: Re: AppleScript-Users Digest, Vol 8, Issue 175
  • Previous by thread: Re: Closing a file you left open (error -49)
  • Next by thread: Re: Closing a file you left open (error -49)
  • Index(es):
    • Date
    • Thread