Applescript support for Carbon application. Are there any examples?

Discussion in 'Mac Programming' started by kostya82, Apr 24, 2006.

  1. macrumors newbie

    Joined:
    Jul 26, 2005
    Messages:
    3
    #1
    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.
     
  2. macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    Messages:
    1,885
    #2
    When using MOSL, you can't use your objects with Applescript. Instead, you make some functions that you can then call with applescript applications.
     
  3. macrumors newbie

    Joined:
    Jul 26, 2005
    Messages:
    3
    #3
    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?
     

Share This Page