Thanks Paul, that's the way i was planning to do it. But i will move the original file into a subfolder, so that the hot folder only contains new unprocessed files.
I was more looking to rule out any known problems that might occur when doing this. Matthias > Am 07.10.2021 um 22:32 schrieb Paul Dupuis via use-livecode > <use-livecode@lists.runrev.com>: > > The only way I know to to that in LiveCode is by polling the folder at some > interval. > > You get the detailed files (for the last modification date) > filter to PDFs > output them to pdf/1-1b's > Save this initial detail list of PDF files (in a variable or property or > field) > Then send a message to yourself in x minutes > > That message get the detailed files and compares the new list to the save list > Any new or updated file is sent to Ghostscript > Then the save list is updated > Send a message to myself in X minutes > > That's pretty much it. > > On 10/7/2021 3:39 PM, matthias rebbe via use-livecode wrote: >> Hi, >> >> before i reinvent the wheel... >> >> Has anyone on the list already created a solution for monitoring a folder on >> Windows (server) for new files and to do some action on that new files? >> >> I need to create a tool that monitors a folder on Windows Server 2019 and >> if a new pdf file is in the folder, the tool shall convert that pdf to >> pdf/a-1b with Ghostscript in an destination folder and rename the original >> one. >> >> Is there anything i should keep in mind? Are there any pitfalls? >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode