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

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

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