how to detect the existence of a file ...
how to detect the existence of a file ...
- Subject: how to detect the existence of a file ...
- From: "Arthur Cormack" <email@hidden>
- Date: Thu, 25 Oct 2001 15:44:28 -0400
---sorry about the repost
Greetings and Salutations , Applescript Lords and Ladies.
A quick question from a humble squire:
i have created a droplet that renames files - server log files,
based on the dates of the logs in them - and it works quite nicely
... except for when there is/would be a duplicate filename made ...
i need to pre-empt this conflict by checking to see if a file by the
name of the name that we would call the logfile that we are currently
working with exists. And ... if it does ... add a suffix integer to
the filename which indicates which duplication number it is. It will
also check for multiple duplicates by looking at the integer as well.
There is one obstacle that I am having trouble with. How do I check
to see whether or not a file exists?
regards,
and thanks,
arthur cormack
_________________________
producer, interactive
the online group, TVOntario
W:416.484.2600.2010 C: 416.453.4369
E: email@hidden