home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / SG244883.ZIP / 2.6 < prev    next >
Text File  |  2001-01-27  |  7KB  |  139 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <HTML>
  3. <HEAD>
  4. <base href="http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/EZ30OZ00/2.6">
  5. <title>
  6. 2.6 "OS/2 WARP and OpenDoc" 
  7.   via IBM BookManager BookServer
  8. </title>
  9. </head>
  10. <body background="/bookmgr/backdrop.gif">
  11. <banner><br>
  12. <a href="../../library"><img src="/bookmgr/libicon2.gif" border=0 alt="[Library]"></a>
  13. <a  href="CONTENTS#2.6"><img src="/bookmgr/contents.gif" border=0 alt="[Contents]"></a>
  14. <img src="/bookmgr/drevs.gif" border=0 alt="[Revisions]">
  15. <a href="2.5.2.3"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  16. <a href="2.6.1"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  17. <a href="../../search?book=EZ30OZ00"><img src="/bookmgr/search.gif" border=0 alt="[Search]" ></a>
  18. <img src="/bookmgr/dslist.gif" border=0 alt="[Search Results]">
  19. <img src="/bookmgr/dsprev.gif" border=0 alt="[Prev Topic Match]">
  20. <img src="/bookmgr/dsnext.gif" border=0 alt="[Next Topic Match]">
  21. <img src="/bookmgr/dnotes.gif" border=0 alt="[Notes]">
  22. <img src="/bookmgr/dlnotes.gif" border=0 alt="[List Notes]">
  23. <a  href="../../print?book=EZ30OZ00"><img src="/bookmgr/print.gif" border=0 alt="[Print]"></a>
  24. <a href="../../download/EZ30OZ00.boo"><img src="/bookmgr/download.gif" border=0 alt="[Download]" ></a>
  25. <a  href="../../help/book"><img src="/bookmgr/help.gif" border=0 alt="[Help]"></a>
  26. <hr>
  27. <a name="HDROSA"><H2> 2.6   Open Scripting Architecture</H2></a>
  28. </banner>
  29. <pre width="80">
  30. <p>
  31. <a name="FIG4610D53"><hr>
  32.  </a>
  33. <p>
  34. <p>
  35.                                    <a href="picture-32?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P32.GIF" alt="PICTURE 32"></a>           
  36. <p>
  37. <p>
  38. <hr>
  39.  
  40.    Figure 32. OpenDoc Open Scripting Architecture 
  41. <p>
  42.    One of the major goals of OpenDoc is to increase the level of 
  43.    customization that you can do with documents or applications. Experienced 
  44.    users or system integrators want to do much more with components than just 
  45.    assemble them.  Many tasks can be automated.  OSA provides the automation 
  46.    technique done by scripts.  OSA defines also how components can 
  47.    collaborate and communicate using events.  OSA enables collaboration 
  48.    between components beyond the very basic mechanisms of layout and resource 
  49.    negotiations OpenDoc is dealing with, as described in <a href="2.3.2.1#HDR4610DFF">"Frames and Facets"</a> 
  50.    <a href="2.3.2.1#HDR4610DFF">in topic 2.3.2.1</a>.  These OSA events can be launched either directly or by 
  51.    scripts.  Scripts can be attached to parts, and a user-interface control 
  52.    such as a button might consist of nothing more than a part that executes a 
  53.    script when activated. 
  54. <p>
  55.    Scripts are programs executed by interpreters.  Scripting forms a rich 
  56.    medium for coordinating the work of parts in documents, and allows you and 
  57.    parts to work together to perform tasks. 
  58. <p>
  59.    Today script programs are the base for an agent technology.  They can be 
  60.    small pieces of code that can perfrom specific tasks such as buying or 
  61.    selling shares.  They may be coded so that they control whether a stock is 
  62.    bought or sold depending on its price.  They could also be coded to 
  63.    collect infromation from different internet sites.  The scripting language 
  64.    provided with OS/2 is REXX.  Because OS/2 TCP/IP is providing a socket API 
  65.    and an OS/2 FTP API for REXX, it is possible to run REXX programs also on 
  66.    the Internet. 
  67. <p>
  68.    REXX, with its extension to Object REXX as delivered with the The 
  69.    Developer Connection for OS/2 Volume 9 Special Edition, can also be used 
  70.    as a scripting language for OSA, to enable collaboration between parts or 
  71.    to customize OSA-aware applications. 
  72. <p>
  73.    The implementation of this collaboration between parts in an OS/2 
  74.    environment is called the interapplication communication (IAC).  The IAC 
  75.    architecture comprises the following parts, as shown in the next figure 
  76.    <a href="#FIG4610D32">Figure 33</a>: 
  77. <p>
  78.    1.   Open scripting architecture (OSA) provides a mechanism that allows 
  79.        users to control multiple applications by means of scripts, or sets of 
  80.        instructions, written in a variety of scripting languages.  Each 
  81.        scripting language has a corresponding scripting component that is 
  82.        managed by the Component Manager. When a user executes a script, the 
  83.        scripting component sends OSA events to one or more applications to 
  84.        perform the actions the script describes. 
  85. <p>
  86.    2.  OSA Event Manager allows applications to send and respond to OSA 
  87.        events. 
  88. <p>
  89.    3.  Presentation Manager allows applications to send and respond to 
  90.        high-level events other than OSA events. 
  91. <p>
  92. <p>
  93. <a name="FIG4610D32"><hr>
  94.  </a>
  95. <p>
  96. <p>
  97.                                    <a href="picture-33?mode=zoom"><img src="/bookmgr/pictures/EZ30OZ00.P33.GIF" alt="PICTURE 33"></a>           
  98. <p>
  99. <p>
  100. <hr>
  101.  
  102.    Figure 33. Interapplication Communication 
  103. <p>
  104.    OSA is based on events. OSA extends the existing messaging mechanism 
  105.    provided by Presentation Manager in OS/2 by semantic messages.  That means 
  106.    the objects addressed by a message can be described in a semantic way. 
  107.    For example in <a href="2.6.2#FIG4610D34">Figure 34 in topic 2.6.2</a>. The script command: 
  108. <p>
  109.      <samp>copy</samp> <samp>table</samp> <samp>"Summary</samp> <samp>of</samp> <samp>Sales"</samp> <samp>to</samp> <samp>Totals</samp> 
  110. <p>
  111.     describes the object's table and totals in a very general semantic way. 
  112.    For further explanation see also<a href="2.6.2#HDR4610DS2"> " Standard Events" in topic 2.6.2</a>.  OSA 
  113.    provides a set of common event suites the components collaborating can 
  114.    agree on.  The scripting component provides human-language equivalents to 
  115.    OSA event codes.  OSA allows users to record their actions in the form of 
  116.    a script when using a scripting component that supports recording.  The 
  117.    recording is not supported in the current release by REXX.  OSA allows 
  118.    provides the infrastructure to manipulate and execute scripts via a script 
  119.    editor.  These OSA events can be generated by scripting components as REXX 
  120.    or sent directly by applications.  The most important requirement for 
  121.    high-level communication among all applications is a common vocabulary of 
  122.    events.  High-level events that conform to this protocol are called OSA 
  123.    events. 
  124. <p>
  125. <p>Subtopics:
  126. <ul>
  127. <li>  <a href="2.6.1"> 2.6.1 OSA Events</a>
  128. <li>  <a href="2.6.2"> 2.6.2 Standard Events</a>
  129. <li>  <a href="2.6.3"> 2.6.3 Event Objects</a>
  130. <li>  <a href="2.6.4"> 2.6.4 Script</a>
  131. </pre>
  132. </ul>
  133. <hr>
  134. <br><a href="2.5.2.3"><img src="/bookmgr/prev.gif" border=0 alt="[Prev Topic]"></a>
  135. <a href="2.6.1"><img src="/bookmgr/next.gif" border=0 alt="[Next Topic]"></a>
  136. <cite>  ⌐ Copyright IBM Corp. 1996</cite>
  137. <HR><p><h6><a href="/cgi-bin/bookmgr/library">IBM BookManager« BookServer</a> Copyright 1989, 1999<a href="http://www.ibm.com/"> IBM</a> Corporation.  All rights reserved.</h6><p>
  138. </BODY></HTML>
  139.