Schau dir mal die Klasse "NotesNoteCollection" an.
Dim nnc As NotesNoteCollection
nnc.Selectscriptlibraries = true
Das Feld hat den Namen "$Comment", deshalb dann mit "~" ergänzen.
Versuch mal folgendes:
uidoc.document.~$Comment(0)
Wobei ich nicht sicher bin, wie du über uidoc.document an die Scriptbibliothek dran kommst...
Wie jBubbleBoy schreibt kannst du es so lösen:
Dim nc As NotesNoteCollection
Set nc = db.CreateNoteCollection(False)
nc.Selectscriptlibraries = True
nc.SelectionFormula = {$Title = "Name der Scriptbibliothek"}
Call nc.Buildcollection()
If nc.Count > 0 Then
Set doc = db.Getdocumentbyid(nc.Getfirstnoteid())
End If
Dim Comment As String
Comment = doc.~$Comment(0)
MFG
ERR