Class

AppleEventDescList


Description

Used to send complex information to other applications via AppleEvents.

Methods

Name

Parameters

Returns

Shared

AppendBoolean

Value As Boolean

AppendDescList

Value As AppleEventDescList

AppendFolderItem

Value As FolderItem

AppendInteger

Value As Integer

AppendObjectSpecifier

Value As AppleEventObjectSpecifier

AppendRecord

Value As AppleEventRecord

AppendString

Value As String

BooleanItem

Index As Integer

Boolean

DescListItem

Index As Integer

AppleEventDescList

ObjectSpecifierItem

Index As Integer

AppleEventObjectSpecifier

Property descriptions


AppleEventDescList.Count

Count As Integer

The number of items in the list.

This property is read-only.


AppleEventDescList.FolderItemItem

FolderItemItem As FolderItem

A FolderItem array to be passed with the AppleEvent.

This property is read-only.


AppleEventDescList.IntegerItem

IntegerItem As Integer

An Integer array to be passed with the AppleEvent.


AppleEventDescList.RecordItem

RecordItem As AppleEventRecord

An AppleEventRecord to be passed with the AppleEvent.


AppleEventDescList.StringItem

StringItem As String

A String to be passed with the AppleEvent.

Method descriptions


AppleEventDescList.AppendBoolean

AppendBoolean(Value 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 to the FolderItemItem array property.


AppleEventDescList.AppendInteger

AppendInteger(Value As Integer)

Adds a new Integer to the IntegerItem array property.


AppleEventDescList.AppendObjectSpecifier

AppendObjectSpecifier(Value As AppleEventObjectSpecifier)

Adds a new AppleEventObjectSpecifier object to the array.


AppleEventDescList.AppendRecord

AppendRecord(Value As AppleEventRecord)

Adds a new AppleEventRecord to the RecordItem array property.


AppleEventDescList.AppendString

AppendString(Value As String)

Adds a new String to the StringItem array property.


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 a AppleEventDescList.


AppleEventDescList.ObjectSpecifierItem

ObjectSpecifierItem(Index As Integer) As AppleEventObjectSpecifier

Returns the Index item as an AppleEventObjectSpecifier.

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 a As AppleEvent
Var list As AppleEventDescList
a = New AppleEvent("aevt", "odoc", "com.apple.textedit")
list = New AppleEventDescList
list.AppendFolderItem(New FolderItem("My Document"))
list.AppendFolderItem(New FolderItem("My Other Document"))
a.DescListParam("----") = list
If Not a.Send Then
  MessageBox("The AppleEvent could not be sent.")
End If

Compatibility

All project types on all supported operating systems.

See also

Object parent class; AppleEvent, AppleEventRecord classes.