Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kostya82

macrumors newbie
Original poster
Jul 26, 2005
3
0
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

macrumors 68000
Feb 1, 2005
1,887
1
kostya82 said:
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

macrumors newbie
Original poster
Jul 26, 2005
3
0
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.