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: Apple Mail question



Bob:

You need an send command. See below.

hh

On Jul 3, 2006, at 4:54 PM, Bob Cuilla wrote:


I have been using AS from with Filemaker quite succesfully.  However, I can't seem to get Mail to send without clicking on the SEND button.
Can anyone enlighten me?  What the heck am I missing?

Here is the script I curently use.  It works great.  What do I need to add.



tell application "Mail"
set theAddress to "email@hidden"
set theSubject to "The Entertainment Company1"
set theAttachment to "/volumes/Macintosh Tiger HD/Users/bcuilla/Desktop/TEC Promo Documents/TEC.Profile-EMail.pdf"
set theBody to ""
set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
tell newMessage
set visible to true
make new to recipient at end of to recipients with properties {address:theAddress}
tell content
make new attachment with properties {file name:theAttachment} at after the last paragraph
end tell
end tell
send newMessage
end tell




Thanks

Bob Cuilla
Orlando

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

--
Henry M. Halff                                         210-348-9540
Halff Resources                                  (fax) 210-568-4165
402 W. Rhapsody, Suite 110                      (cell) 210-363-7501
San Antonio, TX 78216                 
http://www.halffresources.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Apple Mail question (From: Bob Cuilla <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.