Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'set eof' command broken in Tiger?



On 20/1/06 8:42 AM, "Josh Lezniak" <email@hidden> wrote:

>    -- But opening the file, writing to it and setting eof doesn't
>     set wf_eof to number of characters in wf_content
>     set wf_file to open for access wf_path with write permission
>     write wf_content to wf_file
>     set eof wf_file to wf_eof
>     close access wf_file
>                  
> 
> The problem is that the  file that I open and write to (wf_file) only contain
> about 50% of the data that I actually write to it.

I suspect wf_content is Unicode text, whereas it was a string 10.3 (the
rules changed). The number of characters might be x, but when written as
Unicode text it's going to take roughly x*2 bytes.

But I'm baffled at why you're using "set eof" in the first place -- why?

-- 
Shane Stanley <email@hidden>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >'set eof' command broken in Tiger? (From: Josh Lezniak <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.