Accessing Custom cocoa framework or library from Applescript

Hi All, Is there anyway to access a library written in swift or objective-c from applescript? Library can be either cocoa framework or library. we can access standard framework classes and functions using 'use framework'. Can we do the same for custom library written using swift or objective-c? Thanks

Replies

I have a custom cocoa framework called "TestAutomation.framework". How do I access those functions and classes inside that framework from AppleScript code? We can access standard frameworks using directives 'use framework'. Is it possible to do the same for custom frameworks also?