Hi,
I discovered Mori a day ago and I'm very impressed with the app, the thoughtfulness of all of the users and Jesse Grosjean. It's a truly interesting experiment in development and made me want to learn more and get involved. Thanks!
I wanted a little project to get aquainted with extending Mori. I noticed some discussions about keeping Mori focussed on text (as opposed to images, pdfs etc). I can understand that, but must admit that sometimes it might be nice to have web pages, too, with images and live links. Since TextEdit style views can do a semblance of HTML rendering (as has been noted in the Forums), I reworked the example plugin (Import Safari Webpage), which imports the page text, to a version that tries to import the whole page.
You can put this in the system-wide scripts menu and call while you're browsing in Safari.
It definitely has some significant rough edges (documented in comments) but I hope it might be useful to someone.
Thanks so much!
PS. I'd truly appreciate any comments and improvements. There were several things I didn't know how to do. (I've been more of a obj-C kind of guy to now, but this opened my eyes to the utility and fun of applescripting and UI scripting! Thanks for giving me an opportunity to try something new).
[attached file incorporates changes discussed in thread below]
| Attachment | Size |
|---|---|
| Export Web Page to Mori.scpt_.zip | 5.65 KB |
John, welcome and thanks for
John, welcome and thanks for the contribution. I haven't had time to do much more then unzip and run, but I'm getting a crash every-time I run it. This might very well be a problem on Mori's end, but I'm curious if you ever see a crash problem when you run this script or if it just works for you. Thanks.