Here is a simple .js file:
Code: Select all
var pl = new ActiveXObject("PhotoLine.application"); var doc = pl.ActiveDocument; if(doc != null) doc.DoOperation("Scale", "Mode", 2, "ValueX", 200, "ValueY", 200, "Interpolation", 5); pl = null;
var docArray = pl.OpenDialog();
It would help if the alert() function were implemented; it is hard to debug scripts without it.
I could not find a way to create a layer; doc.LayerArray.Insert() does not work.
A number of other operations would be useful; I can’t find any documentation for them:
-set the foreground/background color
-select a rectangle
-fill the selection with color
-change document size
Also, being able to open a dialog to accept user input would be handy.