Warning dialog in sending Mail
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.