• 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: Send mail using AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send mail using AppleScript


  • Subject: Re: Send mail using AppleScript
  • From: Marcus Rodrigues <email@hidden>
  • Date: Wed, 30 Jul 2003 23:01:43 -0300

This script of mine should enlighten you =-)


Just erase or change the variables....

set this_message to make new outgoing message with properties
{visible:true, subject:oAssunto, content:("<" & this_URL & ">" &
carriage_return & carriage_return & B,
aMensagem)}
tell this_message
make new to recipient at end of to recipients with properties
{address:oDestino}
end tell


On Wednesday, July 30, 2003, at 10:34 PM, Rob Werner wrote:

> I've been trying to send mail from my AppleScript using Mail.app, but
> I'm
> running in to problems. I can successfully set most details of the
> outgoing
> mail, but I'm having no luck setting the recipient address. I found
> the
> script on this page:
>
> http://developer.apple.com/qa/qa2001/qa1018.html
>
> However, it does not compile. It throws up the error:
>
> "Expected "," but found class name"
>
> when it gets to this line, highlighting the word 'message':
>
> set composeMessage to (a reference to (make new compose message ,
> at beginning of compose messages))
>
> Is there a simple way of doing this? It doesn't have to be anything
> fancy
> because the details of the outgoing mail will always be exactly the
> same.
> Do I even need to use Mail.app?
>
> Cheers,
>
> -Rob
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
>
>
o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Send mail using AppleScript (From: Rob Werner <email@hidden>)

  • Prev by Date: QuarkXPress Dimensions
  • Next by Date: Re: QuarkXPress Dimensions
  • Previous by thread: Send mail using AppleScript
  • Next by thread: QuarkXPress Dimensions
  • Index(es):
    • Date
    • Thread