Help: Script for clicking in Itunes

Hey all
Sorry if this is in the wrong place…
Anyways
For some unknown reason i decided to make a script which continually clicks in itunes on a loop so that i can get my playcounts high:cool: :smiley:
I cant seem to make it work at all… Sometimes the script runs fine - But does nothing… And other times it just throws errors at me… Sorry but i am new to applescript and my friend said its really powerful if you understand the language - so here is me having a go.
But if anyone can make it work, and explain what they are doing that would be great


tell application "iTunes"
	if player state is paused then
		play user playlist "My Top Rated"
		return "Playing"
		 if 1 = 1 then
			tell application "System Events"
   				tell process "iTunes"
       			click at {332,85}		
				end tell
			end tell
		
	else
		tell application "System Events"
   			tell process "iTunes"
       		click at {332,85}	
	   	end tell
	end tell
end

I know its messy - sorry

Hi,

the click command with coordinates doesn’t work, but GUI scripting is not necessary.
In iTunes the property played count of class track is settable.