[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Required Events

There are four events that are required for every application that claims to be AppleScriptable. This section discusses these four events and their syntax.

The events covered in this section are:


Open

Purpose:

This event tells the CodeWarrior IDE to open the specified files.


Open filename-list [ converting ] expression

If converting is specified, any project files that were created with previous versions of the CodeWarrior IDE will be updated.

Listing 0.4 Example for Open


Open "HD:MyProject.mcp" converting yes
Open "HD:MyProject.mcp"


Print

Purpose:

This event tells the CodeWarrior IDE to print the specified files.


Print filename-list 


Quit

Purpose:

This event tells the CodeWarrior IDE to quit.


Run

Purpose:

This event is sent to an application when it is double-clicked. Upon receiving the event, the application should launch itself.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 02, 2000