Is local NAB always called names.nsf? If not, can I ask what it is?

I’m writing some agent that needs to open the local address book to look at some Location values. There are two possible hitches:1. when installing new Notes, the “names=” variable in notes.ini is not populated (so looking at Environment variable is not reliable).

  1. maybe some companies chose to use some different name (like for example where they already have local replica of PNAB which is also called names.nsf).

Any ideas on how I can either tell customers that “names.nsf” is compulsory defined by Lotus, or is it possible to find out the name of local AB?

Subject: usually, but not always

By default, the local address book is names.nsf, but you can’t count on it remaining this way. People can rename their pnab and change that value in their preferences.

The best way to programmatically determine the local address book name is to use the NotesSession.AddressBooks property, in Lotusscript.

Subject: Cross posting - answer

http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllFlatweb/c6155e591e7a95c685257662000bb86b?OpenDocument