Re: applescript-users digest, Vol 2 #1456 - 16 msgs
Re: applescript-users digest, Vol 2 #1456 - 16 msgs
- Subject: Re: applescript-users digest, Vol 2 #1456 - 16 msgs
- From: "Daniel A. Shockley" <email@hidden>
- Date: Fri, 4 Jan 2002 18:13:01 -0500
Subject: How can i do? ..... release 2
From: rhyme <email@hidden>
To: <email@hidden>
How can i ask Finder if exist a file in a directory ??
Here's a really fast "exists" handler that doesn't bother with the
Finder. It accepts a string path as parameter, but should work with
file specs. If not, just call the handler as follows:
testPathExists(myFileSpec as string)
on testPathExists(inputPath)
-- version 1.2
-- Daniel A. Shockley, email@hidden
-- gets somewhat slower as nested-depth level goes over 10
nested folders
try
inputPath as alias
return true
on error
return false
end try
end testPathExists
----
Daniel A. Shockley
email@hidden
email@hidden
http://www.danshockley.com