• 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
rendering HTML on the fly with Webkit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rendering HTML on the fly with Webkit


  • Subject: rendering HTML on the fly with Webkit
  • From: Mikael Byström <email@hidden>
  • Date: Tue, 12 Jul 2005 23:25:07 +0200

I want to render HTML from my email client PowerMail with Webkit (or
similar capable standard installed application) stored in a variable
before rendering and in another after.
However, I don't know how webkit scripting is supposed to best be done
and I have trouble even understanding how to script it. I din't find
anything I could understand in the archives. It is possible to script
Webkit, no?

So what I want in pseudo code:

Tell application PowerMail

set theMessages to current messages
repeat with m in theMessages
set theHTML to source of m
set theHeaders to headers of m
set theHTML to theHTML - theHeaders

Tell Application Webkit
set theText to render(theHTML)
end tell

set the source of m to theHeaders & theText
end tell


So can Webkit render HTML on the fly or must it have an URL? How can I
get to it with scripting? Where is the dictionary? I tried to open the
framework with Script Debugger, but it was grayed out. I'm not
experienced enough to know how to get to frameworks, so advice would be
welcome.




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: rendering HTML on the fly with Webkit
      • From: Takaaki Naganoya <email@hidden>
  • Prev by Date: Re: General question about what is possible re: AS driving JavaScript
  • Next by Date: Re: General question about what is possible re: AS driving JavaScript
  • Previous by thread: Re: what's the ASCII for the escape key, and bonus question
  • Next by thread: Re: rendering HTML on the fly with Webkit
  • Index(es):
    • Date
    • Thread