PDA

View Full Version : Applescript support for Carbon application. Are there any examples?




kostya82
Apr 24, 2006, 12:38 PM
I'm writing a console application for Mac OS X and I would like to
expose some of my application objects for applescripting.

Are there any good examples, that shows how this could be done? The
only one I have found is MoreOSL (
http://developer.apple.com/samplecode/MoreOSL/MoreOSL.html ), but it's
completely out of date

Any suggestion will be deeply appreciated.

Konstantin.



Soulstorm
Apr 24, 2006, 04:17 PM
I'm writing a console application for Mac OS X and I would like to
expose some of my application objects for applescripting.

Are there any good examples, that shows how this could be done? The
only one I have found is MoreOSL (
http://developer.apple.com/samplecode/MoreOSL/MoreOSL.html ), but it's
completely out of date

Any suggestion will be deeply appreciated.

Konstantin.
When using MOSL, you can't use your objects with Applescript. Instead, you make some functions that you can then call with applescript applications.

kostya82
Apr 25, 2006, 02:34 AM
I know I cann't expose my objetcs as they are in my application because applescript syntax is less flexible than c++.

However I've thought I can declare some objects with several properties and a set of functions which operate on these objects.

Is that possible?