Re: Opening LDAP server window in OE
Re: Opening LDAP server window in OE
- Subject: Re: Opening LDAP server window in OE
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 03 Apr 2001 21:29:17 -0700
On 4/3/01 1:50 PM, "Sibastien Bolle" <email@hidden> wrote:
>
Hi,
>
>
in OE 5, with very little lines of script, you can open in a new window, for
>
example, the default news server. It looks like:
>
>
tell application "Outlook Express"
>
open default news server
>
end tell
>
>
I was surprised that this method does not work with the LDAP server object.
>
"open default LDAP server" give the following error message (bad translation
>
of the message given by my french AppleScript Editor):
>
"default LDAP server does not support the open message"
>
Opening the default news server opens a new window with only the server and
its subscribed news groups in a truncated Folders List on the left, and the
full list of newsgroups on the right. I've never seen that before:
double-clicking the server in the regular folder list opens a window with
just all the newsgroups, no special Folders List.
But what would "opening" the default LDAP server mean to you? You're right,
it errors. But try this, with the main Outlook Express window in front:
set displayed feature of window 1 to default LDAP server
You should be aware that the name of the main window in OE changes if you
have more than one identity. It becomes:
Outlook Express CurrentIdentity Name
So, you'll need a little snippet:
set currName to name of (get current identity)
if (count identities) > 1 then
set winName to "Outlook Express " & currName
else
set winName to "Outlook Express"
end if
select window winName -- bring to front
set displayed feature of window winName to default LDAP server
Hope this helps. (It's much simpler in Entourage, where there's a generic
'main window'. There the entire snippet above can be boiled down to:
open main window-- bring to front
set displayed feature of main window to default LDAP server
)
--
Paul Berkowitz