Notes is a cool app but I’m confused how font sizes are handled. If I add 20px I get 13,3px…
In addition, the title keeps its original size of 8px.
set theBody to "<div><font face=\"Helvetica\"><span style=\"font-size: 20px\"><br></span></font></div>\n<div><b><font color=\"#FE2400\"><span style=\"font-size: 20px\">A</span></font></b><span style=\"font-size: 20px\"><br></span></div>\n<div><span style=\"font-size: 20px\"><br></span></div>\n<div><span style=\"font-size: 20px\"><br></span></div>\n<div><b><font color=\"#FE2400\"><span style=\"font-size: 20px\">B</span></font></b><span style=\"font-size: 20px\"><br></span></div>\n<div><b><font color=\"#FE2400\"><span style=\"font-size: 20px\"><br></span></font></b></div>\n<div><b><font color=\"#FE2400\"><span style=\"font-size: 20px\"><br></span></font></b></div>\n<div><b><font color=\"#FE2400\"><span style=\"font-size: 20px\">C</span></font></b><span style=\"font-size: 20px\"><br></span></div>\n<div><b><span style=\"font-size: 20px\"><br></span></b></div>"
tell application "Notes"
tell default account
set JournalF to "Projekte"
set res to make new note at beginning of folder JournalF with properties {body:theBody}
end tell
end tell
As far as I know, there is no direct link between the body and the title of the created note.
The title/name is defined by an internally localized string.
Here, with your script I get “Nouvelle note”.
The body of this note contain
the “invented” title/name in Helvetica 12 points
an empty line in HelveticaNeue 20 points
a red letter A in HelveticaNeue 20 points
two empty lines in HelveticaNeue 20 points
a red letter B in HelveticaNeue 20 points
two empty lines in HelveticaNeue 20 points
a red letter C in HelveticaNeue 20 points
an empty line in HelveticaNeue 20 points
Its seems that it’s quite what is described by your own specs.
I’m only surprised to get Helvetica Neue when your code ask for Helvetica.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mardi 17 mars 2020 19:22:58
As you can see from my HTML example, the size of the displayed font 20px can be reduced if the cell of the table (into which the letter is squeezed) is <20 px. As I see from the OP’s example, it does not adjust any parameters of either the tables or their cells. Therefore, Notes most likely takes some default values at the current moment. That is, I want to say that a number of important instructions are missing in OP’s HTML.