setting button state to state of shuffle in iTunes

Hi, I was wondering how to set the state of a button depending on the state of shuffle (on or off) in iTunes
Thanks!

  • Collin
set state of button "Shuffle" of window "Gazurtoid" to iTunesShuffleState()

to iTunesShuffleState()
	try
		tell application "iTunes" to return (shuffle of current playlist)
	end try
	return false
end iTunesShuffleState