Please give me some hints about how to work and, more practically, handle Apple events from raw console application written in C++ on Mac. I know that there is huge infrastructure for this purpose in Cocoa but as I think this is only a wrapper. May be it's impossible?
There is C API for it:
and
Overview:
But as you can see that Apple considers this as legacy nowadays, so for a new project, using the Objective-C APIs might be the better choice.