From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from Object)

Used to send complex information to other applications via AppleEvents.

Count fa-lock-32.png IntegerItem StringItem
FolderItemItem fa-lock-32.png RecordItem
AppendBoolean AppendObjectSpecifier DescListItem
AppendDescList AppendRecord ObjectSpecifierItem
AppendFolderItem AppendString
AppendInteger BooleanItem

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", "")
list = New AppleEventDescList
list.AppendFolderItem(GetFolderItem("My Document"))
list.AppendFolderItem(GetFolderItem("My Other Document"))
a.DescListParam("----") = list
If Not a.Send Then
MessageBox("The AppleEvent could not be sent.")
End If

See Also

AppleEvent, AppleEventRecord classes.