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.




On 15. feb. 2007, at 14.01, Rich Green wrote:

My app generates a file, with a name that is different each time.  I'm want to be able to send this file as an attachment to an email, using Apple Mail. 

--I can create the name of the file using:
set theAttachment1 to rtfName & ".rtfd"

--The file is always generated on the desktop, so I thought I would be able to create a full reference to it by :
set theAttachment to "~/Desktop/" & theAttachment1 


First place to start would be adding "as alias"

set theAttachment to "MacHD:Users:Me:Desktop:" & theAttachment1 as alias

and using the apple path, not POSIX path
 _______________________________________________
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>)



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.