Message From the Author: I removed the download from my site because since Mac OS X 10.5 Mail has native support for referring to messages. If you nevertheless need/want the Script, please contact me directly. – Andreas
About
Retrieves a reference to the currently selected message in the Mail application. This enables you to link to your Mails, e.g. from iCal. Or even from the tagging application Nifty Box.
When the reference (URL/File) is clicked, Get Message Ref reveals the message in the Mail application.
You do not need additional software like MailTags for this to work.
Installation
- Download the script from http://schuderer.net/scripts.shtml.
- Unzip and save the script somewhere where Quicksilver can find it.
- Make Quicksilver rescan the Catalog (invoke, then CMD+R).
Usage
- In the Mail application, select the message that you'd like to have a link to.
- Invoke Quicksilver and launch Get Message Ref.
- There's now an URL to the message in your clipboard. Paste it somewhere (iCal, whatever).
- Follow the URL (from iCal or where you pasted it) to reveal the message in Mail.app.
This describes the scripts default behavior.
Configuration
Get Message Ref is very configurable: It can be configured to return the reference in form of a File instead of an URL, for instance. It can also show the reference in Quicksilver (for an all-QS workflow). You can also specify an Application. Get Message Ref then opens the reference using that Application (for instance a tagging application like Nifty Box).
Here's how to do it:
1. Ctrl-Click on Get Message Ref's Application Icon and select the menu option Show Package Contents.
2. Navigate to the subfolder Contents/Resources/Scripts.
3. Open the file main.scpt with Script Editor.
4. Right at the beginning of the file, you see several lines starting with the word property. You change a particular property by changing the value after the colon. The properties are thus:
-- On creating a reference property maxSenderLength : 17 -- Cut off Sender name after this number of characters property maxSubjectLength : 45 -- Cut off Subject after this number of characters property putMailRefIntoClipboard : true -- Copy the message reference to the Clipboard property showMailRefInQuicksilver : false -- Uses Quicksilver's Command line tool to show the resulting reference in Quicksilver property outputAsFiles : false -- Gives reference in form of a file. Otherwise (false): Output as URLs property revealFilesInFinder : false -- Reveal the reference in Finder (if outputAsFiles is also set to true) property openWithApplication : "" -- Open the resulting URL or File with the application between the quotes (e.g. "Nifty Box") -- On following a reference property onRevealOpenMessage : true -- Open message in a new Window in addition to highlighting it in the messages list
5. After adjusting the settings, save the script file, and you're done.
Known Issues
Configuration is a royal pain.
Source Code
Too long to post here. Please see http://schuderer.net/scripts.shtml.
Credits
Written by Andreas Schuderer.
Disclaimer
This add-on may be freely distributed. It is not guaranteed to work, and you use it at your own risk. Post suggestions in the forums or contact the author directly.