- (NSString*)sendAEWithRequestedKey:(NSString*)key eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn
{
- if ( (!key) || (!eventClass) || (!eventID) || (psn.highLongOfPSN == kNoProcess) ) {
+ /*if ( (!key) || (!eventClass) || (!eventID) || (psn.highLongOfPSN == kNoProcess) ) {
return @"";
- } else {
+ } else*/ {
AEEventClass eClass = *((unsigned long*)[eventClass UTF8String]);
AEEventID eID = *((unsigned long*)[eventID UTF8String]);
err2 = AESizeOfParam(&replyEvent, keyDirectObject, &resultType, &resultSize);
result=malloc(resultSize);
+ if (resultType == typeUInt32) {
+ NSLog(@"waffles");
+ }
+
if (err2) { NSLog(@"Error After AESizeOfParam: %i", err2); } else {
err3 = AEGetParamPtr(&replyEvent, keyDirectObject, resultType, NULL, result, resultSize, &charResultSize);
- (NSString*)sendTwoTierAEWithRequestedKey:(NSString*)key fromObjectByKey:(NSString*)object eventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn
{
- if ( (!key) || (!object) || (!eventClass) || (!eventID) || (psn.highLongOfPSN == kNoProcess) ) {
+ /*if ( (!key) || (!object) || (!eventClass) || (!eventID) || (psn.highLongOfPSN == kNoProcess) ) {
return @"";
- } else {
+ } else*/ {
AEEventClass eClass = *((unsigned long*)[eventClass UTF8String]);
AEEventID eID = *((unsigned long*)[eventID UTF8String]);
if (err) {
NSLog(@"Send Error: %i",err);
} else {
-
unichar* result=0;
err2 = AESizeOfParam(&replyEvent, keyDirectObject, &resultType, &resultSize);
- (void)sendAEWithEventClass:(NSString*)eventClass eventID:(NSString*)eventID appPSN:(ProcessSerialNumber)psn
{
- if ( (!eventClass) || (!eventID) || (psn.highLongOfPSN == kNoProcess) ) {
+ /*if ( (!eventClass) || (!eventID) || (psn.highLongOfPSN == kNoProcess) ) {
return;
- } else {
+ } else */{
AEEventClass eClass = *((unsigned long*)[eventClass UTF8String]);
AEEventID eID = *((unsigned long*)[eventID UTF8String]);
AppleEvent event, reply;