Problem Using Applescript to Read Email Attachment

Tech-Archive recommends: Speed Up your PC by fixing your registry



I'm trying to use Applescript to access email attachments in Entourage
2004. I can get the Attachment object with no problem. However, when I
attempt to get the "file" property of the "attachment" object, like so

set theFile to file of theAttachment

I get the following error:

Microsoft Entourage got an error: Can’t get file of attachment 1
of incoming message id 50670.

I can't figure out what it's complaining about or trying to tell me.
According to the Entourage Dictionary, "file" is a property of
"attachment":

attachment n : every attachment

elements contained by messages, incoming messages, outgoing
messages, draft windows, draft news windows.

properties

name (text, r/o) : the name of the attachment
file type (type, r/o) : the type of file
file creator (type, r/o) : the creator of file
encoding (no encoding/7bit encoding/8bit encoding/binhex/base64/
uuencode/AppleSingle/AppleDouble/quoted printable/
unknown encoding, r/o) : the MIME encoding of the data
file (alias, r/o) : alias to the associated file (if there is
one)
content (text, r/o) : the encoded content (if it has been
encoded)
properties (record) : property that allows setting a list of
properties

Am I doing this wrong? Ultimately, I want to open the attachment file,
modify it, and write the modified file back, effectively replacing the
attachment.

Thanks in advance for any insight you can provide!
.



Relevant Pages

  • Re: Incoming Mail
    ... You know how when you get a new incoming message a box will ... Go to the Entourage menu and choose Preferences. ... Choose Notification from ... Microsoft PowerPoint MVP ...
    (microsoft.public.mac.office.entourage)
  • Re: Transferring between IMAP folders
    ... Resets the displayed date of an incoming message - useful for those ... occasions whe you receive a message from someone whose clock was not set ... Diane Ross, Microsoft Mac MVP ... The Entourage Blog lists the EHP as one of the top five Microsoft Entourage ...
    (microsoft.public.mac.office.entourage)
  • Re: How do I see the individual members of an email group?
    ... Not sure how to explain that in email terms but, ... want to view all the recipients in an incoming message? ... Entourage 2008 for Mac, ...
    (microsoft.public.mac.office.entourage)
  • Rule works only when "applied"
    ... In entourage 11.1the only rule: move when subject line contains *, ... never to the incoming message. ... character. ... I've deleted, removed preferences, rebuilt..I'm sure I'm missing ...
    (microsoft.public.mac.office.entourage)