HELLO Joseph,
Sorry for the delay in coming back with more info. After my post on the 14th July iTunes stopped playing up so I couldn't do the safe mode test. Then a few days ago it suddenly started again. I can not think of anything I have done to trigger it. Plus it was worse this time, before it would open iTunes randomly and start playing songs. This time it opened iTunes and kept trying to play the same song, a few seconds into the song it would stop think for a while then restart the song again and again and again....
So I closed my Mac, started up n safe mode and the same thing.
Before closing down the Mac and opening in safe mode I had left iTunes in Audio books and with any volume turned off to stop being woken in the middle of the night. it couldn't play anything. ( I don't have any audio books)
I shut down iTunes and the computer to restart in safe mode and see what happens.
In safe mode, iTunes after a while opened itself and of course could not play anything as I don't have any Audi books. When I switched to songs the iTunes window kept reloading itself. I noticed My cursor was in the search bar, no idea why, I clicked on the main part of the window and the reloading seemed to stop. Now this has made me think as I use my calendar a lot, and often have to search for events in the past, in recent weeks, the same thing has been happening there also. The search results keep reloading for a while. However I just tried to replicate that in safe mode and just get 'no results' showing. I know there are results on the search so. I have no idea what this means.
This seems like a software problem to me. Do you have any ideas?