Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically sending an attachment using Apple Mail.



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

This email sent to email@hidden
References: 
 >Automatically sending an attachment using Apple Mail. (From: "Rich Green" <email@hidden>)
 >Re: Automatically sending an attachment using Apple Mail. (From: Andreas Kiel <email@hidden>)
 >Re: Automatically sending an attachment using Apple Mail. (From: Wayne Melrose <email@hidden>)
 >Re: Automatically sending an attachment using Apple Mail. (From: Andreas Kiel <email@hidden>)
 >Re: Automatically sending an attachment using Apple Mail. (From: Wayne Melrose <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.