i'm 95% done with my 'convert any mail message to note' script.

i'm not aware of any way to create a note directly 'behind the scenes'
and the hacks described here are not really acceptable for a 'rule'
that would affect incoming mail.

it's actually not the most difficult thing in the world. the 'trick'
was realizing you have to use a file on the hard drive.

if you create a file with the right headers.. it *IS* a 'note'.
creating said file in a 'tmp' directory than opening in mail ('tell
application "finder"). once open, tell application "Mail" to 'move to
folder' (any folder you desire).

my version is going to be a bit more complicated than a 'generate from
scratch' one because i have to parse through 'any random email' and
strip off 'all the wrong' headers leaving just the right ones.

for a simple 'from the clipboard' concept ,that will be MUCH easier.

1) concatenate 'just the right' header info && clipboard -> note.eml
2) open note.eml into mail
3) move note.eml into 'notes' folder
4) delete note.eml from tmp

i have it working for 'text only' emails but want to include html, a
lot more complicated since the a.s. library for mail doesn't seem to
includ 'html content' and 'content' only includes the 'text only'
version so i have to 'make my own' parsing through the raw source.

anyhow it'll likely be working by tonight. once i have the 'tough' one
working (convert any email to note) it will be ludicrously simple to
make a 'convert any selected text anywhere' into a note

oh and by the way; yes of course fully-editable notes just like if you
made a new one yourself; with an interesting caveat:

my way allows ANY subject and ANY 'sender', so i set the sender to
'note 2 self' so they really stand out; the subject will be whatever i
make it not just 'the first line of the note'.

however; if you edit the note, mail.app will re-write the subj/sender
so beware of that.

-awr

On Oct 5, 4:00 pm, Thomas <[email protected]> wrote:
> Does anyone know how/if it's possible to create/edit notes in
> Mail.app?  Either Javascript, QS, or some combo of both.  I take a lot
> of notes at work, and would love to be able to have them all on my
> computer, rather than on pads of paper.  Thanks!

Reply via email to