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: Open for access with write permission




Le 22 mars 07 à 23:00:10, Michelle Steiner a écrit :


set fileRef to open for access UserFile with write permission


set eof of fileRef to (get eof of fileRef) + 1

write additions to fileRef

close access bar



you open a file whose ref is fileRef
but you close access to bar
so the fileRef's file is not closed.

I wish to add that it would be easier to code

set fileRef to open for access UserFile with write permission
write additions to fileRef starting at eof
close access fileRef

Yvan KOENIG
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Open for access with write permission (From: Michelle Steiner <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.