Re: Send mail using AppleScript (almost)
Re: Send mail using AppleScript (almost)
- Subject: Re: Send mail using AppleScript (almost)
- From: Rob Werner <email@hidden>
- Date: Tue, 12 Aug 2003 14:14:32 +1000
Ok, it WAS working brilliantly...
It works fine on my development machine, but I just copied it across to the
machine that it will be living on and I get a message from Mail telling me
that the AppleScript is trying to send mail and asking if I want to allow
it.
Would there be any reason why this would occur on one machine but not
another? I have tried quitting Mail and running the AppleScript on my
development machine, and it runs without asking for confirmation. But the
same script on a different machine asks for confirmation???
I'm a bit puzzled. Can anyone recommend a course of action for this one?
Cheers,
-Rob
>
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.
_______________________________________________
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.