Re: Searching GAL in Entourage
Re: Searching GAL in Entourage
- Subject: Re: Searching GAL in Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 20 May 2006 18:13:42 -0700
- Thread-topic: Searching GAL in Entourage
Title: Re: Searching GAL in Entourage
On 5/20/06 2:36 PM, "Jack (Shekhar) Stoller" <email@hidden> wrote:
Is there any way to script a search of the Exchange 2003 GAL using Entourage 2004 given an email address? Something like:
find “email@hidden”
does for the local address book?
Yes. I can't test for this myself since I don't have one, but there are two different promising commands in the Entourage Mail & News Suite:
do OWA GAL search using account
do LDAP search using account
I don't know if what you're wanting to do is actually an OWA GAL search but I suspect it is. The first one:
Do OWA GAL search using account
do OWA GAL search using account (verb) Global Address List search using Outlook Web Access interface (from Entourage Mail and News Suite)
Function Syntax
set theResult to do OWA GAL search using account Exchange account ¬
search string unicode text
Result
list of record a list of contact records returned by the OWA GAL server
Parameters
Parameter Required Type Description
direct parameter required Exchange account the Exchange account
search string required unicode text the search string to query the OWA GAL server with
should do the job. I'd be interested to see what type of records form the Result list. I suspect each record will have every contact property available, so you can get at any and all such properties.
The second one
Do LDAP search using account
do LDAP search using account (verb) LDAP search using the specific account for a given name or email address (from Entourage Mail and News Suite)
Function Syntax
set theResult to do LDAP search using account LDAP server ¬
name unicode text ¬
email address unicode text
Result
unicode text the info for given user or email address
Parameters
Parameter Required Type Description
direct parameter required LDAP server the LDAP account
email address required unicode text the e-mail address of the account
name required unicode text the name of the account
might also work. The direct parameter here requires an LDAP server, which is not available as a direct element of the Exchange account, but can be found this way:
set theGALServer to first LDAP server where its LDAP server is (get LDAP server of Exchange account 1)
(The 'LDAP server properties in the 'where its' clause are string addresses, confusingly.)
Although the dictionary says that both 'email address' and 'name' parameters are required, that's probably wrong, since the description keeps referring to 'or' - on or the other. I'm intrigued, however, as to what exactly is returned as the Result - which is Unicode text, not a list of records.
You can also get the GAL property of the LDAP server - theGalServer - found above. That is an object of type 'LDAP address list' class in the dictionary (Contact Suite), which is a subclass of 'address book', so all its contacts should be the ones you're wanting to look at.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden