home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Development Tools / Sample Applications / MenuScripter 1.0d4.1 / MenuScripter Source / MSScript.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-24  |  686 b   |  37 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSScript.h
  3.     
  4.     Version 1.0d4
  5.     
  6.     Copyright © Apple Computer UK Ltd. 1992
  7.     
  8.     All rights reserved.
  9.     
  10.     Produced by : UK Developer Technical Support
  11.     AppleLink   : UK.DTS
  12. */
  13.  
  14. #ifndef __MSSCRIPT__
  15. #define __MSSCRIPT__
  16.  
  17. #include <Types.h>
  18.  
  19. #include "MSGlobals.h"
  20.  
  21. pascal OSErr InitEditorScripting(void);
  22.  
  23. pascal OSErr CloseEditorScripting(void);
  24.  
  25. pascal OSErr CompileDocument(DPtr theDoc);
  26.  
  27. pascal OSErr ExecuteDocument(DPtr theDoc);
  28.  
  29. pascal OSErr ScriptForMenuExists(short theMenu, short theItem, Boolean *exists);
  30.  
  31. pascal OSErr ExecuteScriptForMenu(short theMenu, short theItem);
  32.  
  33. pascal OSErr EditMenuScript(short theMenu, short theItem);
  34.  
  35. pascal short GetScriptActiveItem(void);
  36.  
  37. #endif