Re: High Sierra - Export Text in 4D v13.6
I want to thank Chip Scheide, Bernd Frölich and Jeremy French for their feedback and suggestions. > From: Bernd Fröhlich > Subject: Re: High Sierra - Export Text in 4D v13.6 > > Might have to do with how High Sierra is putting Apps in a sandbox if they > are not in the Applications directory. > I had something similar happen a while ago. I don´t remember the details but > if you download 4D in a directory that belongs to a "normal" user you can > start it like before, but the OS is putting it in a sandbox directory with a > random name like 07B29AA87F90481387491D4EEF206BB6. > So if you use commands like Get 4D folder it does not return the folder where > you THINK that 4D is located but the name of the random sandbox folder. > > If you move 4D into the application folder you are asked to authorize with > your admin password and the OS removes that quarantine-bit (or whatever it > uses to mark the app). So from then on everything works as expected even when > you the copy 4D from the applications folder to any other place. > > As I said, my memory is a bit vague but I think your problem might be > connected to this behavior of macOS. Definitely, because it does NOT create this file with os's before High Sierra. Why is v15 not displaying this behavior ? It's definitely something with v13.6. & High Sierra. I will apply a cleanup-method after I export the file, in the way Chip Scheide suggested and will work on this the coming days. > Greetings from Germany, > Bernd Fröhlich In this case I run the 4D database v13.6 either compiled or interpreted with the mac 4D app in High Sierra, in the regular Applications folder that you find on the root. It's not a standalone .app. Have not tried that one yet. >>-------------------- > From: Jeremy French > Subject: Re: High Sierra - Export Textin 4D v13.6 > > Have you looked at "Design -> Database Settings -> Database -> Temporary > Folder Location”? > > Is the "Temporary File Location" set to the “Resources” folder? > > >> there is a .temp file with a long filename >> (“07B29AA87F90481387491D4EEF206BB6.temp”) ALSO created in that Resource >> folder. The settings --> Database --> Temporary Folder Location is not set and the radiobutton of the 3 choices, the middle one, is set: Data File Folder. Current (location) is empty, as is Choose a folder line. However the folder "Temporary" I encounter in my Data File Folder ( is where I have the structure & datafile and the Resource Folder ) is empty. I do find the .temp file in the Resource Folder. Thank all for their input. Greetings ernie hilgers (aruba) ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: High Sierra - Export Text in 4D v13.6
Have you looked at "Design -> Database Settings -> Database -> Temporary Folder Location”? Is the "Temporary File Location" set to the “Resources” folder? > On Jun 5, 2018, at 4:37 PM, setar accnt via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > there is a .temp file with a long filename > (“07B29AA87F90481387491D4EEF206BB6.temp”) ALSO created in that Resource > folder. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: High Sierra - Export Text in 4D v13.6
setar accnt: > Came across a weird behavior and want to know if anyone else has encountered > this and how to solve this (mac & V13.6 & v15) > I use a document (“StoreHere.txt") in the Resources folder to store some data > in it, to be used later. > > After using the command Export Text, the document is ‘updated’ allright BUT > there is a .temp file with a long filename > (“07B29AA87F90481387491D4EEF206BB6.temp”) ALSO created in that Resource > folder. > > But this is not wanted because every time the export is performed a new file > with long name is created !! > > It does this ONLY with High Sierra (10.13.4), none of the previous mac os X > has this (I tested this). > (fyi: 4D v15 & up do not exhibit this behavior with os 10.13.4 ) > > Have a test db V13.6 with 1 table and 1 or 2 fields (doesn’t matter how many) > and 2 or more records. > I use one LongInt and one Text field. > > then make a method that I can call using a button on the layout. > > this is the method: > C_TEXT($sDocName) > > $sDocName:=Get 4D folder(Current Resources folder)+"StoreHere.txt” Might have to do with how High Sierra is putting Apps in a sandbox if they are not in the Applications directory. I had something similar happen a while ago. I don´t remember the details but if you download 4D in a directory that belongs to a "normal" user you can start it like before, but the OS is putting it in a sandbox directory with a random name like 07B29AA87F90481387491D4EEF206BB6. So if you use commands like Get 4D folder it does not return the folder where you THINK that 4D is located but the name of the random sandbox folder. If you move 4D into the application folder you are asked to authorize with your admin password and the OS removes that quarantine-bit (or whatever it uses to mark the app). So from then on everything works as expected even when you the copy 4D from the applications folder to any other place. As I said, my memory is a bit vague but I think your problem might be connected to this behavior of macOS. Greetings from Germany, Bernd Fröhlich ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: High Sierra - Export Text in 4D v13.6
I noticed this the other day as well. Did not pay much attention to it, but will do so. I think, in fact, that what I saw was not a 4D thing but had something to do with saving a PDF to file from the print dialog. It may have been from 4D, but I don’t think so. I will keep an eye out. > On Jun 5, 2018, at 10:37 AM, setar accnt via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Came across a weird behavior and want to know if anyone else has encountered > this and how to solve this (mac & V13.6 & v15) > I use a document (“StoreHere.txt") in the Resources folder to store some data > in it, to be used later. > > After using the command Export Text, the document is ‘updated’ allright BUT > there is a .temp file with a long filename > (“07B29AA87F90481387491D4EEF206BB6.temp”) ALSO created in that Resource > folder. > > But this is not wanted because every time the export is performed a new file > with long name is created !! > > It does this ONLY with High Sierra (10.13.4), none of the previous mac os X > has this (I tested this). > (fyi: 4D v15 & up do not exhibit this behavior with os 10.13.4 ) > > Have a test db V13.6 with 1 table and 1 or 2 fields (doesn’t matter how many) > and 2 or more records. > I use one LongInt and one Text field. > > then make a method that I can call using a button on the layout. > > this is the method: > C_TEXT($sDocName) > > $sDocName:=Get 4D folder(Current Resources folder)+"StoreHere.txt” > > ALL RECORDS([Table_1]) > ORDER BY([Table_1];[Table_1]seqNo;>) > > FORM SET OUTPUT([Table_1];"export") > > EXPORT TEXT([Table_1];$sDocName) > > FORM SET OUTPUT([Table_1];"output") > > Any input on this is very welcome. > Greetings > > ernie hilgers(aruba) > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
High Sierra - Export Text in 4D v13.6
Came across a weird behavior and want to know if anyone else has encountered this and how to solve this (mac & V13.6 & v15) I use a document (“StoreHere.txt") in the Resources folder to store some data in it, to be used later. After using the command Export Text, the document is ‘updated’ allright BUT there is a .temp file with a long filename (“07B29AA87F90481387491D4EEF206BB6.temp”) ALSO created in that Resource folder. But this is not wanted because every time the export is performed a new file with long name is created !! It does this ONLY with High Sierra (10.13.4), none of the previous mac os X has this (I tested this). (fyi: 4D v15 & up do not exhibit this behavior with os 10.13.4 ) Have a test db V13.6 with 1 table and 1 or 2 fields (doesn’t matter how many) and 2 or more records. I use one LongInt and one Text field. then make a method that I can call using a button on the layout. this is the method: C_TEXT($sDocName) $sDocName:=Get 4D folder(Current Resources folder)+"StoreHere.txt” ALL RECORDS([Table_1]) ORDER BY([Table_1];[Table_1]seqNo;>) FORM SET OUTPUT([Table_1];"export") EXPORT TEXT([Table_1];$sDocName) FORM SET OUTPUT([Table_1];"output") Any input on this is very welcome. Greetings ernie hilgers(aruba) ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **