Re: test for a finished file copy (was: Regarding the "info for" command)
Re: test for a finished file copy (was: Regarding the "info for" command)
- Subject: Re: test for a finished file copy (was: Regarding the "info for" command)
- From: cris <email@hidden>
- Date: Sat, 10 Feb 2001 01:39:31 +0100
on 09.02.2001 21:51 Uhr, Robert Seckendorf at email@hidden wrote:
(...)
>
I don't want to invoke the script until all the files in the
>
receiving folder are completely copied into the folder.
(...)
>
is there any way to check if a file is available merely by using the
>
"info for" command?
You may try just to open the file. If you get an error, it is in use.
try
set FRef to open file thePath with write permission
close fref
return false
on error number errn
try
close fref
end
-- i don't know the error number for this case, try it self...
if errn = x then return true
return false
end
Greetings
cris
--
English is my second language.
www.cooc.de