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:[email protected] **********************************************************************

