OSAScript.inc 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. { Parsed from OSAKit.framework OSAScript.h }
  2. {$ifdef TYPES}
  3. type
  4. OSAScriptPtr = ^OSAScript;
  5. {$endif}
  6. {$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
  7. {$ifdef EXTERNAL_SYMBOLS}
  8. var
  9. OSAScriptErrorMessageKey: NSString; cvar; external;
  10. OSAScriptErrorBriefMessageKey: NSString; cvar; external;
  11. OSAScriptErrorNumberKey: NSString; cvar; external;
  12. OSAScriptErrorPartialResultKey: NSString; cvar; external;
  13. OSAScriptErrorOffendingObjectKey: NSString; cvar; external;
  14. OSAScriptErrorExpectedTypeKey: NSString; cvar; external;
  15. OSAScriptErrorAppAddressKey: NSString; cvar; external;
  16. OSAScriptErrorAppNameKey: NSString; cvar; external;
  17. OSAScriptErrorRangeKey: NSString; cvar; external;
  18. {$endif}
  19. {$endif}
  20. {$ifdef EXTERNAL_SYMBOLS}
  21. var
  22. OSAScriptErrorMessage: NSString; cvar; external;
  23. OSAScriptErrorNumber: NSString; cvar; external;
  24. OSAScriptErrorAppName: NSString; cvar; external;
  25. OSAScriptErrorBriefMessage: NSString; cvar; external;
  26. OSAScriptErrorRange: NSString; cvar; external;
  27. OSAStorageScriptType: NSString; cvar; external;
  28. OSAStorageScriptBundleType: NSString; cvar; external;
  29. OSAStorageApplicationType: NSString; cvar; external;
  30. OSAStorageApplicationBundleType: NSString; cvar; external;
  31. OSAStorageTextType: NSString; cvar; external;
  32. {$endif}
  33. {$ifdef TYPES}
  34. type
  35. OSAStorageOptions = NSUInteger;
  36. OSAStorageOptionsPtr = ^OSAStorageOptions;
  37. const
  38. OSANull = $00000000;
  39. OSAPreventGetSource = $00000001;
  40. OSACompileIntoContext = $00000002;
  41. OSADontSetScriptLocation = $01000000;
  42. OSAStayOpenApplet = $10000000;
  43. OSAShowStartupScreen = $20000000;
  44. {$endif}
  45. {$ifdef CLASSES}
  46. type
  47. OSAScript = objcclass external (NSObject, NSCopyingProtocol)
  48. private
  49. _private: OSAScriptPrivate;
  50. _reserved1: pointer;
  51. _reserved2: pointer;
  52. _reserved3: pointer;
  53. _reserved4: pointer;
  54. _reserved5: pointer;
  55. _reserved6: pointer;
  56. public
  57. class function scriptDataDescriptorWithContentsOfURL (url: NSURL): NSAppleEventDescriptor; message 'scriptDataDescriptorWithContentsOfURL:';
  58. function initWithSource (source: NSString): instancetype; message 'initWithSource:';
  59. function initWithSource_language (source: NSString; language: OSALanguage): instancetype; message 'initWithSource:language:';
  60. function initWithSource_fromURL_languageInstance_usingStorageOptions (source: NSString; url: NSURL; instance: OSALanguageInstance; storageOptions: OSAStorageOptions): instancetype; message 'initWithSource:fromURL:languageInstance:usingStorageOptions:';
  61. function initWithContentsOfURL_error (url: NSURL; errorInfo: NSDictionaryPtr): instancetype; message 'initWithContentsOfURL:error:';
  62. function initWithContentsOfURL_language_error (url: NSURL; language: OSALanguage; errorInfo: NSDictionaryPtr): id; message 'initWithContentsOfURL:language:error:'; deprecated 'in 10.6 and later';
  63. function initWithContentsOfURL_languageInstance_usingStorageOptions_error (url: NSURL; instance: OSALanguageInstance; storageOptions: OSAStorageOptions; errorInfo: NSErrorPtr): instancetype; message 'initWithContentsOfURL:languageInstance:usingStorageOptions:error:';
  64. function initWithCompiledData_error (data: NSData; errorInfo: NSDictionaryPtr): id; message 'initWithCompiledData:error:'; deprecated 'in 10.6 and later';
  65. function initWithCompiledData_fromURL_usingStorageOptions_error (data: NSData; url: NSURL; storageOptions: OSAStorageOptions; errorInfo: NSErrorPtr): instancetype; message 'initWithCompiledData:fromURL:usingStorageOptions:error:';
  66. function initWithScriptDataDescriptor_fromURL_languageInstance_usingStorageOptions_error (data: NSAppleEventDescriptor; url: NSURL; instance: OSALanguageInstance; storageOptions: OSAStorageOptions; errorInfo: NSErrorPtr): instancetype; message 'initWithScriptDataDescriptor:fromURL:languageInstance:usingStorageOptions:error:';
  67. function source: NSString; message 'source';
  68. function url: NSURL; message 'url';
  69. procedure setLanguage(newValue: OSALanguage); message 'setLanguage:';
  70. function language: OSALanguage; message 'language';
  71. procedure setLanguageInstance(newValue: OSALanguageInstance); message 'setLanguageInstance:';
  72. function languageInstance: OSALanguageInstance; message 'languageInstance';
  73. function isCompiled: ObjCBOOL; message 'isCompiled';
  74. function compileAndReturnError (errorInfo: NSDictionaryPtr): ObjCBOOL; message 'compileAndReturnError:';
  75. function executeAndReturnError (errorInfo: NSDictionaryPtr): NSAppleEventDescriptor; message 'executeAndReturnError:';
  76. function executeAppleEvent_error (event: NSAppleEventDescriptor; errorInfo: NSDictionaryPtr): NSAppleEventDescriptor; message 'executeAppleEvent:error:';
  77. function executeAndReturnDisplayValue_error (displayValue: NSAttributedStringPtr; errorInfo: NSDictionaryPtr): NSAppleEventDescriptor; message 'executeAndReturnDisplayValue:error:';
  78. function executeHandlerWithName_arguments_error (name: NSString; arguments: NSArray; errorInfo: NSDictionaryPtr): NSAppleEventDescriptor; message 'executeHandlerWithName:arguments:error:';
  79. function richTextSource: NSAttributedString; message 'richTextSource';
  80. function richTextFromDescriptor (descriptor: NSAppleEventDescriptor): NSAttributedString; message 'richTextFromDescriptor:';
  81. function writeToURL_ofType_error (url_: NSURL; type_: NSString; errorInfo: NSDictionaryPtr): ObjCBOOL; message 'writeToURL:ofType:error:';
  82. function writeToURL_ofType_usingStorageOptions_error (url_: NSURL; type_: NSString; storageOptions: OSAStorageOptions; errorInfo: NSDictionaryPtr): ObjCBOOL; message 'writeToURL:ofType:usingStorageOptions:error:';
  83. function compiledDataForType_usingStorageOptions_error (type_: NSString; storageOptions: OSAStorageOptions; errorInfo: NSDictionaryPtr): NSData; message 'compiledDataForType:usingStorageOptions:error:';
  84. { Adopted protocols }
  85. function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
  86. end;
  87. {$endif}