Hi Sam,
Illustrator is quite scriptable. I never attempted waht you are describing so I would know where to begin with an explanation.
And to answer your second question, for all your mac related development needs, go to
http:www.macfreelancer.com. This is a free service where you post your requirements and have developers bid on them.