Sending mail without requiring a confirmation
Sending mail without requiring a confirmation
- Subject: Sending mail without requiring a confirmation
- From: Steve Nicholson <email@hidden>
- Date: Sat, 26 Oct 2002 22:55:51 -0700
I'm an experienced programmer just getting started with Applescript.
I'm trying to write a script to automatically send a message. I can
create and send a message, but OS X Mail gives me the message:
"An AppleScript is attempting to send a message. Do you want to allow
this automated message to be sent? If you click OK, all other automated
messages will be sent without asking first until you quit Mail."
It then waits for me to cancel or click Ok. Is there any way I can get
Mail to launch and send the message without manual intervention? (I've
tried searching the list archives, but it's tough to get a meaningful
search result with a search like "send mail".)
Thanks,
-Steve
Here's my bare bones script:
tell application "Mail"
set thisMessage to make new outgoing message with properties
{subject:"Reminder"}
tell thisMessage to make new to recipient at end of to recipients with
properties {address:"email@hidden"}
send thisMessage
end tell
_______________________________________________
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.