Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 9 - Recording Apple Events / What to Record


Recording Interactions With Dialog Boxes

When executing scripts, users normally do not want to see dialog boxes. Therefore, your application should record information specified by the user in dialog boxes rather than sending events that would cause the dialog boxes to appear during script execution.

For example, suppose a user chooses the Close command and the standard save changes dialog box appears. If the user then clicks Save, your application should send a Close event that corresponds to a statement like this:

close document "MyDoc" saving Yes
Any settings in a dialog box that the user does not change (such as the range of pages to print in a Print dialog box) should not be recorded.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996