S
Scott
About a year ago,
(http://groups.google.com/group/micr...fec7bf9038e/71eb1db1f6714c3d#71eb1db1f6714c3d)
Paul Berkowitz gave a great script here that allowed for highlighting a
group of emails, then running the script where it would add all the
email addresses into a TextEdit doc. Very handy. For some reason, I
can't get it to work now. It gives a blank TextEdit doc.
Also, in that same answer, Paul mentioned a "Add Group" button in the
toolbar. It may be right in front of me, but I can't see that button in
the toolbar, or the Menu. Did it go away in this last rev, or am I just
temporarily blind to it.
Here's the script for Email Addresses to TextEdit:
set newFile to choose file name with prompt "Enter a name and location
for
the text file:" default name "Email addresses.txt" default location
(path to desktop)
tell application "Microsoft Entourage"
set theContacts to (get the selection)
set eAddresses to {}
repeat with theContact in theContacts
try
set end of eAddresses to default email address of theContact
end try
end repeat
set AppleScript's text item delimiters to {","}
set eAddresses to eAddresses as string
set AppleScript's text item delimiters to {""}
end tell
try
close access newFile
end try
set f to open for access newFile with write permission
set eof f to 0
write eAddresses to f
close access f
tell application "TextEdit"
open newFile
activate
end tell
(http://groups.google.com/group/micr...fec7bf9038e/71eb1db1f6714c3d#71eb1db1f6714c3d)
Paul Berkowitz gave a great script here that allowed for highlighting a
group of emails, then running the script where it would add all the
email addresses into a TextEdit doc. Very handy. For some reason, I
can't get it to work now. It gives a blank TextEdit doc.
Also, in that same answer, Paul mentioned a "Add Group" button in the
toolbar. It may be right in front of me, but I can't see that button in
the toolbar, or the Menu. Did it go away in this last rev, or am I just
temporarily blind to it.
Here's the script for Email Addresses to TextEdit:
set newFile to choose file name with prompt "Enter a name and location
for
the text file:" default name "Email addresses.txt" default location
(path to desktop)
tell application "Microsoft Entourage"
set theContacts to (get the selection)
set eAddresses to {}
repeat with theContact in theContacts
try
set end of eAddresses to default email address of theContact
end try
end repeat
set AppleScript's text item delimiters to {","}
set eAddresses to eAddresses as string
set AppleScript's text item delimiters to {""}
end tell
try
close access newFile
end try
set f to open for access newFile with write permission
set eof f to 0
write eAddresses to f
close access f
tell application "TextEdit"
open newFile
activate
end tell