Platforms to show: All Mac Windows Linux Cross-Platform
Back to AppleScriptMBS class.
AppleScriptMBS.AllowInteraction as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Apple Script | MBS MacClassic Plugin | 17.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Default is false to disallow.
You can set to true to allow GUI.
(Read and Write property)
AppleScriptMBS.CanUnicodeText as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Apple Script | MBS MacClassic Plugin | 3.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This property is set to true if AppleScript 1.3 or newer is installed.
(AppleScript 1.3 was introduced around the time of Mac OS 8.6)
(Read only property)
Some examples using this property:
AppleScriptMBS.Handle as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Apple Script | MBS MacClassic Plugin | 3.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
(Read and Write property)
AppleScriptMBS.Lasterror as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Apple Script | MBS MacClassic Plugin | 3.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Value is 0 for successfull and -1 if function is not available.
All other values are normal Mac OS error codes.
Some common error codes for this class:
OSASystemError | -1750 | |
OSAInvalidID | -1751 | |
OSABadStorageType | -1752 | |
OSAScriptError | -1753 | |
OSABadSelector | -1754 | |
OSASourceNotAvailable | -1756 | |
OSANoSuchDialect | -1757 | |
OSADataFormatObsolete | -1758 | |
OSADataFormatTooNew | -1759 | |
OSACorruptData | -1702 | |
OSARecordingIsAlreadyOn | -1732 | |
OSAComponentMismatch | -1761 | Parameters are from 2 different components |
OSACantOpenComponent | -1762 | Can't connect to scripting system with that ID |
OSACantCoerce | -1700 | Signaled when a value can't be coerced to the desired type. |
OSACantAccess | -1728 | Signaled when an object is not found in a container |
OSACantAssign | -10006 | Signaled when an object cannot be set in a container. |
OSAGeneralError | -2700 | Signaled by user scripts or applications when no actual error code is to be returned. |
OSADivideByZero | -2701 | Signaled when there is an attempt to divide by zero |
OSANumericOverflow | -2702 | Signaled when integer or real value is too large to be represented |
OSACantLaunch | -2703 | Signaled when application can't be launched or when it is remote and program linking is not enabled |
OSAAppNotHighLevelEventAware | -2704 | Signaled when an application can't respond to AppleEvents |
OSACorruptTerminology | -2705 | Signaled when an application's terminology resource is not readable |
OSAStackOverflow | -2706 | Signaled when the runtime stack overflows |
OSAInternalTableOverflow | -2707 | Signaled when a runtime internal data structure overflows |
OSADataBlockTooLarge | -2708 | Signaled when an intrinsic limitation is exceeded for the size of a value or data structure. |
OSACantGetTerminology | -2709 | |
OSACantCreate | -2710 |
AppleScriptMBS.ResultID as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Apple Script | MBS MacClassic Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
May be useful for Toolbox calls.
(Read and Write property)
AppleScriptMBS.ScriptID as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Apple Script | MBS MacClassic Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
May be useful for Toolbox calls.
(Read and Write property)
AppleScriptMBS.UnicodeText as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Apple Script | MBS MacClassic Plugin | 3.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
If this property is true, all functions try to get strings as 16 bit Unicode strings.
Strings you pass which are in 16 bit Unicode are passed in Unicode to AppleScript.
You may get trouble if the strings you give this class are not in the system encoding (MacRoman?) or 16 bit Unicode. UTF8 will not work!
(Read and Write property)
Some examples using this property:
The items on this page are in the following plugins: MBS MacClassic Plugin.