Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-07-22

Build Requirements: N/A

Runtime Requirements: Carbon MRJ SDK 2.1 (optional)

View Source Code:

Download Sample (“Magic_Oracle.zip”, 369.3K)
Download Sample (“Magic_Oracle.dmg”, 331.4K)



Description

This example demonstrates how to script your Java Application using AppleScript. Functionality mimics the old black billiard ball that you asked a fortune and then shook vigorously in order to receive a cryptic reply. To submit your question to the "Magic Oracle", type your yes or no question in the text field and click the "Ask Oracle" button, press return or enter, or grab the ball with your mouse and shake it around the screen. This sample demonstrates: * Adding basic scriptability support to your Java application * How to create a bean info to enhance the automatically generated 'aete' created by the introspector * How to script your java application using the Scriptable Text Editor Apple Macintosh with Power PC processor, 64 megs of RAM, System 8.1, MRJ 2.0 or Later Requirements: MRJ SDK 2.1 (optional) Keywords: Java, AppleScript, Scripting, AppleScript for Java, Magic Oracle, fortune

Document Revision History

Date Notes
2003-07-22First Version

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.