how do I access the self object in a self script?
You can access any global object using #<var-name>.
For example,
#self.name = "Jim";