Re: Creating a log file.
Re: Creating a log file.
- Subject: Re: Creating a log file.
- From: Michael McGonagle <email@hidden>
- Date: Wed, 20 Oct 2004 16:51:01 -0500
On Oct 20, 2004, at 4:34 PM, Michelle Steiner wrote:
set new_file to choose file name default name "log.txt" default
location (path to documents folder)
set fref to open for access new_file with write permission
write my_data to fref
close access fref
Hum, I tried to run this, and each subsequent time that I ran this,
keeping the same name for the log file (ie replacing it), AppleScript
would not do it. Even when I would manually delete that file from the
Documents folder, AppleScript still asked about replacing the file. I
even went so far as to run it again after having put the file in the
trash and emptying the trash, but AppleScript still asked if I wanted
to replace the file. Each time, I got an error message "File file
...Documents:log.txt is already open.".
Is this normal? Seems like a bug to me.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden