On Fri, 6 Aug 1999, Chris Nandor <pudge@pobox.com> wrote: > Success! Sorta. > > I don't know why it works, though, which is a problem. Perhaps you can > figure it out. :) Too cool! Can't say I know why it works either. I just thought I'd follow the C header files, and was a little confused when I made a little progress and hit a brick wall. I'm glad you weren't mislead by the spurious assumption that the solution would actually make sense :) I gather you were matching to empirical observation of what comes out of the chooser? > > It worked with ircle and with Netscape, sending to one machine. Let me > know if it works for you, and if possible, _why_ it works for you. :) I'll be banging at this for a few days, and you'll hear if I come up with any further info. > > It was crashing because you were using P, I think. No need to do that, > just use a. You'll note that I packed the length and the string > together, and used only 33 bytes for the strings, except for the first > one, where I used 34. Maybe that should be ca33x? I also added x25, > because there were 25 extra nulls. Why? Beats me. But it works, so I > won't complain. Perhaps someone else can figure it out. > > I also changed the port type to 520. Why? Because it works. :) I > think I very well might have some stuff wrong here, but it does work for > me. Padding out the structure makes sense, because there's reserved space, but I would have thought it'd go at the end of the structure... As you said, I suspect that first string should actually be ca33x. I'm baffled by porttype 520; where did you come up with that? > > Also, how do you do the logins? What OSAX? I'm using "login as" and "logout" from the GTQ Scripting Library. There are lots of other handy bits in there, so if you don't have it, you want it. I found it at: ftp://mirror.apple.com/mirrors/Info-Mac.Archive/dev/osa/gtq-scripting-library-121.hqx It's taken some massaging since AppleScript tries to authenticate at compile time. The "login as" line pretty much has to be compiled and executed by itself before you compile and run an empty tell block for your target (with the logout), just to get the script engine to fetch the aete resource, so it can then compile something useful. Maybe there's a better way to do it. I have some code cleanup to do first, but I'll bounce an example off of this list as soon as I have a few minutes free. THANKS!!! Cameron Ashby Evolution Online Systems ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org