Version: 1.1

Posted: 2007-03-01

Build Requirements: Xcode 2.2

Runtime Requirements: Mac OS X

View Source Code:

Download Sample (“SimpleCarbonAppleScript.zip”, 70.8K)
Download Sample (“SimpleCarbonAppleScript.dmg”, 118.0K)



Description

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.

Document Revision History

Date Notes
2007-03-01Updated scripting definitions to new .sdef format. Added examples showing how to implement verbs.
2006-11-14A simple example illustrating how to add readable and writable AppleScript properties to Carbon Application.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.