J
joint52
Hello
I'm trying to write a script that forwards a message without
attachments. It also needs to change the recipient and the subject
line.
I've come up with the script below but the line "delete newWin's
attachments" doesn't work. I'm using Entourage 2004.
Thanks in advance
property recip : "(e-mail address removed)"
tell application "Microsoft Entourage"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this
script." with icon 1
return
end if
repeat with theMessage in selectedMessages
set newWin to forward theMessage to recip
set the subject of newWin to "asdf"
delete newWin's attachments -- this doesn't work?
end repeat
end tell
I'm trying to write a script that forwards a message without
attachments. It also needs to change the recipient and the subject
line.
I've come up with the script below but the line "delete newWin's
attachments" doesn't work. I'm using Entourage 2004.
Thanks in advance
property recip : "(e-mail address removed)"
tell application "Microsoft Entourage"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this
script." with icon 1
return
end if
repeat with theMessage in selectedMessages
set newWin to forward theMessage to recip
set the subject of newWin to "asdf"
delete newWin's attachments -- this doesn't work?
end repeat
end tell