clicking dock icon

Hi, does anyone know if there is a way for an applescript app to know if you click on it’s own dock icon?

much thanks.

-patrick

on reopen
	say "splendid!"
end reopen