Title: Re: 2 import/synch questions
On 6/9/01 5:22 PM, "Dan Frakes" <[EMAIL PROTECTED]> wrote:

> I'm importing a large number of addresses from Emailer to Entourage. I'm
> realizing some obstacles exist.
>
> 1) Entourage is importing groups well; however, in addition to creating the
> groups it is importing, it is creating new address book entries for all of
> the groups' recipients, even if they were not in the address book in
> Emailer. Is there a way around this? The only solution I've found is to drag
> the groups out of the Emailer address book, create a new group in Entourage,
> then drag the clipping file of addresses into Entourage. However, this
> require that I edit each group member's address. Are there any other
> solutions?

The Entourage database is really robust and can cope with loads of contacts. Are you sure you don't want them to be contacts? If not select the group (don't open it) and run this script:

-----------------------De-Contact Group Members-------------

tell application "Microsoft Entourage"
    try
        set theSelection to (get selection)
        set thegroup to item 1 of theSelection
        if class of thegroup � group or (count theSelection) > 1 then error number -128
    on error
        beep
        display dialog "Select just one group, then run the script." buttons {"OK"} default button "OK" with icon 0
    end try
    set theEntries to content of every group entry of thegroup
    repeat with i from 1 to (count theEntries)
        set {eAddress, dName} to {address, display name} of item i of theEntries
        set theContact to item 1 of (find eAddress)
        delete theContact
        if dName � "" then set dName to dName & " "
        make new group entry at thegroup with properties {content:dName & "<" & eAddress & ">"}
    end repeat
    
end tell


>
> 2) I have also converted from Palm Desktop to Enourage for my
> addresses/calendar.  Some of my imported Emailer contacts have corresponding
> address book entries. However, the majority of them (probably 400 of 480)
> are just email addresses. I have moved them into a new category in Entourage
> ("email only"), but I don't want them to be synched with my Palm. Is there a
> way to exclude a certain category from being synched? I realize I can
> manually go into each record and uncheck "Synch this contact with Palm
> organizer." However, I don't really feel like doing this to 400+ records.
>

This one's a little slower than it ought to be if you have a huge Address Book because of a bug in Entourage's scripting at the moment. Stiill, it won't take long compared to doing it manually:


--------------UnSync Category from Palm -------------------

tell application "Microsoft Entourage"
    
    set allContacts to (every contact)
    repeat with theContact in allContacts
        if category of theContact contains {category "email only"} then
            set sync with palm of theContact to false
        end if
    end repeat
    
end tell

------------------------------------------


> Any responses are appreciated; if you could, please CC me since I'm on
> digest and I'm working on this as I type ;)
>


Paste each script into Script Editor, save as Compiled Script with a name to Entourage Script menu Items folder in Microsoft User data folder in Documents. Then run each script from the Script menu in Entourage (selecting the group for the first script first).


--
Paul Berkowitz

Reply via email to