Metadata storage in Tiger Mail?
Metadata storage in Tiger Mail?
- Subject: Metadata storage in Tiger Mail?
- From: Jeff Porten <email@hidden>
- Date: Sun, 1 May 2005 17:36:24 -0400
So I'm back on my regularly-revisited quest to come up with a way to
tag my mail for Spotlight. The idea is to plug in some data on a
message so I can have a smart folder pull up a set of messages for a
given project.
The obvious place for this is in an x-header, but the following
script results in an NSInternalScriptError, probably because (I'm
guessing) headers should be marked in the dictionary as read-only?
The copy to Drafts is to get around a possible issue with writing to
received messages, as in Panther Mail.app.
tell application "Mail"
set thesemsgs to selection
set thismsg to item 1 of thesemsgs
set thismsgID to message id of thismsg
duplicate thismsg to mailbox "Drafts" of account 1
set editmsg to item 1 of (messages in mailbox "Drafts" of
account 1 whose message id is thismsgID)
set newheader to make new header at end of headers of editmsg
with properties {name:"X-Test:", content:"Test"}
end tell
So I'm looking for better options. I can probably do this in dummy
BCC recipients, but that's not nearly as elegant. Any better ideas?
Best,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden