From Xojo Documentation
| This method is only available on the macOS platform.
For cross-platform development, use ＃If...＃Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform.
Creates a new AppleEventTarget from the passed parameters.
Name is the name of the target application, Computer is the computer on which the app is installed, Zone is the AppleTalk zone, and PortType is the four-character code that identifies the target application.
Use this shared method instead of the deprecated NewAppleEventTarget function.