Search code examples
javascriptvbscriptautomationjscriptenterprise-architect

Is VBScript or JavaScript more handy for writing scripts for Enterprise Architect?


I did some complex data gathering in Enterprise Architect. Now I want to automatise this by writing a script.

Since I have to start from scratch I can freely choose which scripting language I will use. As EA best supports scripting in JavaScript and VBScript it seems easiest to choose one of them.

Is either:

  • Microsoft VBScript or
  • JavaScript / Microsoft JScript

a more handy choice for writing a new EA-Script?

Like "Are there more good EA examples to built on for one of them?" or "Is either better supported by the EA Script Editor?"



Note:
I am not looking for an answer to the question "Which one is better JavaScript or VBScript?" That is highly debatable.


Solution

  • Both languages are indeed about equal in what they offer.

    VBScript however has a slight advantage in that

    • Most of the documentation in the EA help file is written with examples in VB, which resembles the syntax to be used in VBScript.
    • It is easier to create an input dialog from VBScript then it is from JScript according to this post on the sparx forum