It would be great if for gmail, this could strip out the latter part of the page title (in my case " - fintel@gmail.com - Gmail").
Never mind. I achieved my desired result by changing one line in the applescript inside Brett's plugin, which now reads:
set _pageTitle to text 1 thru ((offset of " - fintel@gmail.com - Gmail" in (title as string)) - 1) of (title as string)
Good enough for me, even though of course it won't work for others (who would have to adjust the script for their own use case).
Instead of a plugin I've used the enhanced OmniFocus bookmarklet I've put together and shared here: http://jots.mypopescu.com/p.... I have that in my Quix file too and it basically works the same in both Safari and Chrome.
Thanks for your work on this! I have one burning question: When I'm clipping from a web page in Chrome, why doesn't the selected text get copied as rich text the way clipping from Safari copies the rich text formatting to OmniFocus? When clipping from Chrome, all selections get stripped down to plaintext and lose all their formatting.
I frequently copy selections of text from the web to OmniFocus to read later on my iPhone or iPad, and basic formatting is sometimes essential for reading things the way they were intended (italicized, bold, etc.).
That's the way that Chrome returns the selection to AppleScript. Out of my hands.
Ugh, yeah, that seems to be the case. I tried Chrome -> Services -> "New Email with Selection" and it copied plaintext to Apple Mail as well.
I did find a workaround to get rich text into the OmniFocus notes after clipping: Select text on web page, Cmd+C to copy the text, then clip to OmniFocus (Cmd+Shift+, for me), click inside the notes field, Cmd+A to select the plaintext version, then Cmd+V to paste the rich text version.
It's certainly a few more steps, but it does the job!
uuups
I have an error - http://cl.ly/1N3t0P1f2l111f...
But after I press OK - everything is ok - http://cl.ly/1l1s1E1K3A3U2H...
Fan-freaking-tastic! I am unreasonably happy right now with this! One thing--and maybe I'm just missing this--but is there a way to change the default browser that opens the clippings within OF from Safari to Chrome? Thank you!
That's determined by the system, usually. Does Chrome open for everything else (i.e. is it the default browser)? If it is and it's still opening, try out something like Choosy (which I use and love).
Thanks for your reply. Chrome opened in some cases, and Safari in others. Two seconds of research showed me how to fix this (I didn't realize you can change your default Web browser to Chrome from within Safari...huh.). I've only had a Mac for a few months, so I'm still learning. Now the OF links open in a lovely new Chrome tab. Anyway, thanks again :)
Hey Brett - great OmniFocus plugin! It's always driven me crazy that this didn't work better. One issue I'm seeing though: when I press my clipping hotkey, it creates a new task in the Quick Add with the page title as the task title, and the selected text as the note, but the link doesn't show up. Is it possible my machine is missing a prerequisite?
Shouldn't need anything special… mine shows up like this with the basic plugin (not nvALT) which I assume is what you're referring to. What version of Chrome are you on?