http://forum.corel.com/EN/viewtopic.php?f=104&t=57994
but never did sort it. I now really need to do so, as I want to string together three scripts (call them A, B and C) which I've recorded and which work. And I think that 'one chunk at a time' approach is how I'll tackle things in future. So would very much appreciate some help please.
I recently discovered the command RunScript which I'm sure must be the way to go. I tried to do that with the code below, but no joy. I started with script A in my editor and near the start added one line to name a variable for later use in script C (as LeviFiction showed me a week ago). Then I added the RunScript code, copying from a macro I downloaded way back. PSP 8 successfully runs the 'A' part but then just ends, with an error, instead of running 'B' (actually called called 'Elev-GPSU-ChangeColours').
Here is the code of the RunScript section:
Code: Select all
# RunScript
App.Do( Environment, 'RunScript', {
'FileName': Elev-GPSU-ChangeColours,
'ScriptExecutionMode': App.Constants.ExecutionMode.Default,
'CheckVersion': App.Constants.Boolean.false,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Silent,
'AutoActionMode': App.Constants.AutoActionMode.Match
}
})
Traceback (most recent call last):
File "C:\Users\terry\My PSP8 Files\Scripts-Trusted\Elev-GPSU-All.PspScript", line 452, in Do
App.Do( Environment, 'RunScript', {
NameError: global name 'Elev' is not defined
Line 452 is:
App.Do( Environment, 'RunScript', {
