Re: Problem with PDF Creation into Temporary Folder (Follow-up)

2018-02-03 Thread Arnaud de Montard via 4D_Tech
> Le 3 févr. 2018 à 16:28, Stephen Shaw via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > I have now spent some time on this: > > 3. Error -43 is returned on the following line >$error:=SMTP_Attachment ($smtp_id; $document; 2; 0; ””; ”application/PDF”) Sounds linked to SMTP_Attachment…

Re: Problem with PDF Creation into Temporary Folder (Follow-up)

2018-02-03 Thread Jeffrey Kain via 4D_Tech
This is where our application creates them. -- Jeffrey Kain jeffrey.k...@gmail.com > On Feb 3, 2018, at 11:05 AM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > It may be worth trying to use something other than Temporary folder. That is > a long and strange path. I have had probl

Re: Problem with PDF Creation into Temporary Folder (Follow-up)

2018-02-03 Thread John DeSoi via 4D_Tech
It may be worth trying to use something other than Temporary folder. That is a long and strange path. I have had problems using it with AppleScript as well as displaying PDFs in web areas. One alternative is to create something in ~/Library/Caches. For example, Get 4D folder(Current resources fo

Re: Problem with PDF Creation into Temporary Folder

2018-02-03 Thread Bernd Fröhlich via 4D_Tech
Stephen Shaw: > Error -43 is returned on the following line > $error:=SMTP_Attachment ($smtp_id; $document; 2; 0; ””; ”application/PDF”) Error -43 is the OS error "file not found". Maybe try a shorter path to a known good location for a test. Greetings from Germany, Bernd Fröhlich

Re: Problem with PDF Creation into Temporary Folder (Follow-up)

2018-02-03 Thread Jeffrey Kain via 4D_Tech
Are you able to try on 16.3? Our application mails a LOT of PDFs every day without problems, and a few of the computers are using High Sierra and APFS. -- Jeffrey Kain jeffrey.k...@gmail.com > On Feb 3, 2018, at 10:28 AM, Stephen Shaw via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > My gut f

Re: Problem with PDF Creation into Temporary Folder (Follow-up)

2018-02-03 Thread Stephen Shaw via 4D_Tech
I have now spent some time on this: 1. The document is created in the correct folder 2. There are no permission errors to be noted and the problem can be duplicated on a second machine with the same OS, but everything works fine in Sierra on multiple machines 3. Error -43 is returned on the foll

Re: Error Code reserved by 4D

2018-02-03 Thread Alan Chan via 4D_Tech
Hi Arnaud, I never use component and have no comment on it. For trigger, the $0 is vital for us. It did trap 4D error once in awhile on our development phase. -9998 is the most popular one:-) Of course, we also return our business rules error to $0. Many 4D engine errors won't be trapped by er

Re: Error Code reserved by 4D

2018-02-03 Thread Arnaud de Montard via 4D_Tech
> Le 3 févr. 2018 à 11:18, Alan Chan via 4D_Tech <4d_tech@lists.4d.com> a écrit > : > > Hmm... I didn't see -20002 there. Hi Alan, one or more not documented, you know… ;-) I'd call that error "a method used as error handler must not have parameter, including $0" I was questioning myself ab

Re: Error Code reserved by 4D

2018-02-03 Thread Alan Chan via 4D_Tech
Hmm... I didn't see -20002 there. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >which should logically exclude predefined error codes, >but even then, you are not prohibited from using a certain range. > >http://doc.4d.com/4Dv16R4/4D/16-R4/Error-Codes.200-3316679.en.html **