Home/Work Addresses Reversed

L

Lee

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
 
D

Dave Cortright

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
 
L

Lee

Dave Cortright said:
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
 
P

Paul Berkowitz

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.
 
P

Paul Berkowitz

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.
 
L

Lee

Paul Berkowitz said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top