• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Metadata storage in Tiger Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Metadata storage in Tiger Mail?
      • From: Le Stang Jean-Baptiste <email@hidden>
  • Prev by Date: Video problems after setting QuickTime to fullscreen?
  • Next by Date: Mac OS X 10.4
  • Previous by thread: Re: Video problems after setting QuickTime to fullscreen?
  • Next by thread: Re: Metadata storage in Tiger Mail?
  • Index(es):
    • Date
    • Thread