• 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
Safari - email contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari - email contents


  • Subject: Safari - email contents
  • From: email@hidden
  • Date: Sun, 2 Mar 2008 16:38:50 -0500

Hello all,

I would like to open a web page via applescript, then email that web page. This works to create a new mail message with the contents of the web page:

tell application "Safari"
	email contents of document 1
end tell

My problem is that I can't figure out how to add an email address to the outgoing message or change the subject line. I can get the id of the outgoing message (I think I have the right one) but adding the email address and changing the subject line is proving elusive. Any help would be greatly appreciated.

The other thing I tried was getting the source of the web page, and creating a new mail message using 'make outgoing message' in mail, and using the html source as the content of the mail message. That worked, but the mail message content did not parse out the source. In other words, it was not html-formatted, but read like the raw html source (not good). Any suggestions using this technique would be welcome, as well.

Thanks
-CV
_______________________________________________
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
  • Follow-Ups:
    • Re: Safari - email contents
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: Modification date in leopard
  • Next by Date: Re: Modification date in leopard
  • Previous by thread: Re: Modification date in leopard
  • Next by thread: Re: Safari - email contents
  • Index(es):
    • Date
    • Thread