I will check that.PhilM hat geschrieben: So 09 Dez 2018 12:38 Error message box is sometime too small to read the entire message
Martin

I will check that.PhilM hat geschrieben: So 09 Dez 2018 12:38 Error message box is sometime too small to read the entire message
doc.Paste should have at least an option to paste a virtual copy.Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.

You can do that with PhotoLine.Page's DuplicateVirtual().PhilM hat geschrieben: Do 13 Dez 2018 10:17doc.Paste should have at least an option to paste a virtual copy.Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
Or there should be an other method like "doc.PasteVirtual" without option ?
In the VBScript manual (odt) delivered with 21.40b6, Page does not have a DuplicateVirtual() method.Martin Huber hat geschrieben: Do 13 Dez 2018 16:29You can do that with PhotoLine.Page's DuplicateVirtual().PhilM hat geschrieben: Do 13 Dez 2018 10:17doc.Paste should have at least an option to paste a virtual copy.Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
Or there should be an other method like "doc.PasteVirtual" without option ?
Martin

Yes, of course, I did mean that.PhilM hat geschrieben: Do 13 Dez 2018 22:18In the VBScript manual (odt) delivered with 21.40b6, Page does not have a DuplicateVirtual() method.
Layer has a DuplicateVirtual
Did you mean Layer ?
If it contains the Paste documentation, then it is up to date.PhilM hat geschrieben: Do 13 Dez 2018 22:18Could you put an up-to-date pdf of the script manual somewhere on the forum ?
Yes, it does contain a fresh version of the Open Office manual.Martin Huber hat geschrieben: Do 13 Dez 2018 22:26If it contains the Paste documentation, then it is up to date.PhilM hat geschrieben: Do 13 Dez 2018 22:18Could you put an up-to-date pdf of the script manual somewhere on the forum ?
The latest beta should always contain the latest documentation.
Martin
Code: Alles auswählen
var pl = new ActiveXObject("PhotoLine.Application");
var doc = pl.ActiveDocument;
var gLayer = new ActiveXObject("PhotoLine.Layer");
doc.RootLayer.Insert(gLayer, -1);Yes, it does workrussellcottrell hat geschrieben: Fr 14 Dez 2018 18:14 I found this out by trial and error; the default layer seems to be a group:Code: Alles auswählen
var pl = new ActiveXObject("PhotoLine.Application"); var doc = pl.ActiveDocument; var gLayer = new ActiveXObject("PhotoLine.Layer"); doc.RootLayer.Insert(gLayer, -1);
Code: Alles auswählen
...
Set grp = CreateObject("PhotoLine.Layer")
doc.RootLayer.Insert grp, -1Code: Alles auswählen
var objShell = new ActiveXObject("WScript.Shell");
for (var propertyName in doc)
objShell.Popup(propertyName);Not familiar with jsrussellcottrell hat geschrieben: So 16 Dez 2018 18:14 On a related note, in browsers you can list all the properties of an object like this:But it doesn’t do anything in PhotoLine.Code: Alles auswählen
var objShell = new ActiveXObject("WScript.Shell"); for (var propertyName in doc) objShell.Popup(propertyName);
Code: Alles auswählen
Dim pl, doc
Set pl = CreateObject("PhotoLine.Application")
Set doc = pl.ActiveDocument
pl.Visible = True
Dim objShell
Set objShell = CreateObject("WScript.Shell")
Dim propertyName
for Each propertyName in doc
objShell.Popup propertyName
Next
Code: Alles auswählen
for Each propertyName in doc
MsgBox propertyNameSamerussellcottrell hat geschrieben: So 16 Dez 2018 22:07 WScript.Shell is for javascript. In vbscript, just doCode: Alles auswählen
for Each propertyName in doc MsgBox propertyName

You can doPhilM hat geschrieben: So 16 Dez 2018 10:58I am working on a multi-page document.
I can't find how to move from page to page : Next/Previous, First/Last or to move to a specific page number.
Code: Alles auswählen
For Each page In doc
(...)
Next