I’m making a script for OE and It’s converting an email into html and I need to add this line:
“<“TABLE BORDER=“0” CELLSPACING=“2” CELLPADDING=“1”>Message:here Goes”<”/TABLE>
(The “<” is quoted so the html coding is shown instead of being rendered)
But Applescript won’t compile it due to the quotes. What can I do?
I probably stated this badly so excuse me
TIA
: I’m making a script for OE But Applescript won’t compile it due to the quotes. What can I do?
Never mind I figured it out. I looked in the Language Ref & there it was…
While the double-quote character can be inserted using a backslash, my preferred solution – until Applescript is improved – is to define a variable named quote and to store the ASCII character in it thus:
set quote to ASCII character 34
I find this more readable than using the Applescript solution, especially when manipulating HTML.
mg
: While the double-quote character can be inserted using a
: backslash, my preferred solution – until Applescript
: is improved – is to define a variable named quote and
: to store the ASCII character in it thus: set quote to
: ASCII character 34
: I find this more readable than using the Applescript
: solution, especially when manipulating HTML.
: mg
There is still a better way to do it you can use the typographer’s quotes characters…“ and ”. You get these by using the key combination option-[ for “ and shif-option-[ for ”. I used to use the ASCII character like you did, but even assigning it to a variable like quo gets tedious.