ASDebugging.pas 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. {
  2. File: OpenScripting/ASDebugging.h
  3. Contains: AppleScript Debugging Interfaces.
  4. Version: OSA-148~28
  5. Copyright: © 1992-2008 by Apple Computer, Inc., all rights reserved
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://bugs.freepascal.org
  9. }
  10. { Pascal Translation Updated: Gorazd Krosl <[email protected]>, October 2009 }
  11. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2012 }
  12. {
  13. Modified for use with Free Pascal
  14. Version 308
  15. Please report any bugs to <[email protected]>
  16. }
  17. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  18. {$mode macpas}
  19. {$modeswitch cblocks}
  20. {$packenum 1}
  21. {$macro on}
  22. {$inline on}
  23. {$calling mwpascal}
  24. {$IFNDEF FPC_DOTTEDUNITS}
  25. unit ASDebugging;
  26. {$ENDIF FPC_DOTTEDUNITS}
  27. interface
  28. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  29. {$setc GAP_INTERFACES_VERSION := $0308}
  30. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  31. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  32. {$endc}
  33. {$ifc defined CPUPOWERPC and defined CPUI386}
  34. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  35. {$endc}
  36. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  37. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  38. {$endc}
  39. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  40. {$setc __ppc__ := 1}
  41. {$elsec}
  42. {$setc __ppc__ := 0}
  43. {$endc}
  44. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  45. {$setc __ppc64__ := 1}
  46. {$elsec}
  47. {$setc __ppc64__ := 0}
  48. {$endc}
  49. {$ifc not defined __i386__ and defined CPUI386}
  50. {$setc __i386__ := 1}
  51. {$elsec}
  52. {$setc __i386__ := 0}
  53. {$endc}
  54. {$ifc not defined __x86_64__ and defined CPUX86_64}
  55. {$setc __x86_64__ := 1}
  56. {$elsec}
  57. {$setc __x86_64__ := 0}
  58. {$endc}
  59. {$ifc not defined __arm__ and defined CPUARM}
  60. {$setc __arm__ := 1}
  61. {$elsec}
  62. {$setc __arm__ := 0}
  63. {$endc}
  64. {$ifc not defined __arm64__ and defined CPUAARCH64}
  65. {$setc __arm64__ := 1}
  66. {$elsec}
  67. {$setc __arm64__ := 0}
  68. {$endc}
  69. {$ifc defined cpu64}
  70. {$setc __LP64__ := 1}
  71. {$elsec}
  72. {$setc __LP64__ := 0}
  73. {$endc}
  74. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  75. {$error Conflicting definitions for __ppc__ and __i386__}
  76. {$endc}
  77. {$ifc defined __ppc__ and __ppc__}
  78. {$setc TARGET_CPU_PPC := TRUE}
  79. {$setc TARGET_CPU_PPC64 := FALSE}
  80. {$setc TARGET_CPU_X86 := FALSE}
  81. {$setc TARGET_CPU_X86_64 := FALSE}
  82. {$setc TARGET_CPU_ARM := FALSE}
  83. {$setc TARGET_CPU_ARM64 := FALSE}
  84. {$setc TARGET_OS_MAC := TRUE}
  85. {$setc TARGET_OS_IPHONE := FALSE}
  86. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  87. {$setc TARGET_OS_EMBEDDED := FALSE}
  88. {$elifc defined __ppc64__ and __ppc64__}
  89. {$setc TARGET_CPU_PPC := FALSE}
  90. {$setc TARGET_CPU_PPC64 := TRUE}
  91. {$setc TARGET_CPU_X86 := FALSE}
  92. {$setc TARGET_CPU_X86_64 := FALSE}
  93. {$setc TARGET_CPU_ARM := FALSE}
  94. {$setc TARGET_CPU_ARM64 := FALSE}
  95. {$setc TARGET_OS_MAC := TRUE}
  96. {$setc TARGET_OS_IPHONE := FALSE}
  97. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  98. {$setc TARGET_OS_EMBEDDED := FALSE}
  99. {$elifc defined __i386__ and __i386__}
  100. {$setc TARGET_CPU_PPC := FALSE}
  101. {$setc TARGET_CPU_PPC64 := FALSE}
  102. {$setc TARGET_CPU_X86 := TRUE}
  103. {$setc TARGET_CPU_X86_64 := FALSE}
  104. {$setc TARGET_CPU_ARM := FALSE}
  105. {$setc TARGET_CPU_ARM64 := FALSE}
  106. {$ifc defined iphonesim}
  107. {$setc TARGET_OS_MAC := FALSE}
  108. {$setc TARGET_OS_IPHONE := TRUE}
  109. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  110. {$elsec}
  111. {$setc TARGET_OS_MAC := TRUE}
  112. {$setc TARGET_OS_IPHONE := FALSE}
  113. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  114. {$endc}
  115. {$setc TARGET_OS_EMBEDDED := FALSE}
  116. {$elifc defined __x86_64__ and __x86_64__}
  117. {$setc TARGET_CPU_PPC := FALSE}
  118. {$setc TARGET_CPU_PPC64 := FALSE}
  119. {$setc TARGET_CPU_X86 := FALSE}
  120. {$setc TARGET_CPU_X86_64 := TRUE}
  121. {$setc TARGET_CPU_ARM := FALSE}
  122. {$setc TARGET_CPU_ARM64 := FALSE}
  123. {$ifc defined iphonesim}
  124. {$setc TARGET_OS_MAC := FALSE}
  125. {$setc TARGET_OS_IPHONE := TRUE}
  126. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  127. {$elsec}
  128. {$setc TARGET_OS_MAC := TRUE}
  129. {$setc TARGET_OS_IPHONE := FALSE}
  130. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  131. {$endc}
  132. {$setc TARGET_OS_EMBEDDED := FALSE}
  133. {$elifc defined __arm__ and __arm__}
  134. {$setc TARGET_CPU_PPC := FALSE}
  135. {$setc TARGET_CPU_PPC64 := FALSE}
  136. {$setc TARGET_CPU_X86 := FALSE}
  137. {$setc TARGET_CPU_X86_64 := FALSE}
  138. {$setc TARGET_CPU_ARM := TRUE}
  139. {$setc TARGET_CPU_ARM64 := FALSE}
  140. {$setc TARGET_OS_MAC := FALSE}
  141. {$setc TARGET_OS_IPHONE := TRUE}
  142. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  143. {$setc TARGET_OS_EMBEDDED := TRUE}
  144. {$elifc defined __arm64__ and __arm64__}
  145. {$setc TARGET_CPU_PPC := FALSE}
  146. {$setc TARGET_CPU_PPC64 := FALSE}
  147. {$setc TARGET_CPU_X86 := FALSE}
  148. {$setc TARGET_CPU_X86_64 := FALSE}
  149. {$setc TARGET_CPU_ARM := FALSE}
  150. {$setc TARGET_CPU_ARM64 := TRUE}
  151. {$ifc defined ios}
  152. {$setc TARGET_OS_MAC := FALSE}
  153. {$setc TARGET_OS_IPHONE := TRUE}
  154. {$setc TARGET_OS_EMBEDDED := TRUE}
  155. {$elsec}
  156. {$setc TARGET_OS_MAC := TRUE}
  157. {$setc TARGET_OS_IPHONE := FALSE}
  158. {$setc TARGET_OS_EMBEDDED := FALSE}
  159. {$endc}
  160. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  161. {$elsec}
  162. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  163. {$endc}
  164. {$ifc defined __LP64__ and __LP64__ }
  165. {$setc TARGET_CPU_64 := TRUE}
  166. {$elsec}
  167. {$setc TARGET_CPU_64 := FALSE}
  168. {$endc}
  169. {$ifc defined FPC_BIG_ENDIAN}
  170. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  171. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  172. {$elifc defined FPC_LITTLE_ENDIAN}
  173. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  174. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  175. {$elsec}
  176. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  177. {$endc}
  178. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  179. {$setc CALL_NOT_IN_CARBON := FALSE}
  180. {$setc OLDROUTINENAMES := FALSE}
  181. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  182. {$setc OPAQUE_UPP_TYPES := TRUE}
  183. {$setc OTCARBONAPPLICATION := TRUE}
  184. {$setc OTKERNEL := FALSE}
  185. {$setc PM_USE_SESSION_APIS := TRUE}
  186. {$setc TARGET_API_MAC_CARBON := TRUE}
  187. {$setc TARGET_API_MAC_OS8 := FALSE}
  188. {$setc TARGET_API_MAC_OSX := TRUE}
  189. {$setc TARGET_CARBON := TRUE}
  190. {$setc TARGET_CPU_68K := FALSE}
  191. {$setc TARGET_CPU_MIPS := FALSE}
  192. {$setc TARGET_CPU_SPARC := FALSE}
  193. {$setc TARGET_OS_UNIX := FALSE}
  194. {$setc TARGET_OS_WIN32 := FALSE}
  195. {$setc TARGET_RT_MAC_68881 := FALSE}
  196. {$setc TARGET_RT_MAC_CFM := FALSE}
  197. {$setc TARGET_RT_MAC_MACHO := TRUE}
  198. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  199. {$setc TYPE_BOOL := FALSE}
  200. {$setc TYPE_EXTENDED := FALSE}
  201. {$setc TYPE_LONGLONG := TRUE}
  202. {$IFDEF FPC_DOTTEDUNITS}
  203. uses MacOsApi.MacTypes,MacOsApi.AEDataModel,MacOsApi.OSA,MacOsApi.Files,MacOsApi.Components,MacOsApi.AppleEvents,MacOsApi.AppleScript,MacOsApi.CFBase,MacOsApi.CFData,MacOsApi.CFURL;
  204. {$ELSE FPC_DOTTEDUNITS}
  205. uses MacTypes,AEDataModel,OSA,Files,Components,AppleEvents,AppleScript,CFBase,CFData,CFURL;
  206. {$ENDIF FPC_DOTTEDUNITS}
  207. {$endc} {not MACOSALLINCLUDE}
  208. {$ifc TARGET_OS_MAC}
  209. {$ALIGN POWER}
  210. {*************************************************************************
  211. Mode Flags
  212. *************************************************************************}
  213. { This mode flag can be passed to OSASetProperty or OSASetHandler
  214. and will prevent properties or handlers from being defined in a context
  215. that doesn't already have bindings for them. An error is returned if
  216. a current binding doesn't already exist.
  217. }
  218. const
  219. kOSAModeDontDefine = $0001;
  220. {*************************************************************************
  221. Component Selectors
  222. *************************************************************************}
  223. const
  224. kASSelectSetPropertyObsolete = $1101;
  225. kASSelectGetPropertyObsolete = $1102;
  226. kASSelectSetHandlerObsolete = $1103;
  227. kASSelectGetHandlerObsolete = $1104;
  228. kASSelectGetAppTerminologyObsolete = $1105;
  229. kASSelectSetProperty = $1106;
  230. kASSelectGetProperty = $1107;
  231. kASSelectSetHandler = $1108;
  232. kASSelectGetHandler = $1109;
  233. kASSelectGetAppTerminology = $110A;
  234. kASSelectGetSysTerminology = $110B;
  235. kASSelectGetPropertyNames = $110C;
  236. kASSelectGetHandlerNames = $110D;
  237. {*************************************************************************
  238. Context Accessors
  239. *************************************************************************}
  240. {
  241. * OSASetProperty()
  242. *
  243. * Availability:
  244. * Mac OS X: in version 10.0 and later in Carbon.framework
  245. * CarbonLib: in CarbonLib 1.0 and later
  246. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  247. }
  248. function OSASetProperty( scriptingComponent: ComponentInstance; modeFlags: SInt32; contextID: OSAID; const (*var*) variableName: AEDesc; scriptValueID: OSAID ): OSAError; external name '_OSASetProperty';
  249. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  250. {
  251. * OSAGetProperty()
  252. *
  253. * Availability:
  254. * Mac OS X: in version 10.0 and later in Carbon.framework
  255. * CarbonLib: in CarbonLib 1.0 and later
  256. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  257. }
  258. function OSAGetProperty( scriptingComponent: ComponentInstance; modeFlags: SInt32; contextID: OSAID; const (*var*) variableName: AEDesc; var resultingScriptValueID: OSAID ): OSAError; external name '_OSAGetProperty';
  259. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  260. {
  261. * OSAGetPropertyNames()
  262. *
  263. * Availability:
  264. * Mac OS X: in version 10.0 and later in Carbon.framework
  265. * CarbonLib: in CarbonLib 1.0 and later
  266. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  267. }
  268. function OSAGetPropertyNames( scriptingComponent: ComponentInstance; modeFlags: SInt32; contextID: OSAID; var resultingPropertyNames: AEDescList ): OSAError; external name '_OSAGetPropertyNames';
  269. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  270. {
  271. * OSASetHandler()
  272. *
  273. * Availability:
  274. * Mac OS X: in version 10.0 and later in Carbon.framework
  275. * CarbonLib: in CarbonLib 1.0 and later
  276. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  277. }
  278. function OSASetHandler( scriptingComponent: ComponentInstance; modeFlags: SInt32; contextID: OSAID; const (*var*) handlerName: AEDesc; compiledScriptID: OSAID ): OSAError; external name '_OSASetHandler';
  279. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  280. {
  281. * OSAGetHandler()
  282. *
  283. * Availability:
  284. * Mac OS X: in version 10.0 and later in Carbon.framework
  285. * CarbonLib: in CarbonLib 1.0 and later
  286. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  287. }
  288. function OSAGetHandler( scriptingComponent: ComponentInstance; modeFlags: SInt32; contextID: OSAID; const (*var*) handlerName: AEDesc; var resultingCompiledScriptID: OSAID ): OSAError; external name '_OSAGetHandler';
  289. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  290. {
  291. * OSAGetHandlerNames()
  292. *
  293. * Availability:
  294. * Mac OS X: in version 10.0 and later in Carbon.framework
  295. * CarbonLib: in CarbonLib 1.0 and later
  296. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  297. }
  298. function OSAGetHandlerNames( scriptingComponent: ComponentInstance; modeFlags: SInt32; contextID: OSAID; var resultingHandlerNames: AEDescList ): OSAError; external name '_OSAGetHandlerNames';
  299. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  300. //#if !__LP64__
  301. {$ifc not TARGET_CPU_64}
  302. {
  303. * OSAGetAppTerminology() *** DEPRECATED ***
  304. *
  305. * Deprecated:
  306. * use OSACopyScriptingDefinition instead.
  307. *
  308. * Availability:
  309. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.5
  310. * CarbonLib: in CarbonLib 1.0 and later
  311. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  312. }
  313. function OSAGetAppTerminology( scriptingComponent: ComponentInstance; modeFlags: SInt32; var fileSpec: FSSpec; terminologyID: SInt16; var didLaunch: Boolean; var terminologyList: AEDesc ): OSAError; external name '_OSAGetAppTerminology';
  314. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  315. {$endc} { TARGET_CPU_64 }
  316. {
  317. * OSAGetSysTerminology()
  318. *
  319. * Discussion:
  320. * A terminology ID is derived from script code and language code as
  321. * follows: terminologyID = ((scriptCode & 0x7F) << 8) | (langCode &
  322. * 0xFF)
  323. *
  324. * Availability:
  325. * Mac OS X: in version 10.0 and later in Carbon.framework
  326. * CarbonLib: in CarbonLib 1.0 and later
  327. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  328. }
  329. function OSAGetSysTerminology( scriptingComponent: ComponentInstance; modeFlags: SInt32; terminologyID: SInt16; var terminologyList: AEDesc ): OSAError; external name '_OSAGetSysTerminology';
  330. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  331. {
  332. * OSACopyScriptingDefinition()
  333. *
  334. * Discussion:
  335. * Gets the scripting definition of the specified bundle. See
  336. * sdef(5) for details of the sdef format.
  337. *
  338. * Parameters:
  339. *
  340. * ref:
  341. * The file (or bundle) to look in.
  342. *
  343. * modeFlags:
  344. * There are no flags defined at this time; pass 0.
  345. *
  346. * sdef:
  347. * The resulting sdef as XML data.
  348. *
  349. * Availability:
  350. * Mac OS X: in version 10.4 and later in Carbon.framework
  351. * CarbonLib: not available
  352. * Non-Carbon CFM: not available
  353. }
  354. function OSACopyScriptingDefinition( const (*var*) ref: FSRef; modeFlags: SInt32; var sdef: CFDataRef ): OSAError; external name '_OSACopyScriptingDefinition';
  355. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  356. {
  357. * OSACopyScriptingDefinitionFromURL()
  358. *
  359. * Discussion:
  360. * Gets the scripting definition of the specified URL. See sdef(5)
  361. * for details of the sdef format. If used with a file: URL, this
  362. * call is equivalent to OSACopyScriptingDefinition.
  363. *
  364. * Parameters:
  365. *
  366. * url:
  367. * The URL to look in; this should be a file: or eppc: URL.
  368. *
  369. * modeFlags:
  370. * There are no flags defined at this time; pass 0.
  371. *
  372. * sdef:
  373. * The resulting sdef as XML data.
  374. *
  375. * Availability:
  376. * Mac OS X: in version 10.5 and later in Carbon.framework
  377. * CarbonLib: not available
  378. * Non-Carbon CFM: not available
  379. }
  380. function OSACopyScriptingDefinitionFromURL( url: CFURLRef; modeFlags: SInt32; var sdef: CFDataRef ): OSAError; external name '_OSACopyScriptingDefinitionFromURL';
  381. (* AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER *)
  382. {*************************************************************************
  383. Obsolete versions provided for backward compatibility:
  384. }
  385. //#if !__LP64__
  386. {$ifc not TARGET_CPU_64}
  387. {
  388. * ASSetProperty()
  389. *
  390. * Availability:
  391. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only]
  392. * CarbonLib: in CarbonLib 1.0 and later
  393. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  394. }
  395. function ASSetProperty( scriptingComponent: ComponentInstance; contextID: OSAID; const (*var*) variableName: AEDesc; scriptValueID: OSAID ): OSAError; external name '_ASSetProperty';
  396. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  397. {
  398. * ASGetProperty()
  399. *
  400. * Availability:
  401. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only]
  402. * CarbonLib: in CarbonLib 1.0 and later
  403. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  404. }
  405. function ASGetProperty( scriptingComponent: ComponentInstance; contextID: OSAID; const (*var*) variableName: AEDesc; var resultingScriptValueID: OSAID ): OSAError; external name '_ASGetProperty';
  406. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  407. {
  408. * ASSetHandler()
  409. *
  410. * Availability:
  411. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only]
  412. * CarbonLib: in CarbonLib 1.0 and later
  413. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  414. }
  415. function ASSetHandler( scriptingComponent: ComponentInstance; contextID: OSAID; const (*var*) handlerName: AEDesc; compiledScriptID: OSAID ): OSAError; external name '_ASSetHandler';
  416. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  417. {
  418. * ASGetHandler()
  419. *
  420. * Availability:
  421. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only]
  422. * CarbonLib: in CarbonLib 1.0 and later
  423. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  424. }
  425. function ASGetHandler( scriptingComponent: ComponentInstance; contextID: OSAID; const (*var*) handlerName: AEDesc; var resultingCompiledScriptID: OSAID ): OSAError; external name '_ASGetHandler';
  426. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  427. {
  428. * ASGetAppTerminology()
  429. *
  430. * Availability:
  431. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only]
  432. * CarbonLib: in CarbonLib 1.0 and later
  433. * Non-Carbon CFM: in AppleScriptLib 1.1 and later
  434. }
  435. function ASGetAppTerminology( scriptingComponent: ComponentInstance; var fileSpec: FSSpec; terminologID: SInt16; var didLaunch: Boolean; var terminologyList: AEDesc ): OSAError; external name '_ASGetAppTerminology';
  436. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  437. { Errors:
  438. errOSASystemError operation failed
  439. }
  440. {************************************************************************}
  441. {$endc} { TARGET_CPU_64 }
  442. {$endc} {TARGET_OS_MAC}
  443. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  444. end.
  445. {$endc} {not MACOSALLINCLUDE}