I copied my textmerge.js script, in Scriptographer\Scripts\tools\textmerge.js path. If i try to run. Its throws following error.
ReferenceError: activeDocument is not defined
Error Line: var SelObj = activeDocument.selection;
Kindly advice me
I copied my textmerge.js script, in Scriptographer\Scripts\tools\textmerge.js path. If i try to run. Its throws following error.
ReferenceError: activeDocument is not defined
Error Line: var SelObj = activeDocument.selection;
Kindly advice me
if u are using scriptographer version 2.0 (which is recomended), as far as i know, u dont have to use 'activeDocument', instead use 'document'. activeDocument is old syntax...
and to get all selected objects use 'document.selectedItems' which returns an ArtSet of the documents selected objects.
please refer to the reference (thus the name): http://scriptographer.com/Reference/AI/
greetings
g.s
If you use Scriptographer regularly or for commercial purposes, please consider making a donation via PayPal:
Thank you!