Re: Saving an attachment in Outlook Express
Re: Saving an attachment in Outlook Express
- Subject: Re: Saving an attachment in Outlook Express
- From: Mirko Gude <email@hidden>
- Date: Tue, 17 Jul 2001 22:28:03 +0200
Hi,
this one of my scripts, it is looking for a email adress and if the email
has got a attachment , the script will save the attachment , perhaps it
could help you?
------
property theDownloadFolder : ""-- path to save the attachment
property email_watching_for : ""-- a email adress looking for
tell application "Outlook Express"
activate
set theFolder to the in box folder
set everyMessage to the incoming messages of theFolder
repeat with theMessage in everyMessage
set theSenderAdress to address of sender of theMessage
if theSenderAdress is email_watching_for then
set theAnhang to every attachment of theMessage
if (count theAnhang) is not 0 then
repeat with theFile in theAnhang
save theFile in theDownloadFolder
end repeat
tell application "Finder"
open folder theDownloadFolder
set view of container window of folder theDownloadFolder
to modification date
end tell
end if
end if
end repeat
end tell
regards,
mirko gude
>
Von: Ken Grimm <email@hidden>
>
Datum: Tue, 17 Jul 2001 12:51:52 -0500
>
An: AppleScript List <email@hidden>
>
Betreff: Saving an attachment in Outlook Express
>
>
Hi folks,
>
>
I can't figure out the correct syntax to save an attachment (an encoded
>
jpeg) from a message to a folder on a disk.
>
>
Can someone give me a simple example?
>
>
Thanks!
>
>
Ken Grimm
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users