Added a new AE method that handles custom timeouts.
[ITMac.git] / ITAppleEventTools.h
1 /*
2  *      ITMac
3  *      ITAppleEventTools.h
4  *
5  *      Functions to aid in sending raw AppleEvents.
6  *
7  *      Copyright (c) 2005 by iThink Software.
8  *      All Rights Reserved.
9  *
10  *      $Id$
11  *
12  */
13
14 #import <Foundation/Foundation.h>
15 #import <Carbon/Carbon.h>
16
17 extern NSString *_ITAEDescCarbonDescription(AEDesc desc);
18
19 extern NSAppleEventDescriptor *ITSendAE(FourCharCode eClass, FourCharCode eID, const ProcessSerialNumber *psn);
20 extern NSAppleEventDescriptor *ITSendAEWithKey(FourCharCode reqKey, FourCharCode evClass, FourCharCode evID, const ProcessSerialNumber *psn);
21 extern NSAppleEventDescriptor *ITSendAEWithString(NSString *sendString, FourCharCode evClass, FourCharCode evID, const ProcessSerialNumber *psn);
22 extern NSAppleEventDescriptor *ITSendAEWithStringAndTimeout(NSString *sendString, FourCharCode evClass, FourCharCode evID, const ProcessSerialNumber *psn, long timeout);
23 extern NSAppleEventDescriptor *ITSendAEWithStringAndObject(NSString *sendString, const AEDesc *object, FourCharCode evClass, FourCharCode evID, const ProcessSerialNumber *psn);