The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   how to clip a mail from mail.app to OF such that OF action title includes sender name (http://forums.omnigroup.com/showthread.php?t=18283)

msim 2010-10-01 06:50 AM

how to clip a mail from mail.app to OF such that OF action title includes sender name
 
i use Clipotron. but it is not working for me - items go to inbox, but just having the subject content be copied in OF action title is not working for me. I would like the Clipotron or a replacement also include the mail sender's name.

also, the clipotron appears to want me to select a text. an unnecessary intermediate step as i see it.

can i somehow achieve this instead: i simply press one combination keystroke and have the mail clipped to OF inbox such that the action title includes "Sender:xyz sub:abc"? i even have mail acton installed - if that creates more flexibility in using an apple script written by Omni or an expert on the forum.

thank you!

whpalmer4 2010-10-01 08:20 AM

[QUOTE=msim;86561]i use Clipotron. but it is not working for me - items go to inbox, but just having the subject content be copied in OF action title is not working for me. I would like the Clipotron or a replacement also include the mail sender's name.

also, the clipotron appears to want me to select a text. an unnecessary intermediate step as i see it.
[/quote]
The Clip-o-tron wants you to select a message, not a text. You click on the message in the list of messages and clip. As long as the active focus is in the message list, the only steps are selecting a message and invoking the clipping shortcut how would you reduce that? The point of the Clip-o-tron is to let you quickly grab entire messages from the message list in Mail.

If you have the active focus in the message itself, then you are not using the Clip-o-tron, just the standard OmniFocus clipping service, and it is thus necessary to select some text.
[quote]
can i somehow achieve this instead: i simply press one combination keystroke and have the mail clipped to OF inbox such that the action title includes "Sender:xyz sub:abc"? i even have mail acton installed - if that creates more flexibility in using an apple script written by Omni or an expert on the forum.

thank you![/QUOTE]
Yes, you can do that by tweaking the Applescript underpinnings of the clipping service a bit. In Mail-Leopard.applescript buried inside the BuiltinClippingHandlers.plugin file, in the "on clipping(CurrentApplication Info..." routine, there is a try block that should be altered like so:

[code]
try
set MyName to "Sender: " & sender of first item of MyMessages & " Subject: " & subject
set MyDateReceived to date received
set MyFlagged to flagged status
on error
[/code]
(the original of the changed line reads simply "set MyName to subject")

To edit this file, select the OmniFocus application in the Finder (quit it first, if it is open). Right-click (or use the gear menu) and choose Show Package Contents. Double-click the Contents folder, then double-click the Plugins folder. Select BuiltinClippingHandlers.plugin, again do Show Package Contents, double-click Contents, then double-click Resources. Now double-click Mail-Leopard.applescript and the Applescript editor should launch and open the file. Make the change shown above, click the Compile button to make sure there are no errors, then save the change. At that point you should be able to launch OmniFocus again and test it out.

Greg Jones 2010-10-01 10:18 AM

It probably doesn't need to be said, but I'll say it anyway! If you do make changes to any of the internal scripts in the package contents, they will be lost any time the OmniFocus app is updated. You'll need to edit the file(s) again after an update.

msim 2010-10-01 10:55 AM

@whpalmer4 - thank you for the quick reply. instead of using clipotron in mail.app, i am now using the other script that you have created (link here [url]http://forums.omnigroup.com/showpost.php?p=86566&postcount=34[/url])

@Greg Jones: very thoughtful. it is highly likely that i would not have thought about what you observed. and your observation is yet another reason why using the above linked script is a better solution for me.

thanks guys.

Greg Jones 2010-10-01 12:54 PM

What I do especially like about the Clip-o-tron is that it formats the link back to the original email as 'Original Message', with the text as the link. I've never been able to figure out how that is done as all the things I have tried with scripts like the one you linked to show the link in the form 'message://%3C<messageID%3E'. I've successfully created links using the URL syntax in the script for other apps-wish I could do the same in OmniFocus.

msim 2010-10-01 01:28 PM

@Greg: now that you mention it, i noticed the difference. may be i would have noticed it in a few days otherwise.
however, i really value the other script's integration with mailtags It allows me to set a due date at the time when i have just read the message in mail.app as opposed to when i sit down to clean-up OF inbox.
i actually wish that Omni team itself created a script for this integration - or at least that they modify it if the other script breaks due to an upgrade.

if you have not tried mailtags and mail acton, you should give them a try. great stuff.

Greg Jones 2010-10-01 02:52 PM

The Clip-o-tron also picks up all the MailTags metadata that OmniFocus supports; project, due date, and if the email is flagged the task gets flagged in OmniFocus as well. Another nice feature that most people do not know about is what happens if you enter text in the Note field of MailTags and have that note selected when calling the Clip-o-tron. The contents of the note field is what is copied to the note field of OmniFocus instead of the body of the email. The same works for Keywords, although that's not very useful.

whpalmer4 2010-10-01 03:24 PM

[QUOTE=Greg Jones;86570]It probably doesn't need to be said, but I'll say it anyway! If you do make changes to any of the internal scripts in the package contents, they will be lost any time the OmniFocus app is updated. You'll need to edit the file(s) again after an update.[/QUOTE]
Something was bothering me after I wrote that post, and it wasn't just that I had to rush off to my next appointment. I guess part of me knew that I had left out something worth noting. Thanks for following that up, Greg!


All times are GMT -8. The time now is 02:53 PM.

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