Platforms to show: All Mac Windows Linux Cross-Platform
OSAScriptMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Apple Script | MBS MacExtras Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
- 7 properties
- property Handle as Integer
- property isCompiled as Boolean
- property language as OSALanguageMBS
- property languageInstance as OSALanguageInstanceMBS
- property richTextSource as NSAttributedStringMBS
- property Source as String
- property URL as String
- 24 methods
- method compile(byref error as dictionary) as boolean
- method compiledDataForType(type as string, options as Integer, byref error as dictionary) as MemoryBlock
- method Constructor(Data as MemoryBlock, byref error as dictionary)
- method Constructor(Data as MemoryBlock, url as string, storageOptions as Integer, byref error as NSErrorMBS)
- method Constructor(Data as NSAppleEventDescriptorMBS, URL as String, LanguageInstance as OSALanguageInstanceMBS, storageOptions as Integer, byref error as NSErrorMBS)
- method Constructor(File as FolderItem, byref error as dictionary)
- method Constructor(File as FolderItem, language as OSALanguageMBS, byref error as dictionary)
- method Constructor(File as FolderItem, languageInstance as OSALanguageInstanceMBS, storageOptions as Integer, byref error as NSErrorMBS)
- method Constructor(Source as String)
- method Constructor(Source as String, Language as OSALanguageMBS)
- method Constructor(Source as String, URL as String, LanguageInstance as OSALanguageInstanceMBS, storageOptions as Integer)
- method Constructor(URL as String, byref error as dictionary)
- method Constructor(URL as String, language as OSALanguageMBS, byref error as dictionary)
- method Constructor(URL as String, languageInstance as OSALanguageInstanceMBS, storageOptions as Integer, byref error as NSErrorMBS)
- method copy as OSAScriptMBS
- method execute(byref error as dictionary) as NSAppleEventDescriptorMBS
- method executeAndReturnDisplayValue(byref displayValue as NSAttributedStringMBS, byref error as dictionary) as NSAppleEventDescriptorMBS
- method executeAppleEvent(event as NSAppleEventDescriptorMBS, byref error as dictionary) as NSAppleEventDescriptorMBS
- method executeHandlerWithName(Name as String, arguments() as String, byref error as dictionary) as NSAppleEventDescriptorMBS
- method richTextFromDescriptor(descriptor as NSAppleEventDescriptorMBS) as NSAttributedStringMBS
- method writeToFile(File as FolderItem, type as String, byref error as dictionary) as boolean
- method writeToFile(File as FolderItem, type as String, storageOptions as Integer, byref error as dictionary) as boolean
- method writeToURL(URL as String, type as String, byref error as dictionary) as boolean
- method writeToURL(URL as String, type as String, storageOptions as Integer, byref error as dictionary) as boolean
- 16 shared methods
- shared method OSAScriptErrorAppAddressKey as String
- shared method OSAScriptErrorAppNameKey as String
- shared method OSAScriptErrorBriefMessageKey as String
- shared method OSAScriptErrorExpectedTypeKey as String
- shared method OSAScriptErrorMessageKey as String
- shared method OSAScriptErrorNumberKey as String
- shared method OSAScriptErrorOffendingObjectKey as String
- shared method OSAScriptErrorPartialResultKey as String
- shared method OSAScriptErrorRangeKey as String
- shared method OSAStorageApplicationBundleType as String
- shared method OSAStorageApplicationType as String
- shared method OSAStorageScriptBundleType as String
- shared method OSAStorageScriptType as String
- shared method OSAStorageTextType as String
- shared method scriptDataDescriptorWithContentsOfFile(file as FolderItem) as NSAppleEventDescriptorMBS
- shared method scriptDataDescriptorWithContentsOfURL(URL as String) as NSAppleEventDescriptorMBS
- 6 constants
Storage Options
Constant | Value | Description |
---|---|---|
OSACompileIntoContext | 2 |
Compile in context. May be used when getting compiled data. |
OSADontSetScriptLocation | &h01000000 |
Set script location. May be used when initing with a URL or fromURL. |
OSANull | 0 |
No option set. |
OSAPreventGetSource | 1 |
Prevent user from getting source. May be used when initing with a compiled script, writing or getting compiled data. |
OSAShowStartupScreen | &h20000000 |
Show startup screen. May be used when writing |
OSAStayOpenApplet | &h10000000 |
Applet should stay open. May be used when writing |
This class has no sub classes.
Some properties using for this class:
- OSAScriptControllerMBS.script as OSAScriptMBS
The items on this page are in the following plugins: MBS MacExtras Plugin.
OSAScriptControllerMBS - OSAScriptViewMBS