Example of HandleAppleEvent

Hi!

Anyone can help me with an example of HandleAppleEvent?

I know how to send (from another apps), but don’t know how to receive it

Thank you

Alex

Did you checked the Using AppleScripts in Xojo example ?

Have-you looked at the Documentation ?

Do you have the MBS Plug-Ins? Then this may be helpful: Monkeybread Xojo plugin - NSAppleEventHandlerMBS events

I have no experience using this, so i can’t give any better advice. Hope it helps.

I only have experience passing strings between apps via AppleEvents and they can be accessed like this.

dim myString as string = theEvent.StringParam("----")

See if that contains the information that you’re sending.

Alternatively, it could be contained in the eventID parameter.