Skip to main content
Harbs.
Legend
April 17, 2009
Question

Another bug in the email software...

  • April 17, 2009
  • 1 reply
  • 1342 views

Check out my post here: http://forums.adobe.com/message/1896972#1896972

You will see a bunch of extra plus signs (before "appliedFont"). Those plus signs were not there in the email which I sent. Here's the original text copied from my sent mail (into the web interface).

You really shouldn't upload fonts for general download...

Your problem is that you are missing a lot of extra equal signs.

For example:
if (app.activeDocument.paragraphStyles.appliedFont = "Rotis Semi Sans\t45 Light")

should be:

if (app.activeDocument.paragraphStyles.appliedFont == "Rotis Semi Sans\t45 Light")

Also, I'm not sure that you are always going to get a string. It might be a font object. If that's the case you are going to need:

if (app.activeDocument.paragraphStyles.appliedFont == app.fonts.item("Rotis Semi Sans\t45 Light")

(Or something like that...)

BTW,

It'll be much quicker if you get a reference to your doc and font and work from there:

var doc = app.activeDocument;
...
var font = doc.paragraphStyles.appliedFont;
....

Any ideas where they could have come from?

    This topic has been closed for replies.

    1 reply

    April 17, 2009

    Looks like it replaces the with +. Don't know why. Would you like it edited (with notation) to correct it, or let it go as is?

    Harbs.
    Harbs.Author
    Legend
    April 19, 2009

    Okay. I guess an edit would help there for all the lurkers...

    It looks to me that italic text comes through in email encased in plus signs (i.e. +italic text+). I guess the forum software interprets a bracketed i as a symbol to start italic -- and converts it to a plus sign. This is a very bad assumption -- especially on a scripting forum!

    This needs to be fixed...

    Harbs

    Mark_A__Boyd
    Inspiring
    April 19, 2009
    I guess the forum software interprets a bracketed i as a symbol to start italic -- and converts it to a plus sign. This is a very bad assumption -- especially on a scripting forum!

    Uh oh. That was a MAJOR problem over in the old FuseTalk Director forums (almost entirely about scripting). [ i ] without spaces was the FuseTalk way of saying italic, but it did not translate at all to or from the newsgroups. And that was only one of the problems with code in those groups.

    In at least one of my emails, I was happy to notice that a forum-posted bold chunk was surrounded by old-school asterisks: *bold*. That really got my hopes up for seeing old-school *bold*, _underline_, and /italics/ indicators, but now I'm worried. I had checked all this stuff on the preview forums, but had NOT checked the emails back then.

    [From your subsequent post]

    Now for the obvious follow-up question:
    How does one wrap text in a code block via email?

    Would love to know this myself. Although, if the forum is going to munge code with italics & other stuff, I won't care at all.

    --
    Mark "Hopeful" Boyd
    Keep-On-Learnin' :-)