Re: Writing to a file
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.