• 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: Rob Werner <email@hidden>
  • Date: Tue, 12 Aug 2003 10:51:15 +1000

Great, thanks for that! Works brilliantly! :)

Cheers,

-Rob



> 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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Send mail using AppleScript (almost)
      • From: Rob Werner <email@hidden>
  • Prev by Date: Re: List appending question
  • Next by Date: Re: PDF Services - I'm lost...
  • Previous by thread: Re: PDF Services - I'm lost...
  • Next by thread: Re: Send mail using AppleScript (almost)
  • Index(es):
    • Date
    • Thread