Re: Closing a file you left open (error -49)
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