This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Did you think about the problem yourself? What do you think you would need to do to perform this task? Please think about the problem yourself first, when you have thought out how to do it write some code, and if you get stuck post your code here and ask a question about what you don't understand.