• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Creating raw applevents in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Creating raw applevents in cocoa
      • From: jj <email@hidden>
  • Prev by Date: Timing of folder action scripts
  • Next by Date: Re: Creating raw applevents in cocoa
  • Previous by thread: Re: Timing of folder action scripts
  • Next by thread: Re: Creating raw applevents in cocoa
  • Index(es):
    • Date
    • Thread