rendering HTML on the fly with Webkit
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