below are the first few lines of th script. Do you see the ones that start with double slash (//)? those lines are comments, they do not execute
pick one of them, remove the //, select three objects and run the script, you should see them aligned.
try all different ways of running the script (by removing the // one line at a time)
var exist = app.documents.length > 0;
var hasSelection = app.selection.length > 0;
var nameRX = /(horizontal)|x/i;
// alignObjects('x', 10)
// alignObjects('horizontal');
// alignObjects('Horizontal', 4);
// alignObjects('y');
// alignObjects('vertical');
// alignObjects('Vertical', 10);
... View more