The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
"Fixing" Mail clippings Thread Tools Search this Thread Display Modes
I haven't been able to use Mail Clippings reliably because it only works if you do all your mail reading from the Message Viewer -- that is, if you try to make a clipping from a separate message window, and the message(s) selected in the "main" (Message Viewer) window is a different message, then you'll wind up with selected text from one message and metadata (subject, message link, etc) from the other.

I've modified OmniFocus's built-in Clipping handlers to fix this behavior. Note that if you follow these directions, you do so at your own risk. Back up the original scripts, and don't be surprised when the daily updates break it. I admit, I'm posting this mainly to call attention to what I consider incorrect behavior of the Clipping scripts in the first place.

We're going to be modifying two scripts, which are wrapped up inside two packages within the OmniFocus application package. Start by quitting OmniFocus, then control- or right-clicking on the OmniFocus application and choosing "Show Package Contents" from the pop-up menu. Navigate to the Contents/Plugins folder inside the package, and ctrl-or-right-click again on the "BuiltInClippingHandlers.Plugin" icon. Make backup copies of "Mail-with-MailTags.applescript" and "Mail-Leopard.applescript", then open these scripts (the originals) in Script Editor (or just a text editor).

Near the top of each of these files (the third and fourth line of actual code) are the following lines:
Code:
		tell front message viewer
			set MyMessages to (selected messages)
All you need to do is replace these two lines with a single line:
Code:
	
	set MyMessages to selection
Then remove one of the two lines reading:
Code:
	end tell
near the very bottom of the file (the second- and third-to-last lines of the file).

In my limited testing, this works as expected (by me, at least): if the Message Viewer window is frontmost, it takes both the selected text and the message metadata from the selected message. If an individual message window is frontmost, it takes the selected text and the metadata from that window.
 
Quote:
Originally Posted by derPlau View Post
if you try to make a clipping from a separate message window, and the message(s) selected in the "main" (Message Viewer) window is a different message, then you'll wind up with selected text from one message and metadata (subject, message link, etc) from the other.
Thanks! This was in our bug database as <bug://bugs/42335> (Clipping from an open mail message window (not a message viewer) confuses clipping handler) I'll roll your fix in and test it out a bit.
__________________
CTO, The Omni Group
 
Fix applied in 94771. Thanks!
__________________
CTO, The Omni Group
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clippings shortcut field reverts to "click to record". Why? [A: s/cut already in use] trajama OmniFocus 1 for Mac 4 2009-12-13 01:45 PM
Completed projects' un-checked items cause bad folder "remaining" count [BUG: Fixing] hardcoreUFO OmniFocus for iPhone 7 2009-08-04 04:37 PM
permanently disable "Add to clippings" shortcut LSlugger OmniOutliner 3 for Mac 1 2008-02-22 06:57 PM
Fixing the blind patch in "Contexts View" RobTrew OmniFocus 1 for Mac 3 2007-08-21 09:22 AM


All times are GMT -8. The time now is 05:51 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.