Just an idea I set once on a project: check the size of the document. Until
size is changing, consider that the copy/move is not finish and wait 1
second more.
-
Patrick EMANUEL
Administrator
www.association-qualisoft.eu
(Soft1002
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_Cop
t; on behalf of 4D Tech Mailing List
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Thursday, 21 November 2019 at 15:03
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Piotr Chabot Stadhouders
Subject: Re: DOCUMENT LIST : how do I know the documents
Dear Alexander,
Unfortunately, I believe the “locked” attribute doesn’t return true when
copying is in progress
But thanks for your tip.
Gr,
Piotr
could this help?
GET DOCUMENT PROPERTIES ( document ; locked ; invisible ; created on ; created
at ; modified on ; modified at )
> Am 21.11.201
could this help?
GET DOCUMENT PROPERTIES ( document ; locked ; invisible ; created on ; created
at ; modified on ; modified at )
> Am 21.11.2019 um 11:20 schrieb Piotr Chabot Stadhouders via 4D_Tech
> <4d_tech@lists.4d.com>:
>
> Hi,
>
> We use DOCUMENT LIST and COPY DOCUMENT to handle scans
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 docu
6 matches
Mail list logo