View Single Post
"self" refers to the object in the script, and id of self will give you the id.
Code:
display dialog "My name is " & (name of self as text) & " and my id is " & (id of self as number)