MM4 scripts conversion (VBS->JS)
Posted: Mon Jan 02, 2017 8:42 am
You can find the most recent version of VBS->JS conversion Addon at https://www.mediamonkey.com/addons/brow ... vbs-to-js/.
Technically, the tool uses a set of Regular Expressions to convert VBS code to JavaScript. You can find the rules in vbs2js_conversions.js inside the folder of this addon and so you can update it with fixes needed for your scripts.
Known limitations:
- Uses Regular Expressions, not a full VBS parser and so some language constructs (particularly complex, nested) can be misunderstood and thus converted incorrectly.
- There's an attempt to convert even UI code, but it's very rough, incomplete and rather intended for testing.
- More MM4->MM5 API conversions will be added.
Remember, this is the very first version, please leave us feedback, report missing features, submit your updated Regular Expressions, etc.
This topic is locked, so that you can subscribe it in order to receive updates about this script. Please discuss this script in other threads.
Thanks!
Jiri
Technically, the tool uses a set of Regular Expressions to convert VBS code to JavaScript. You can find the rules in vbs2js_conversions.js inside the folder of this addon and so you can update it with fixes needed for your scripts.
Known limitations:
- Uses Regular Expressions, not a full VBS parser and so some language constructs (particularly complex, nested) can be misunderstood and thus converted incorrectly.
- There's an attempt to convert even UI code, but it's very rough, incomplete and rather intended for testing.
- More MM4->MM5 API conversions will be added.
Remember, this is the very first version, please leave us feedback, report missing features, submit your updated Regular Expressions, etc.
This topic is locked, so that you can subscribe it in order to receive updates about this script. Please discuss this script in other threads.
Thanks!
Jiri