I recorded a script which
draws a rectangle
merges it down
writes/types some words on the rectangle
and merges that down
Rather than type the same thing in each image, I'd like to write the file name instead omto the image
The applicable section of script seems to be:
Code: Select all
# Text
App.Do( Environment, 'TextEx', {
[A number of text tool parameters omitted]
},
'Join': App.Constants.JointStyle.Miter,
'MiterLimit': 10,
'Characters': u'File NAme Here?',
'Strings': None,
'TextTarget': (0,0,[1],True),
'PathTarget': None,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((13,0,0),1)
}
})
(the 'File Name Here' was, of course, what I typed in with the Text Tool
And I'm thinking I somehow have to use App.TargetDocument.Title, perhaps as a variable or system variable, but I have not been able to figure out how to do it.
I'm pretty good with WordPerfect's PerfectScript, and can sometimes muddle my way though some JaveScript, but this is beyond my ability
My thanks in advance for any help, as I will be processing thousands of files ovcer time, typically 100-500 at a time....
