Communicator Apple Events

I have developed an applescript for our network to let
users launch a local copy of Netscape Communicator from
any workstation using their own custom profile that is
centrally located in their private folder on our server.
It works by first mounting their private folder (prompting
them for their password) then launching Communicator
via telling the finder to open their personal Netscape
preferences file in their folder. (This bypasses the choose
profile communicator screen and launches communicator
immediately)
It works great but I have to open the script as text on
each workstation and recompile it locally in order for
it to find the local copy of Netscape. This is not a deal
breaker but creates extra work since I can’t just copy
a compiled version to each station. I found an
article on a “double tell” technique at the Applescript
This Week site which pertains to this problem, which
has put me on the right track but it still isn’t solved.
I believe the sticker is in
compiling a command that is specific to the app
Communicator, it won’t compile until it finds
Communicator and accesses its dictonary to translate the
english command to an apple event.
What I’m trying to find is the direct apple event code
(of form «class xxx» for Comminicator commands. Is there
someone out there involved with Mozilla that might know this?
The specific ones I could use are
Open Component InBox, or
Handle command Get New Mail
PS I’m kind of new at applescripting so if I am totally out to lunch on this just let me know!
Thanks!

Try my aeteLister script. It writes all commands and classes to a text file. It writes all the information you are seeking. You can find it on my old site.

: I know you are probably busy but could you give me a hint
: what’s wrong? I get the same error for any app I point it
: to.
: Shannon
Yes, I can help, because I know exactly why you are getting that error. You need the EightyLister OSAX. Click the link below to download it.

: Yes, I can help, because I know exactly why you are
: getting that error. You need the EightyLister OSAX.
: Click the link below to download it.
Ok the pest is back
I guess you all are tired of me but I’m
really bugged by this problem since I am
THAT CLOSE to getting it! I’ll gladly
provide the script to anyone, sacrifice a
small furry animal, etc. if I can get
this to work!
(I need to avoid referencing the Communicator app
directly by name, that’s why I’m going thru all
this.)
These are the elements of the Communicator
dictionary I’m trying to express directly as
an apple event:
Open Component: Open a Communicator component
Open Component Navigator/InBox/Newsgroups/Composer/
Conference/Calendar – The component to open
Handle command: Handle a command
Handle command Get new mail/Send queued messages/
Read newsgroups/Show Inbox/Show Bookmarks window/
Show History window/Show Address Book window
– The command to handle
So in plain applescript the form would be,
for example:
tell application “Netscape Communicator™”
Open Component InBox
end tell
When I run the aete-getter script I get the info
for Open Component as:
event class: MOSS
event id: cpnt
event name: Open Component
so far so good, but nothing is returned
about the optional part (InBox/Newsgroups etc.)
I can express this as «event MOSScpnt»
which correctly evaluates to Open Component
as the result.
What I can’t figure out is how to express the
whole thing with the optional parts so
it evaluates as Open Component InBox.
For example in my script I tried:
tell localbrowser to «event MOSScpnt» “Inbox”
this gives a result of:
tell application “Netscape Communicator™”
activate
Open Component “Inbox”
end tell
of course communicator sees this command
as incomplete. How do I express this in the
script so it correctly evaluates as
Open Component InBox?
I’m sure you can tell I’m a newbie!
Shannon

: Try my aeteLister script. It writes all commands and
: classes to a text file. It writes all the information
: you are seeking. You can find it on my old site.
Thanks, this is what I was looking for, but I’m getting
an error:
“Finder got an error: alias “G-Rex:Internet:Netscape_
Communicator_Folder:Netscape Communicator™”
doesn’t understand the «event AEHK?AET» message.
-1708”
I know you are probably busy but could you give me a hint
what’s wrong? I get the same error for any app I point it to.
Shannon