anyone have any idea on how I can maintain the font and style usage of the content of a message to a filemaker cell ?
mm
anyone have any idea on how I can maintain the font and style usage of the content of a message to a filemaker cell ?
mm
Hi,
it’s a lot of work, but you can read the information parsing the source of the message
Stefan
It figures … I thought that woul be the case and I’m just not sure of how to start doing that. I tried a few things and nothing seems to work. would you have any suggestions for a starting point ?
thanks again
mm
Hi mm,
it real hard work to parse (this kind of) HTML-Code,
here is an example to separate all
<FONT class=3D"Apple-style-span" color=3D"#FF0000" face=3D"Verdana">
Hope it helps so far.
set LF to ASCII character 10
tell application "Mail" to set a to source of message 2 of mailbox 21 -- inbox
set {TID, text item delimiters} to {text item delimiters, "<HTML><BODY"}
try
set a to text item 2 of a
set text item delimiters to ("=" & LF)
set a to text items of a
set text item delimiters to ""
set a to a as Unicode text
set text item delimiters to "<DIV"
set a to text items of a
on error
set text item delimiters to TID
display dialog "No HTML tags" buttons {"Cancel"} default button 1
end try
set text item delimiters to TID
repeat with i in a
display dialog i
end repeat