Attaching or linking emails
Kai von Fintel
fintel at gmail.com
Mon Mar 27 17:46:43 PST 2006
On 3/12/06, Simon <donkeyotay at gmail.com> wrote:
> Hi All,
> Is there anyway to link to emails in Mail.app. At the moment I'm
> saving emails as text files then linking. This is tedious but I need
> to be able to track emails for projects.
> Best wishes
> Don
Hi, I'm coming late to this thread. As someone else mentioned,
MailTags can link to the individual file that contains an email
message. So, it must be possible. Indeed, it is. Some googling
revealed a script that I modified a bit. When you're in Mail and have
a message selected, this script will use Spotlight to find the
corresponding file and put its URL in the clipboard. Switch to OO3 and
paste the link. I assume that more fancy scripts would do the
insertion into OO3. If anyone develops such a thing (in particular for
interaction between Mail and kGTD), please post it here.
Here's the script:
tell application "Mail"
set theSel to selection
set theMsg to item 1 of theSel
properties of theMsg
message id of theMsg
set msgID to id of theMsg
log msgID
set theScript to "mdfind -onlyin ~/Library/Mail " & quote & "
kMDItemFSName == " & msgID & ".emlx" & quote
set theMsgFile to do shell script theScript
set the clipboard to ("file://" & theMsgFile)
end tell
-- Based on a script from
http://homepage.mac.com/brettgross/AppleScripts/AppleScripts_Mail/AppleScripts_Mail.html
All the best,
Kai
http://semantics-online.org/fintel
More information about the OmniOutliner-Users
mailing list