I am the developer of a 4D app that runs on MacOS 13.2 Ventura, that monitors an SFTP upload folder, and processes the uploaded documents, including printing them using an OSAScript from within the 4D app.
This app was working correctly for years on earlier MacOS versions.
Upon launching the pdf with OSAScript the MacOS shows an error message:
4D Server has been set to Full Disk Access, and so has Preview. 4D Server has been added to the list of apps in the Allow applications to use developer tools.
If I double click the PDF document, preview opens it.
Launching the PDF from within 4D Server shows the error.
The SFTP uploads are done in a different User account than the 4D Server is running in. Copying the uploaded PDFs make the copied file owner the 4D Server user account, but OSAScript still won't launch the copied PDF.
How do I fix this?