Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.1, 2007-03-01
Updated scripting definitions to new .sdef format. Added examples showing how to implement verbs.
(Full Revision History)
Mac OS X
SimpleCarbonAppleScript employs the Cocoa scripting runtime to add scriptability to a Carbon application. This sample illustrates the simplest AppleScript implementation for an application by implementing several properties on the main application. Carbon programmers new to AppleScript will find this sample is a useful starting point for beginning their exploration of making their application scriptable. SimpleCarbonAppleScript is very similar to SimpleCocoaAppleScript and only differs in the underlying implementation.