• 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: Open for access with write permission
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open for access with write permission


  • Subject: Re: Open for access with write permission
  • From: KOENIG Yvan <email@hidden>
  • Date: Fri, 23 Mar 2007 07:14:39 +0100


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:
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>)

  • Prev by Date: Re: FM 8 layout references w/applescript - works in one file, fails in five other identical files!
  • Next by Date: Re: iTunes, NSAppleScript, and timeout
  • Previous by thread: Re: Open for access with write permission
  • Next by thread: Re: Open for access with write permission
  • Index(es):
    • Date
    • Thread