This thread for example:
Can this be done using the SDK?
Is there any difference in CS6 in that regard?
This thread for example:
http://forums.adobe.com/message/4374145#4374145
Can this be done using the SDK?
Is there any difference in CS6 in that regard?