Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
AppleScriptRunner
Last Revision: | Version 1.2, 2006-07-31 Updated to produce a universal binary. No code changes were required. (Full Revision History) |
Build Requirements: | Xcode |
Runtime Requirements: | Mac OS X 10.3 |
Embedding and executing AppleScripts within your application bundle allows you to quickly add functionality to your application without changing any code which otherwise becomes very complicated. AppleScriptRunner contains a folder within its application bundle, "AppleScripts" which contains a number of customizable AppleScripts. The selected AppleScript is executed while passing it a Text parameter. How do you send email from your application? AppleScriptRunner allows you to send email by running the enclosed "Mail" AppleScript. How do you add Text-To-Speech? Just call the enclosed "Speak" AppleScript. By packaging up functionality into AppleScripts called by an application it could allow users to create their own customizable alerts/events, extend the behavior of the main application, package functionality into components, and more.
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-07-31