try testing for a locked file.
something like this:
Repeat
on err call ("If_File_Locked_Return_True")
$Doc_Ref := Open document(New_Scan_Document_Path)
on err call("")
if (not(On_Err_call_File_Locked_Variable = true)) | ($Doc_Ref # †
00:00:00†)
close document($Doc_Ref)
File_Copy_Completed := move_file_Method
end if
until(On_Err_call_File_Locked_Variable = false) | (File_Copy_Completed
= true)
** note code typed in email - use at your own peril :)
Chip
On Thu, 21 Nov 2019 10:20:46 +0000, Piotr Chabot Stadhouders via
4D_Tech wrote:
> Hi,
>
> We use DOCUMENT LIST and COPY DOCUMENT to handle scans
> The documents are copied by a scanner to a certain folder on a
> Windows server, where we are picking them up and process them
> It seems that because of slow copying the documents are picked up too
> early by us
> How can I ensure that the documents are totally copied by the
> scanner? COPY DOCUMENT to an temporary folder doesn’t seem to solve
> the problem
>
> Gr,
> Piotr
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive: http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
We have done so much, with so little, for so long;
We are now qualified to anything with nothing <sigh>
- unknown
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************