Environment variables in R6 on Mac OS X

I have some 'script in our customised mail template which is failing in the R6/Mac OS X client. It’s really unpredictable as to whether it will pick up a non-system environment variable I have in the preferences file.

I had placed the code in the Database PostOpen. Investigation indicates, however, that events fire in a different order on that platform (Inbox PostOpen fires AFTER Database Postopen?!). Testing indicates that the environment variable is NOT available by the time Database Postopen runs; Inbox postopen runs AFTER d/b postopen on the Mac platform (as mentioned above), so I moved the code into the PostOpen event in the Inbox folder. SOMETIMES the variable is available in Inbox PostOpen, and sometimes not. So far, it’s always been available to a script triggered by a button in a document - but that’s no good to me.

Any ideas?

(Can I just take this opportunity to mention that I hate the Macintosh platform? Completely, unremittingly, and with a passion that will remain undimmed by time. I am now officially the world’s biggest hater of the Mac)

Subject: All set to help, until last sentence.

Subject: I just wish…

… that he would have posted his last sentence at the top of his message! That’s 26 seconds of my life I’ll never see again!

Subject: RE: Environment variables in R6 on Mac OS X

You seem to imply that this behaviour is somehow the “fault” of the Mac, rather than the Notes client on the Mac. Or even – gasp – the code you’re using.

So why would Mac zealots like me want to help? ; - )

Anyway, FWIW, the database postopen event don’t trigger in the order you might be forgiven for thinking it should: view events will usualyy beat it, and that’s not just on the Mac.

Subject: RE: Environment variables in R6 on Mac OS X

Anyway, FWIW, the database postopen event don’t trigger in the order you might be forgiven for thinking it should: view events will usualyy beat it, and that’s not just on the Mac.

Well, I’m always prepared to be proven wrong, but I did trace the order of events, and Inbox PostOpen popped up after Database PostOpen on my test Mac. On Windows, the folder events DO trigger first.

And as for it being the “fault” of the Mac - the exact same code works in Windows. I’m not discounting the possibility of a Notes client bug, but the client does have to run within the confines of its operating platform - with whatever foibles, weaknesses and, yes, bugs, are inherent to that platform. Anyone with a healthy level of cynicism about the wonderful world of software will question EVERY layer.

Subject: RE: Environment variables in R6 on Mac OS X

Soething’s changed then; I’ve definitely noted view / folder events triggering before the Database Postopen script in Notes 5.x on Windows 2000.

Whilst I agree with your general point about software, I’d say that this difference is far more likely to be a Notes client bug than something to do with the Mac OS – these events are very specific Notes-only constructs.