• 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
Sending mail without requiring a confirmation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Sending mail without requiring a confirmation
      • From: Simon Forster <email@hidden>
  • Prev by Date: Re: illustrator-10-scripting: removing things
  • Next by Date: Re: filtering a list of items with Finder
  • Previous by thread: Re: "Duplicate file name. [-48]"
  • Next by thread: Re: Sending mail without requiring a confirmation
  • Index(es):
    • Date
    • Thread