• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need Help with Mail...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help with Mail...


  • Subject: Re: Need Help with Mail...
  • From: Jean-Marie <email@hidden>
  • Date: Thu, 24 Feb 2005 13:17:16 +0100


Le 24 févr. 2005, à 12:57, Bernardo Hoehl a écrit :

Hi List!


This is my script:


set theSubject to "The subject text"
set theBody to "The text of the message"
set theDestinationEmail to "email@hidden"
tell application "Mail"
set the new_message to ¬
(make new outgoing message with properties ¬
{visible:true, subject:theSubject, sender:"email@hidden", content:theBody & return})
tell the new_message
make new to recipient at end of to recipients with properties {address:theDestinationEmail}
tell content
make new attachment with properties {file name:alias "Sistema Vendas:Fotos:bernardo.jpg"} at after the last character
end tell
end tell
end tell



Problem:

I want this message to be sent right away withou having to go to Mail.app and hit the send button.

But I try the send message frase that is Mail.app dictionary's and it doesn't work. The message stays there waiting me to hit the send button.

the command is not "send message", it's "send" and message = the message to send


just write :

send new_message

--
cordialement.
____________________
Jean-Marie Hoornaert
h2o - aide au développement FileMaker, AppleScript et XML
_______________________________________________
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


References: 
 >Need Help with Mail... (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Re: Need Help with Mail...
  • Next by Date: RE: Get User Type
  • Previous by thread: Re: Need Help with Mail...
  • Next by thread: shell script date
  • Index(es):
    • Date
    • Thread