I'm afraid none of these solutions seems to have worked.
With this:
set fileName to "ABC"
set fileExtension to ".rtfd"
set theAttachment1 to fileName & fileExtension
set theAttachment to (((path to desktop) as string) & theAttachment1)
as alias
Mail is able to send the message, but without the attachment. I have
also tried using it with a stationary file, rather than one that is
generated by the app (set fileName to "image", set fileExtension to
".jpg"). However, this doesn't work either - mail sends an email with
everything correct, but doesn't send the attachment.
I also tried replacing "as string" with "as alias" as Wayne suggested,
still no luck.
On 2/15/07, Wayne Melrose <email@hidden> wrote:
On 15. feb. 2007, at 14.58, Andreas Kiel wrote:
In this case ( if Mail requires the apple path) something like
set fileName to "ABC"
set fileExtension to ".rtfd"
set theAttachment1 to fileName & fileExtension
set theAttachment to (((path to desktop) as string) & theAttachment1)
as alias
;)
but yes!
--
_|_|_| _|_|_| _|_|_|
_| _| _| _| _|
_|_|_| _|_|_| _|
_| _| _| _| _|
_|_|_| _| _| _|_|_|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden