Introduction to AppleScripting MT-NewsWatcher
MT-NewWatcher has extensive Apple Event support, which allow many parts of the program to be controlled, and allow read and write access to most user data.
Key
In the event descriptions and sample scripts below, the various terms are color-coded. The colors are as follows:
- Language Keyword
- A keyword in AppleScript, like tell, while or error. Application-defined enumerations also fall in this category, like yes/no/canel.
- Application keyword
- A keyword defined in the application's dictionary, which can be either the name of an event, or an event parameter, like open, foreground color, or server.
- Comment
- An AppleScript comment like " -- this line does nothing".
- Example code:
-
tell application "MT-NewsWatcher" quit end tell
Required Suite
The Required Suite consists of four events that every application should support, for launching the application, opening and printing documents, and quitting.
- run
- Run the application
- open
- Open one or more files
- Print one or more files
- quit [saving yes/no/ask]
- Quit the application
Example
Core Suite
Under construction. Examine MT-NewsWatcher's AppleScript dictionary to see what functions are available.
URL Suite
Events to fetch data from URLs and display the results to the user. The URLs can be in any of the forms supported by MT-NewsWatcher.
- geturl "news://news.foo.bar/comp.sys.mac.comm"
- Get a URL and display it in a window
News Suite
Object and Events for Usenet news applications. These are intended to be generic objects and events that every news client should support.
Under construction. Examine MT-NewsWatcher's AppleScript dictionary to see what functions are available.
YA-NewsWatcher Suite
Under construction. Examine MT-NewsWatcher's AppleScript dictionary to see what functions are available.
MT-NewsWatcher Suite
Under construction. Examine MT-NewsWatcher's AppleScript dictionary to see what functions are available.
Table of Contents
- Preface
- Table of Contents
- Introduction
- Features
- Advanced features
- The Interface
- Appendices