This chapter describes the steps you take to create a new scripting definition file and add scriptability information for your Cocoa application.
Important: You can read about additional refinements to sdef usage in Cocoa applications for Mac OS X v10.5 in the Scripting section of Foundation Release Notes.
If your scriptable application will run in versions of the Mac OS prior to version 10.4, it must supply scriptability information in script suite and script terminology files. For more information, see “Converting and Updating Scriptability Information” and “Script Suite and Script Terminology Files.”
This chapter uses examples from the sdef file Sketch.sdef from the Sketch sample application, available from Apple.
For definitions of terms such as property and element used throughout this chapter, see the “Glossary.”
Structure of a Scripting Definition File
Create a Scripting Definition File
Add Information to the Scripting Definition File
Last updated: 2008-03-11