Re: A modest request?
Re: A modest request?
- Subject: Re: A modest request?
- From: Philip Aker <email@hidden>
- Date: Sun, 26 May 2002 02:05:16 -0700
Russ,
If this works will you promise to change your login name to
something other than super scary "System Administrator"? Purdy
please with sugar on it.
-- You'll have to unwrap a few lines because of list mangling
set their_email to "email@hidden"
set their_name to "X"
set msg_subject to "Test"
set msg_message to "Hi!" & return & "Bye"
tell application "Mail"
activate
try
set this_message to make new compose message at
beginning of every compose message
tell this_message
make new to recipient at beginning of to
recipients with properties {address:their_email, display
name:their_name}
set subject to msg_subject
set the content to msg_message
end tell
send this_message
on error errstr
display dialog errstr buttons {"OK"} default button
"OK" with icon note
end try
end tell
On Saturday, May 25, 2002, at 08:54 PM, System Administrator wrote:
Thanks for the assistance - there IS a scripts folder for Mail, and it
got me quite a long distance along the way. Here's what I have so far:
set default_address to "email@hidden"
set mail_subject to "test"
set content to "this is a test"
tell application "Mail"
open location "mailto:" & default_address & "?subject=" & mail_subject
end tell
This works - as far as it goes. There is nothing in the body of the
email, and when I try to put something like this at the end of the next
to last line:
& "content" & content
this gives me the following error
Mail got an error: NSReceiverEvaluationScriptError: 3
Any ideas?
Thanks from an AS student!
Russ
Philip Aker
http://www.aker.ca
'
_______________________________________________
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.