• 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: Writing to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing to a file


  • Subject: Re: Writing to a file
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 14 Jul 2002 12:50:50 -0700

On 7/14/02 11:20 AM, "JP Kelly" <email@hidden> wrote:

> Yep that helped. Surprise when I tried to empty the trash!
> So now I am using "try" and "on error" to "close access fileRef"
> But...
> I still get an error when I try to open the file once it has been created by
> "set fileRef to (open for access file "whatever" with write permission)"

You will get an error if you haven't closed access first. Are you saying you
get an error even after closing access? you can't open for access with write
permission if it's already open with write permission. Just write again
while it's open, or close access first, then open again.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Writing to a file
      • From: JP Kelly <email@hidden>
References: 
 >Re: Writing to a file (From: JP Kelly <email@hidden>)

  • Prev by Date: Re: Deleting resource forks
  • Next by Date: Re: Writing to a file
  • Previous by thread: Re: Writing to a file
  • Next by thread: Re: Writing to a file
  • Index(es):
    • Date
    • Thread