I need a temporary file somewhere on my mac and tried to use a part of the TempFileStream class as posted by Andre Guirard (http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/tempfilestream-class)Works fine for all win clients, but on all 3 macs (OS 10.6.2) i get an error in loading dll…?
Subject: the lib name should be…
“libnotes.dylib”
Subject: Works fine
Thank you Andre!
Subject: Did you try Environ function
If you use lotusscript, did you try envrion function ?
I never tested it on a Mac, but this function will allow you to retrieve environment variable from the OS. The only thing you have to know is the name of the temporary directory on mac osx. ![]()
But as mac osx is “linux based”, you’ll probably find it by opening a terminal and use the “set” command.
Hope this helps
Renaud
Subject: Environ doesn’t work on mac
Environ returns an empty string on mac…
The really great thing is that the TempFileStreamClass from Andre returns the notes temp dir
… so i would like to use this on mac, too…