Recently 2-3 friends have had this problem with their Macs. Maybe its a 3rd Party extension, or or add-on causing it, or maybe a hardware fault. Unfortunately, most of the time in India, if you take your Mac to your local Apple Third Party Reseller or Apple Authorized Service Provider, they will tell you that the only way to resolve this is to wipe your hard disk and by doing so you will lose all your data. But there are other ways….
Let’s jump right in…
I come from a very musically inclined family. We do everything to music. From the very first second we open our eyes every morning (to groovy iPhone alarms) we work to music, study to music, eat/cook to music. I could go on, but I think you get the picture. Lately I realized that the first thing I do every day at work login to my MacBook, connect my iPhone, open iTunes, and then start playing my work playlist. I started to wonder whether this whole process could be made easier (yes, I’m incredibly lazy), and decided I’d try to automate the entire process.
If you want to just get at the code, and don’t much care about the thought process/learning curve, the code is at the bottom in green. Jump ahead and start coding for your particular needs.