May I propose Javascript as the “standard” scripting language? It is cross-platform, and seems better to me than “VB Script for Windows and Apple Script for Mac.” I am a Windows user and I never use VB Script, even in active server pages. I thought I saw some .js files somwhere, maybe when I installed a beta; but I seem to have lost them.
Here is a simple .js file:
Code: Alles auswählen
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
-rotate document
-flatten image
Also, being able to open a dialog to accept user input would be handy.