I am using the Categories Export script to (hopefully) export only one category of clients to a text file so that I can import it and print labels in FileMaker Pro. The file I get contains only information about the category, it’s name and color. How do I get a text file of names and addresses from Entourage into a text file?
Something as this? (saving to a text file or directly import into FM is left as an exercice for the reader)
tell application "Microsoft Entourage"
set theCategory to first category whose name is "Friends"
set theInfo to ""
repeat with i from 1 to 50000000
try
tell contact i
if its category is {theCategory} then
set theInfo to theInfo & its display name & tab & its address & return
end if
end tell
on error --> no more contacts
exit repeat
end try
end repeat
end tell
theInfo