View Single Post
Is there a way to save out an OW page as a file via AppleScript?

I've tried using the standard "save" handler, but it doesn't seem functional.

Ideally, I'd just like to export the current page as a PDF, web archive, or even just the HTML itself. Ultimately the file will get attached to OmniFocus, thus making a task out of a web page.

I'm currently using System Events to walk the menus, but that's a bit of a drag when there are multiple tabs/windows and I want to save out all of them. I could also pass the page off to curl or something, but that becomes problematic if I'm on an authenticated page or a page with frames.

Any way to do this?