I realize that the documentation for macros and userscripts is in flux, and efforts are being made to bring it up-to-date, but I still want to get up to speed as soon as possible. At this point, I have a short list of online resources that have been kindly pointed out to me by the ActiveState staff. I plan to publish it here, and find out if anyone has additional resources they know of. But before getting into that, I still have a couple basic questions, starting with:
What exactly are the similarities and differences between macros and userscripts, including the type of code that the JavaScript variety can contain? I have been told that macros were recently renamed to userscripts, which suggests to me that there would be no difference in the type of code they could use. And at http://docs.komodoide.com/Manual/macros, they sound roughly equivalent except macros are recorded, while userscripts are stored toolboxes, but the type of code is the same.
On the other hand, a recorded macro begins with:
komodo.assertMacroVersion(3);
if (komodo.view) { komodo.view.setFocus(); }
ko.commands.doCommand('cmd_lineNext')
and sample macros I have seen contain code elements like:
ko.views.manager.currentView.scimoz
ko.views.manager.currentView.koDoc.file
While sample userscripts contain code elements that looks quite different, such as:
var editor = require( 'ko/editor' );
editor.goDocStart();
var file = require( 'ko/file' );
file.exists()
var view = require( 'ko/views' ).current();
view.filePath
Could someone please clarify what the code differences are between macros and userscripts, if anything? Thanks!