Re: Writing to a file
Re: Writing to a file
- Subject: Re: Writing to a file
- From: JP Kelly <email@hidden>
- Date: Sun, 14 Jul 2002 13:12:55 -0700
On 7/14/02 12:50 PM, "Paul Berkowitz" <email@hidden> wrote:
>
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.
Well it is working now but I am not sure what I was doing wrong. (hate that)
Just so I am clear on this, to close the file do I want to use
close access file "Users:jpkelly:Library:Application Support:mover.prefs"
Or
close access fileRef
Or both?
I'm sure this is really basic, obviously I am quite a newbie.
_______________________________________________
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.