Creating raw applevents in cocoa
Creating raw applevents in cocoa
- Subject: Creating raw applevents in cocoa
- From: Andrew Bush <email@hidden>
- Date: Thu, 16 Mar 2006 12:06:34 +1300
Hi all,
sorry if this is the wrong list...there seemed to be a number of
possiblities, so I took a guess :)
Im trying to create and send some raw appleevents from my cocoa
application but Im having some trouble coercing the types properly.
Im creating the applevent using the string:
cmpd { relo:=, 'obj1': obj {form:prop, want:type(prop),
seld:type(%@), from:exmn() }, obj2:comp(%qi)}
and this is working nearly perfectly, except for one thing.
viewing the output in the console, Im getting:
key 'obj2' -
{ 1 } 'comp': 8 bytes {
}
as the output for the obj2 bit, without the actual value Im replacing
%qi with......the obj2 value is a SInt64.
if I replace 'comp' with 'doub' I get an actual value...the incorrect
one of course, but hey...
so does anyone have any idea why AEBuildAppleEvent might be failing to
handle the SInt64 value correctly?
thanks for any help.
Yours cheerfully,
Andrew Bush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden