Re: Script to mail contents of safari web page.
Re: Script to mail contents of safari web page.
- Subject: Re: Script to mail contents of safari web page.
- From: Emmanuel LEVY <email@hidden>
- Date: Thu, 3 Sep 2009 00:50:24 +0200
I'm certainly not a specialist of Mail scripting, but since you don't
get a reply so far, here is an excerpt of a system where we have Mail
generate outgoing messages:
set theapp to "Mail"
tell application theapp
set themail to make new «class bcke» with properties {«class
sndr»:thesender, «class subj»:strsubject, «class ctnt»:strbody}
repeat with add in strto
tell themail to make new «class trcp» at end of every «class trcp»
with properties {«class radd»:add}
end repeat
tell themail to make new «class crcp» at end of every «class crcp»
with properties {«class radd»:thecopyadd}
tell themail to set its visible to true
activate
end tell
For reasons irrelevant here we have to use the events' raw codes,
probably you don't need that, replace theapp with "Mail" and compile
to get rid of the «class foobar» stuff.
Note the weird but required "set visible to true". Lovely.
Emmanuel
On Sep 2, 2009, at 7:45 PM, Sutapalli Satyanarayana wrote:
I'm trying to script Safari and Mail.
My intention is to send the Content of web page in safari via Mail.
For this purpose, I am able to script safari and system events
(Command+i) to open a new mail dialog.
But I was struck to fill the "To", "Bcc", "Subject" (change the
whole subject) etc. and finally send the new message.
How can I achieve this? I tried different possibilities and couldn't
succeed.
Can some one help me to get rid of this situation.
--Satyam.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden