Re: How to Test for a file ...
Re: How to Test for a file ...
- Subject: Re: How to Test for a file ...
- From: Nigel Smith <email@hidden>
- Date: Mon, 05 Jul 2004 12:31:51 +0100
On 30/6/04 21:24, "Charles Heizer" <email@hidden> wrote:
>
I was wondering if anyone could tell me how to test if a file exists?
>
So, if it does not I can create the file.
Lots of lovely answers using error codes and so on, but how about:
close access (open for access file "path:to:file")
...to open and close a file if it's there already, and create, open and
close it if it isn't?
You don't even need to close it at that stage if you are going to write data
to the file...
Nigel
_______________________________________________
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.