• 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
Warning dialog in sending Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warning dialog in sending Mail


  • Subject: Warning dialog in sending Mail
  • From: Steven Valenti <email@hidden>
  • Date: Thu, 5 Feb 2004 09:55:11 -0500

Does anyone have a way to send an error message from a remote machine?
When I run the following script the first time, I need to give Mail
permission to send it.
I would like to have a message sent without any user interaction on the
remote machine that is running the script.
Thanks.


try
error
on error
sendMessage("Description of Error" & return & (path to "cusr" from
user domain) as string)
end try

to sendMessage(ScriptMessage)
tell application "Mail"
set newMessage to make new outgoing message with properties
{subject:"Script Error", content:ScriptMessage}
tell newMessage
set visible to true
make new to recipient at beginning with properties
{address:"email@hidden"}
end tell
send newMessage
end tell
end sendMessage
_______________________________________________
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: Warning dialog in sending Mail
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: FileMaker Send Apple Event to run stay open app
  • Next by Date: Re: carriage return trouble
  • Previous by thread: Re: Photoshop CS saving EPS with options
  • Next by thread: Re: Warning dialog in sending Mail
  • Index(es):
    • Date
    • Thread