I use KM to automate FCPX all the time.
To answer your specific question, KM can definitely do that, for sure, and it would actually be a good macro to start learning with, since it only needs fairly commonly-used actions.
The question you need to ask yourself is this: Do you have the patience to learn a few things? I mean, I could write the macro for you, but the problem with that is, you'll always want something else (trust me on this), and I don't want to be your on-call macro-maker.
So if you're willing to learn, download a copy of KM (free demo), and give it a try. Use the menu item "Help->Tutorial" for a quick start. When you get stuck, come here and do some searches, then ask your questions.
Since I love FCPX automation, feel free to include my name in your questions by typing @DanThomas in the text somewhere, and I'll get an email (I don't monitor the forum like I used to). If the question is specific to FCPX, I'll jump in and answer.
Good luck!
Dan