private static OSStatus AEProcessAppleEvent(ref API.EventRecord theEventRecord);
private static bool ConvertEventRefToEventRecord(IntPtr inEvent, out API.EventRecord outEvent);