Class
AppleEventDescList
Description
Used to send complex information to other applications via AppleEvents.
Methods
Name |
Parameters |
Returns |
Shared |
---|---|---|---|
b As Boolean |
|||
Value As AppleEventDescList |
|||
Value As FolderItem |
|||
Value As Integer |
|||
Value As AppleEventObjectSpecifier |
|||
Value As AppleEventRecord |
|||
Value As String |
|||
Index As Integer |
|||
Index As Integer |
AppleEventDescList |
||
Index As Integer |
|||
Index As Integer |
|||
Index As Integer |
|||
Index As Integer |
|||
Index As Integer |
Property descriptions
AppleEventDescList.Count
Count As Integer
The number of items in the list.
This property is read-only.
Method descriptions
AppleEventDescList.AppendBoolean
AppendBoolean(b As Boolean)
Adds a new Boolean value to the array.
AppleEventDescList.AppendDescList
AppendDescList(Value As AppleEventDescList)
Adds a new AppleEventDescList value to the array.
AppleEventDescList.AppendFolderItem
AppendFolderItem(Value As FolderItem)
Adds a new FolderItem object to the array.
AppleEventDescList.AppendInteger
AppendInteger(Value As Integer)
Adds a new Integer value to the array.
AppleEventDescList.AppendObjectSpecifier
AppendObjectSpecifier(Value As AppleEventObjectSpecifier)
Adds a new AppleEventObjectSpecifier object to the array.
AppleEventDescList.AppendRecord
AppendRecord(Value As AppleEventRecord)
Adds a new AppleEventRecord object to the array.
AppleEventDescList.AppendString
AppendString(Value As String)
Adds a new String to the array.
AppleEventDescList.BooleanItem
BooleanItem(Index As Integer) As Boolean
Returns the Index item as a Boolean.
AppleEventDescList.DescListItem
DescListItem(Index As Integer) As AppleEventDescList
Returns the Index item as an AppleEventDescList.
AppleEventDescList.FolderItemItem
FolderItemItem(Index As Integer) As FolderItem
Returns the Index item as a FolderItem.
AppleEventDescList.IntegerItem
IntegerItem(Index As Integer) As Integer
Returns the Index item as an Integer.
AppleEventDescList.ObjectSpecifierItem
ObjectSpecifierItem(Index As Integer) As AppleEventObjectSpecifier
Returns the Index item as an AppleEventObjectSpecifier.
AppleEventDescList.RecordItem
RecordItem(Index As Integer) As AppleEventRecord
Returns the Index item as an AppleEventRecord.
AppleEventDescList.StringItem
StringItem(Index As Integer) As String
Returns the Index item as a String.
Sample code
In this code, the TextEdit application (which must be running for this example to work) is instructed to open two documents ("My Document" and "My Other Document") that are located in the folder with the default folder:
Var list As AppleEventDescList
list = New AppleEventDescList
list.AppendFolderItem(New FolderItem("My Document"))
list.AppendFolderItem(New FolderItem("My Other Document"))
Var a As AppleEvent = New AppleEvent("aevt", "odoc", "com.apple.textedit")
a.DescListParam("----") = list
If Not a.Send Then
MessageBox("The AppleEvent could not be sent.")
End If
Compatibility
Project Types |
Console, Desktop, Web |
Operating Systems |
macOS |
See also
Object parent class; AppleEvent, AppleEventRecord classes.