Title: Re: Swap Home/Work addresses
on 1/16/01 3:47 AM, Barry Wainwright at [EMAIL PROTECTED] wrote:

I've seen this mentioned a few times by people who have imported existing address databases into E'rage.

All the addresses end up in the 'Work' fields. I looked at Applescript Central for a script to swap the addresses over, but couldn't find one, so here is one available for anyone that wants it:

--script ‘Swap Home/Work Addresses
-- by Barry Wainwright  <[EMAIL PROTECTED]>
set theContact to the «class pusl»
if (count of theContact) > 1 or class of item 1 of theContact is not «class cAbE» then
    display dialog "Please select just ONE contact before running this script" buttons {"Quit"} default button 1
    return
end if
set theAddresses to {«class hmAd», «class bsAd»} of item 1 of theContact
set (item 1 of theContact)'s «class hmAd» to (item 2 of theAddresses)
set (item 1 of theContact)'s «class bsAd» to (item 1 of theAddresses)

There is one called Swap Work and Home Addresses. I don’t know where I got it from, but I have used it successfully.

==Tamer
----------------------------------------------------------------------------
M. Tamer Ozsu, Professor                 Email: [EMAIL PROTECTED]
University of Waterloo                   Tel: +1 (519) 888-4567 ext.6847
Department of Computer Science           Fax: +1 (519) 885-1208
Waterloo, Ontario, Canada N2L 3G1        URL: http://db.uwaterloo.ca/~tozsu

Reply via email to