I have observed some things the reason for which I do not understand:
- What is the purpose of function Main () ?
- Is it just a wrapper around the initial stuff ?
- I assume that global definitions must still precede this.
- Adobe's examples (e.g. SnpCreateDialog) use the form
- SnpCreateDialog.prototype.run = function() { ...}
- rather than simply function SnpCreateDialog () { ...}
- What is the rationale behind this?
- I have also found a that certain Unicode characters are not allowed in comments of an UTF-8 coded script. In my lengthy script (now > 1000 lines) I needed a regex in the editor to find the culprit: [^\p{L}\p{N}\p{P}\s\$\<\>=+\^]
// goRtfDoc.Close ... // must be postponed to keep the ¶-IDs intact
This creates the error
Error Message : Character conversion error
Script, Line# : H:\Adobe\framemaker.12en\AdobeFrameMaker12\6, 0
Replacing the symbol ¶ by the word paragraph fixed the error.
=> Is there a list of 'unallowed' characters or vice versa a list of allowed characters (also for string constants?).