home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odrtime.zip
/
OPENPACK
/
BIN
/
SCREDREC.HLP
(
.txt
)
< prev
next >
Wrap
OS/2 Help File
|
1995-12-14
|
9KB
|
214 lines
ΓòÉΓòÉΓòÉ 1. OSA Script Editor ΓòÉΓòÉΓòÉ
The Open Scripting Architecture (OSA) for OpenDoc provides developers and users
with the capabilities of creating Apple Events using a script and recording
Apple events by converting them to statements of a scripting language. The
recorded events, presented as statements in a scripting language, can be played
back or stored for future replay. OSA allows developers to create their own
script files to be used with specific applications. These scripts can be used
as applications by themselves, or as customizations for applications.
Note: Recording is not supported at this time.
The Script Editor and Recorder (SCREDREC) for OS/2 is based on EPM (the editor
which is used by most of the users of OS/2). The tool bar of EPM is made
similar to that of Script Editor for the Macintosh, and there are interfaces to
the Scripting Component and the Terminology Framework. The Script Editor is
language neutral, and it uses the services of OSA Scripting Language support to
perform the language dependent functions, like syntax check, compile etc..
Note: Object REXX is the only scripting language supported at this time.
For details, select from the list below:
Open
Play
Show Results
Start Recording
Stop
Syntax Check
Compile
Dictionary
Change Language
Change Dialect
Make Application
Insert Description
ΓòÉΓòÉΓòÉ 1.1. OSA Open ΓòÉΓòÉΓòÉ
You can open the Script Editor in three ways.
Opening the Script Editor WPS object. The Script Editor window will
appear, with ".unnamed" empty file.
Dropping a script file on the Script Editor WPS object. The Script Editor
window will appear, with the source of this file in the editor.
Opening the script file which had been saved before that using the Script
Editor. The Script Editor window will appear, with the source of this file
in the editor.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ 1.2. OSA Play ΓòÉΓòÉΓòÉ
Use OSA Play to run a script that is in the active script window.
You can also click on the Play button, which will then appear pressed.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> Show Result ΓòÉΓòÉΓòÉ
When playing a script, it can produce output as a result. For example, the
OREXX statement 'return 3 + 2' produces the result 5. When a script produces a
result, it is saved by OSA environment, and this result can be displayed later.
You can open the Result Window at any time by selecting Show Result from the
OSA menu. The Result Window opens. If the script had been played and produced a
result, the result would appear in the window.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> OSA Start Recording ΓòÉΓòÉΓòÉ
You can utilize the Script Editor to record a series of actions from recordable
applications.
To start recording actions as a script, you should open the Script Editor. Then
you have the option of choosing either the Record action from the OSA menu or
the Record button. The Record button will appear pressed immediately. Now,
when you open a scriptable application, all the actions will be recorded.
Note: Recording is not supported at this time.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> OSA Stop ΓòÉΓòÉΓòÉ
Use OSA Stop to halt recording or stop a running script.
To do this, you should click on the script window to make it active. Then you
can choose Stop from the OSA menu or press the Stop button.
Note: Recording is not supported at this time.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> OSA Syntax Check ΓòÉΓòÉΓòÉ
The Check Syntax button is available only for scripting components that support
syntax check. If syntax check is supported, you can use the Script Editor to
check the script syntax.
Note: In the first implementation of the product, only keyword highlighting
will be supported.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> OSA Compile ΓòÉΓòÉΓòÉ
Use this option to compile a script. If there is a compilation error, the
appropriate message appears and the Script Editor waits for your action. In
compilation is successful, the type of the script is set to compiled.
Note: Compile is inactive for recorded scripts or for scripts that are already
compiled. Once you change the file in any way, compile becomes active.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> OSA Dictionary ΓòÉΓòÉΓòÉ
Use OSA Dictionary to find out what terms are available and to find out their
syntax.
To open a dictionary, you should:
Select OSA Dictionary from the OSA menu. A dialog box will appear in which
you can select a scriptable application.
Select the application and click Open. The Dictionary window opens.
To see the details about using a term, you should click on it. The details
for using the term appear in the window.
Note: Three types of terms appear in the list of terms: Suite Name, Events,
and Classes. These are organized by suites. Within each suite its events
are listed in alphabetical order followed by the classes in alphabetical
order.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> Change OSA Language ΓòÉΓòÉΓòÉ
The scripting component of a language can be changed from the OSA menu, and the
language in use (the name of the Scripting Component) will be displayed on the
Toolbar or in the status line.
Note: Object REXX is the only scripting language supported at this time.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> Dialect ΓòÉΓòÉΓòÉ
You can select national language support (dialect) for a script, when
available.
Note: Only English is supported at this time.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> Make Application ΓòÉΓòÉΓòÉ
Use this selection to create an application from a script by:
Selecting Make Application from the OSA menu.
In the dialog box, choosing a location, a name and an invocation format.
Clicking on Create.
If the script was not already compiled, it will be compiled. It will then
be installed with the appropriate wrappers. In case of compilation error
or any other error, the appropriate message will appear and the Script
Editor will wait for your action. In case of successful installation, the
type of the script is set to application.
Note: This feature is not supported at this time.
go to SCREDREC main page
ΓòÉΓòÉΓòÉ <hidden> Description ΓòÉΓòÉΓòÉ
You can type a description that will show in a splash screen when the
application is started.
To open the description window, you should select Description from the OSA
menu. The Window will open. You can type in text, edit or just view.
Note: This feature is not supported at this time.
go to SCREDREC main page