Getting window id on Mac OSX?

Hi,

does anyone know how to get the window ID on Mac OSX?

cheers,