My addresses in Entourage for individual contacts that were "Work"
addressses for some reason are now all over on the "Home" side. Not
sure how that happened....must have been when I was having trouble
with my Palm syncing. Anyway is there an easy "bulk" way to get them
out of the "Home" tab and back under the "Work" tab? Thanks Lee

Re: Home/Work Addresses Reversed by Dave

Dave
Tue Feb 17 13:54:49 CST 2004

On 2/16/04 4:31:01 PM, in article
f8db67e9.0402161631.743df0a6@posting.google.com, "Lee" <lee718@hotmail.com>
wrote:

> My addresses in Entourage for individual contacts that were "Work"
> addressses for some reason are now all over on the "Home" side. Not
> sure how that happened....must have been when I was having trouble
> with my Palm syncing. Anyway is there an easy "bulk" way to get them
> out of the "Home" tab and back under the "Work" tab? Thanks Lee

Run this AppleScript with the contacts selected:

tell application "CDebug Entourage"
set theItems to selection
repeat with i in the theItems
if class of i is contact then
set StartAddress to the home address of i as postal address
set DestinationAddress to the business address of i as postal address
set the home address of i to DestinationAddress
set the business address of i to StartAddress
end if
end repeat
end tell


Re: Home/Work Addresses Reversed (Script error) by lee718

lee718
Tue Feb 17 20:36:34 CST 2004

Dave Cortright <dc@dev.null> wrote in message news:<BC57B189.50F8%dc@dev.null>...
> On 2/16/04 4:31:01 PM, in article
> f8db67e9.0402161631.743df0a6@posting.google.com, "Lee" <lee718@hotmail.com>
> wrote:
>
> > My addresses in Entourage for individual contacts that were "Work"
> > addressses for some reason are now all over on the "Home" side. Not
> > sure how that happened....must have been when I was having trouble
> > with my Palm syncing. Anyway is there an easy "bulk" way to get them
> > out of the "Home" tab and back under the "Work" tab? Thanks Lee
>
> Run this AppleScript with the contacts selected:
>
> tell application "CDebug Entourage"
> set theItems to selection
> repeat with i in the theItems
> if class of i is contact then
> set StartAddress to the home address of i as postal address
> set DestinationAddress to the business address of i as postal address
> set the home address of i to DestinationAddress
> set the business address of i to StartAddress
> end if
> end repeat
> end tell

Thanks Dave-I ran the above script, but I got the following error
"Microsoft Entourage got an error: Some parameter was invalid." It
also highlighted the line "set the home address of i to
DestinationAddress" Please advise and thanks for you efforts-Lee

Re: Home/Work Addresses Reversed by Paul

Paul
Wed Feb 18 00:56:29 CST 2004

On 2/17/04 11:54 AM, in article BC57B189.50F8%dc@dev.null, "Dave Cortright"
<dc@dev.null> wrote:

> On 2/16/04 4:31:01 PM, in article
> f8db67e9.0402161631.743df0a6@posting.google.com, "Lee" <lee718@hotmail.com>
> wrote:
>
>> My addresses in Entourage for individual contacts that were "Work"
>> addressses for some reason are now all over on the "Home" side. Not
>> sure how that happened....must have been when I was having trouble
>> with my Palm syncing. Anyway is there an easy "bulk" way to get them
>> out of the "Home" tab and back under the "Work" tab? Thanks Lee
>
> Run this AppleScript with the contacts selected:
>
> tell application "CDebug Entourage"
> set theItems to selection
> repeat with i in the theItems
> if class of i is contact then
> set StartAddress to the home address of i as postal address
> set DestinationAddress to the business address of i as postal address
> set the home address of i to DestinationAddress
> set the business address of i to StartAddress
> end if
> end repeat
> end tell

Actually you have to omit 'as postal address' to get this to work in
Entourage X, as I recall. Or maybe that got fixed for SR-1. Also "CDebug
Entourage" isn't going to do it for most people here. ;-) Anyway, try it
this way:


tell application "Microsoft Entourage"
set theItems to selection
repeat with i in the theItems
if class of i is contact then
set StartAddress to the home address of i
set DestinationAddress to the business address of i
set the home address of i to DestinationAddress
set the business address of i to StartAddress
end if
end repeat
end tell


--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.


Re: Home/Work Addresses Reversed (Script error) by Paul

Paul
Wed Feb 18 01:17:34 CST 2004

On 2/17/04 6:36 PM, in article
f8db67e9.0402171836.256b4f9f@posting.google.com, "Lee" <lee718@hotmail.com>
wrote:

>>
>> Run this AppleScript with the contacts selected:
>>
>> tell application "CDebug Entourage"
>> set theItems to selection
>> repeat with i in the theItems
>> if class of i is contact then
>> set StartAddress to the home address of i as postal address
>> set DestinationAddress to the business address of i as postal address
>> set the home address of i to DestinationAddress
>> set the business address of i to StartAddress
>> end if
>> end repeat
>> end tell
>
> Thanks Dave-I ran the above script, but I got the following error
> "Microsoft Entourage got an error: Some parameter was invalid." It
> also highlighted the line "set the home address of i to
> DestinationAddress" Please advise and thanks for you efforts-Lee

As I wrote earlier, remove 'as postal address' in both lines, You seem to
have correctly fixed "Microsoft Entourage" yourself.

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.


Re: Home/Work Addresses Reversed by lee718

lee718
Wed Feb 18 08:45:09 CST 2004

Paul Berkowitz <berkowit@spoof_silcom.com> wrote in message news:<BC584C9D.58273%berkowit@spoof_silcom.com>...
> On 2/17/04 11:54 AM, in article BC57B189.50F8%dc@dev.null, "Dave Cortright"
> <dc@dev.null> wrote:
>
> > On 2/16/04 4:31:01 PM, in article
> > f8db67e9.0402161631.743df0a6@posting.google.com, "Lee" <lee718@hotmail.com>
> > wrote:
> >
> >> My addresses in Entourage for individual contacts that were "Work"
> >> addressses for some reason are now all over on the "Home" side. Not
> >> sure how that happened....must have been when I was having trouble
> >> with my Palm syncing. Anyway is there an easy "bulk" way to get them
> >> out of the "Home" tab and back under the "Work" tab? Thanks Lee
> >
> > Run this AppleScript with the contacts selected:
> >
> > tell application "CDebug Entourage"
> > set theItems to selection
> > repeat with i in the theItems
> > if class of i is contact then
> > set StartAddress to the home address of i as postal address
> > set DestinationAddress to the business address of i as postal address
> > set the home address of i to DestinationAddress
> > set the business address of i to StartAddress
> > end if
> > end repeat
> > end tell
>
> Actually you have to omit 'as postal address' to get this to work in
> Entourage X, as I recall. Or maybe that got fixed for SR-1. Also "CDebug
> Entourage" isn't going to do it for most people here. ;-) Anyway, try it
> this way:
>
>
> tell application "Microsoft Entourage"
> set theItems to selection
> repeat with i in the theItems
> if class of i is contact then
> set StartAddress to the home address of i
> set DestinationAddress to the business address of i
> set the home address of i to DestinationAddress
> set the business address of i to StartAddress
> end if
> end repeat
> end tell
>
>
> --
> Paul Berkowitz
> MVP Entourage
> Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
> AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>
>
> Please "Reply To Newsgroup" to reply to this message. Emails will be
> ignored.
>
> PLEASE always state which version of Entourage you are using - 2001 or X.
> It's often impossible to answer your questions otherwise.


Thanks Paul-that script did exactly what I hoped for-you saved me a
ton of time and aggravation and I really appreciate it-Lee