D
Dave
I am having trouble downloading a message from my imap server using
applescript. I can not get the full source of a message when I have multiple
messages selected using the code below. I do get the dialog but the value of
theSource only contains the header information. I have set my imap options
to only download the headers.
I also tried with a delay after the download.
Subsequent runs of the script generates the same "downloading message"
dialog. This implies that the download did not work.
Any ideas?
tell application "Microsoft Entourage"
repeat with theMessage in selectedMessages
-- get the information from the message, and store it in variables
set theStatus to online status of theMessage
if theStatus is not fully downloaded then
display dialog "downloading message"
download theMessage
end if
set theSource to source of theMessage
set theSubject to subject of theMessage
end repeat
end tell
applescript. I can not get the full source of a message when I have multiple
messages selected using the code below. I do get the dialog but the value of
theSource only contains the header information. I have set my imap options
to only download the headers.
I also tried with a delay after the download.
Subsequent runs of the script generates the same "downloading message"
dialog. This implies that the download did not work.
Any ideas?
tell application "Microsoft Entourage"
repeat with theMessage in selectedMessages
-- get the information from the message, and store it in variables
set theStatus to online status of theMessage
if theStatus is not fully downloaded then
display dialog "downloading message"
download theMessage
end if
set theSource to source of theMessage
set theSubject to subject of theMessage
end repeat
end tell