Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSAppleEventDescriptorMBS class.
NSAppleEventDescriptorMBS.attributeDescriptorForKeyword(keyword as string) as NSAppleEventDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
keyword: A keyword (a four-character code) that identifies the descriptor to obtain.
Returns the attribute descriptor for the specified keyword, or nil if an error occurs.
NSAppleEventDescriptorMBS.coerceToDescriptorType(descriptorType as string) as NSAppleEventDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
descriptorType: The descriptor type to coerce the receiver to.
Returns a descriptor of the specified type, or nil if an error occurs.
NSAppleEventDescriptorMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
NSAppleEventDescriptorMBS.copy as NSAppleEventDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
NSAppleEventDescriptorMBS.descriptorAtIndex(index as Integer) as NSAppleEventDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Index: The one-based descriptor list position of the descriptor to return.
Returns the descriptor from the specified position (one-based) in the descriptor list, or nil if the specified descriptor cannot be obtained.
Some examples using this method:
NSAppleEventDescriptorMBS.descriptorForKeyword(keyword as string) as NSAppleEventDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
keyword: A keyword (a four-character code) that identifies the descriptor to obtain.
Returns a descriptor for the specified keyword, or nil if an error occurs.
Some examples using this method:
NSAppleEventDescriptorMBS.insertDescriptor(descriptor as NSAppleEventDescriptorMBS, index as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
descriptor: The descriptor to insert in the receiver. Specifying an index of 0 or count + 1 causes appending to the end of the list.
Index: The one-based descriptor list position at which to insert the descriptor.
Because it actually replaces the descriptor, if any, at the specified position, this method might better be called replaceDescriptor. The receiver must be a list descriptor. The indices are one-based. Currently provides no indication if an error occurs.
Some examples using this method:
NSAppleEventDescriptorMBS.keywordForDescriptorAtIndex(index as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Index: The one-based descriptor list position of the descriptor to get the keyword for.
Returns the keyword (a four-character code) for the descriptor at the one-based location specified by anIndex, or 0 if an error occurs.
NSAppleEventDescriptorMBS.paramDescriptorForKeyword(keyword as string) as NSAppleEventDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
keyword: A keyword (a four-character code) that identifies the parameter descriptor to obtain.
Returns a descriptor for the specified keyword, or nil if an error occurs.
Some examples using this method:
NSAppleEventDescriptorMBS.print
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
You can see result in Console.app.
NSAppleEventDescriptorMBS.removeDescriptorAtIndex(index as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Index: The one-based position of the descriptor to remove.
The receiver must be a list descriptor. The indices are one-based. Currently provides no indication if an error occurs.
NSAppleEventDescriptorMBS.removeDescriptorWithKeyword(keyword as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
keyword: A keyword (a four-character code) that identifies the descriptor to remove.
The receiver must be an Apple event or Apple event record. Currently provides no indication if an error occurs.
NSAppleEventDescriptorMBS.removeParamDescriptorWithKeyword(keyword as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
keyword: A keyword (a four-character code) that identifies the parameter descriptor to remove. Currently provides no indication if an error occurs.
The receiver must be an Apple event or Apple event record, both of which can contain parameters.
NSAppleEventDescriptorMBS.send(options as Integer, timeoutInSeconds as Double, byref error as NSErrorMBS) as NSAppleEventDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
NSAppleEventDescriptorMBS.setAttributeDescriptor(descriptor as NSAppleEventDescriptorMBS, keyword as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
descriptor: The attribute descriptor to add to the receiver.
keyword: A keyword (a four-character code) that identifies the attribute descriptor to add. If a descriptor with that keyword already exists in the receiver, it is replaced.
The receiver must be an Apple event. Currently provides no indication if an error occurs.
NSAppleEventDescriptorMBS.setDescriptor(descriptor as NSAppleEventDescriptorMBS, keyword as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
descriptor: The descriptor to add to the receiver.
keyword: A keyword (a four-character code) that identifies the descriptor to add. If a descriptor with that keyword already exists in the receiver, it is replaced.
The receiver must be an Apple event or Apple event record. Currently provides no indication if an error occurs.
NSAppleEventDescriptorMBS.setParamDescriptor(descriptor as NSAppleEventDescriptorMBS, keyword as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Apple Script | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
descriptor: The parameter descriptor to add to the receiver.
keyword: A keyword (a four-character code) that identifies the parameter descriptor to add. If a descriptor with that keyword already exists in the receiver, it is replaced.
The receiver must be an Apple event or Apple event record, both of which can contain parameters.
The items on this page are in the following plugins: MBS MacCocoa Plugin.