Matthias Ulrich Neeracher <neeri@iis.ee.ethz.ch> writes: >Kent Cowgill <kentc@intersites.com> writes: [snip] >One of my (as yet unwritten) philosophical principles in translating toolbox >calls is that pointer/length pairs get combined into a single scalar >value, so the c function: >AEPutParamPtr(AE, 'duh?', 'TEXT', "Hello, World", 12) >in Perl becomes >AEPutParam(AE, 'duh?', 'TEXT', "Hello, World"); That's helpful to know! :D Would that be an appropriate item for the README that comes with MacPerl? Parhaps, at the very least, a MacintoshToolbox.README? :) >>but MacPerl complains about any additional parameters I try to use. >>Perhaps I'm misunderstanding what's expected as a parameter for the >>"PARMS...". > >MacPerl does rudimentary checking that the number of arguments you supply >corresponds to the number of placeholders in FORMAT. >From the Shuck documentation, it appears as though mulitple parameters should appear as such: AEBuildAppleEvent("WWW½", "RqRp", typeApplSignature, "WWW½", 0, 0, "Kmsg:1", "Ksta:0", "Kpid:345634", "Kver:1") which didn't work... this, however, did: AEBuildAppleEvent("WWW½", "RqRp", typeApplSignature, "WWW½", 0, 0, "Kmsg:1 , Ksta:0 , Kpid:345634 , Kver:1") Notice the lack of double-quotes around the last four parameters. I was beating myself over the head for a while on silly syntactical issues like that. I'm not sure if this is a documentation issue, or just a misinterpretation on my part. I suspect the latter, but without conclusive testing, I'm afraid I'll never know. :) Another piece in figuring out why this originally wasn't working for me was easy: my co-worker was hiding the API reference manual from me. :) As soon as he handed it over, I was able to determine how to build the parameters. I still haven't been able to figure out the other calls (because I gave up on them after getting AEBuildAppleEvents to work) ... fortunately, I don't have to build any more complex apple events than that. ...yet :) <aside> If anyone's interested, the project I'm using this for is a reporting application that receives reporting AppleEvents from WebSTAR (containing 'hits' to the web server) and writes them out to separate log files based on the (virtual) domain in the log entry. >> Intersites, Inc. 'i n t e r s i t e s. Geneva, IL 60134 > >Geneva? Cool. Uh, not really :) Geneva, Illinois is a small, dusty town in the middle of Northern IL. (No offense to any people swearing oaths of loyalty to Geneva :) </aside> -Kent Kent Cowgill .---'''''---... 1 West State Street Intersites, Inc. 'i n t e r s i t e s. Geneva, IL 60134 .-'-.-'-.-'-.-'-.-'-. ''''---.....---' .-'-.-'-.-'-.-'-.-'-.-'-. kentc@intersites.com http://www.intersites.com/ :===========================================================================: If at first you don't succeed, destroy all evidence that you tried.