1 #import "ITAppleEvent.h"
4 @implementation ITAppleEvent
7 - (id)initWithOSASource:(NSString *)source
10 - (id)initWithOSACompiledData:(NSData *)data
13 - (id)initWithOSAFromContentsOfURL:(NSURL *)url
16 - (id)initWithOSAFromContentsOfPath:(NSString *)path
19 - (id)initWithAppleEventClass:(AEEventClass)eventClass appleEventID:(AEEventID)eventID
21 OSType AppType = eventClass;
22 AEBuildAppleEvent(eventClass, eventID, typeApplSignature, &AppType, sizeof(AppType), kAutoGenerateReturnID, kAnyTransactionID, &event, nil, "");
24 - (NSString *)OSASource
27 - (void)setOSASource:(NSString *)source
30 - (NSData *)OSACompiledData
33 - (void)setOSACompiledData:(NSData *)data
36 - (AEEventClass)appleEventClass
39 - (AEEventID)appleEventID
44 AESend(&event, &reply, kAENoReply, kAENormalPriority, kAEDefaultTimeout, nil, nil);
45 // AEDisposeDesc(&event);
46 // AEDisposeDesc(&reply);