[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] AppleEvents with remote addresses



On Fri, 6 Aug 1999, Chris Nandor <pudge@pobox.com> wrote:

> At 15.09 -0400 1999.08.06, Chris Nandor wrote:
> >So the only things I don't know are why the port type is 2, not 1, and
> >why the type code is ep01.
>
> Hm, a thought.  What if this IS a string we are using, and that the
> default string for an app is creator code + ep01?  *shrug*

I think it's safe to assume that 'ep01' is a system default of some sort.  I  
remember reading some documentation about it.  I'll go back and dig for an  
answer.

Creator and creator type are specified in a union.  Port type 2 is  
ppcByString, so using an 8 character pascal style string is correct.  It  
*should* also work with port type 1 (ppcByCreatorAndType), using the two four  
character codes concatenated (not in a string).

In other news, I have your code working happily on a machine sending events  
back to itself, so obviously the address is packed correctly, but over the  
network I'm getting:

# Invalid user reference number  (OS error -928).

First, do you have it working over a network, and if so, is there something  
interesting about your configuration I might duplicate?

> >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,
>
> I'll try with the OSAX at some point.  But doing it all in raw Apple
> events in MacPerl, you shouldn't have this problem, since you would
> execute the login first, and then the next event to talk to the port.

I remember reading related documentation a week or so ago, so I'm sure I can  
find the info I need, but do you know how to deal with the login sequence  
off of the top of your head?

Cameron Ashby
Evolution Online Systems

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org