View Single Post
Quote:
Originally Posted by RobTrew View Post
I haven't found a satisfactory way to place RTF in an OmniFocus note through Applescript
Incidentally, if the clipboard contains formatted text, you can get the corresponding RTF code in a compressed format,

Code:
set datRTF to «class RTF » of (the clipboard as record)
or as uncompressed and human-legible RTF code

Code:
set strRTF to do shell script "osascript -e 'the clipboard as «class RTF »' | perl -ne 'print chr foreach unpack(\"C*\",pack(\"H*\",substr($_,11,-3)))'"
and either of these can, of course, be written to a file.

--