Mail Script for Nuntius not working
Mail Script for Nuntius not working
- Subject: Mail Script for Nuntius not working
- From: Jim Witte <email@hidden>
- Date: Sat, 27 Mar 2004 13:42:40 -0500
Hi,
I'm updating the mail and url applescripts used by Nuntius (yeah, I
should find a new newsreader that's native OSX, but I *like* Nuntius..)
The Mail script is this:
on ReplyByMail(toText, subjectText, bodyText)
-- create the message
tell application "Mail"
set tMsg to make new outgoing message with properties
{subject:subjectText, content:bodyText & "**" & toText}
tell tMsg
set sender to "Jim Witte <email@hidden>"
set visible to true
make new to recipient with properties {name:toText}
--make new to recipient with properties {address:taddr}
end tell
end tell
end ReplyByMail
on run
ReplyByMail("email@hidden", "About stuff", "About stuff too")
end run
I added the run handler to try to test it. It runs fine from script
editor, but when I run it from Nuntius, is creates the mail, and then
Nuntius complains that it "Could not reply by mail because of a program
error. The Mail message is created, but the 'to' filed is blank. The
'toText' argument being sent in my Nuntius is (example)
email@hidden (brucecoughlin)
If I put this string into the first argument of the ReplyByMail call in
the run handler, it STILL runs fine from Script Editor. It just
doesn't want to run from Nuntius. Any ideas?
Thanks,
Jim
_______________________________________________
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.