AppleEventDescList
From Real Software Documentation
Class (inherits from Object)
| This class is only available on the OS X platform. For cross-platform development, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this class on an incompatible platform. |
Used to send complex information to other applications via AppleEvents.
| Properties | ||||||
|
| Methods | ||||||||||
|
Examples
In this example, 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 Real Studio project:
Dim a as AppleEvent
Dim list as AppleEventDescList
a = New AppleEvent("aevt", "odoc", "com.apple.textedit")
list = New AppleEventDescList
list.AppendFolderItem GetFolderItem("My Document")
list.AppendFolderItem GetFolderItem("My Other Document")
a.DescListParam("----") = list
If Not a.Send Then
MsgBox "The AppleEvent could not be sent."
End If
Dim list as AppleEventDescList
a = New AppleEvent("aevt", "odoc", "com.apple.textedit")
list = New AppleEventDescList
list.AppendFolderItem GetFolderItem("My Document")
list.AppendFolderItem GetFolderItem("My Other Document")
a.DescListParam("----") = list
If Not a.Send Then
MsgBox "The AppleEvent could not be sent."
End If
See Also
AppleEvent, AppleEventRecord classes.
