B
BluesBrother
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!
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!