Another bug in the email software...
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?
