Accessing $Trash folder via backend script .. how to?

I am trying to access documents in the trash folder via backend lotusscript with no success. Here is a brief example of what is not working:

Set trash=s.CurrentDatabase.GetView(“($Trash)”)

Set note=trash.GetFirstDocument

While Not note Is Nothing

size=size+note.Size

cnt=cnt+1

Set note=trash.GetNextDocument(note)

Wend

So, is there something basic I am missing? Why doesn’t this work?

Subject: ($SoftDeletions) View works much better!

Changing the script to access the ($SoftDeletions) view versus the ($Trash) folder resolved the problem.

Set trash=s.CurrentDatabase.GetView(“($SoftDeletions)”)

Set note=trash.GetFirstDocument

While Not note Is Nothing

size=size+note.Size

cnt=cnt+1

Set note=trash.GetNextDocument(note)

Wend