First, a BIG WARNING - if you do this you are likely to lose data due to a
bug in entourage (see below)...
This script should accomplish what you want (I haven't checked it, but it
should work)
tell application "Microsoft Entourage"
set theAddresses to (every contact whose business address is {street
address:"", city:"", state:"", zip:"", country:""} and home address is not
{street address:"", city:"", state:"", zip:"", country:""} and default postal
address is not home)
set default postal address of theaddresses to home
end tell
Now, the explanation...
If the entourage conduit is set up to have the default address as Œhome¹,
you are likely to lose addresses. This is what happens...
Create a new contact in entourage, and put an address in the Œhome¹ section.
The Œdefault address¹ gets changed automatically to Œhome¹ and everything
works as planned.
Now, create a contact on the palm. Put the address into the palm¹s one and
only address slot. Sync once. The contact gets transferred to entourage, and
E obeys the conduit¹s preference to put the address into the default Œhome¹
slot. But, the Œdefault address¹ property does NOT get reset it remains in
the programmes default of work. Sync a second time the empty work address
gets synced over to the palm (that¹s how entourage¹s preference is set,
right?). You now have a home address in Entourage and nothing in the palm.
Sync a third time the palm¹s empty address gets synced over to entourage,
obeying the conduit¹s preference to put it in the Œhome slot, and
overwriting the actual address that is stored there. You now have the
contact on both palm and entourage both copies if which have no address
data at all!
--
Barry Wainwright
Microsoft MVP (see
http://mvp.support.microsoft.com for details)
Seen the Entourage FAQ pages? - Check them out:
<
http://www.entourage.mvps.org/toc.html>