|
| It works like a charm, except when an image has been closed by the
script his pause fragment is in. Apparently it is a situation Gary
did not foresee. Disabling these lines will get it running again,
because as it is, it falters on docs it can't find because they were
closed:
###edited by joske START###
# # if we changed documents, clean up the old doc
# if originalDoc and originalDoc.Title !=
App.ActiveDocument.Title:
# newImageDesc = imageDesc
# if scriptName in allScriptData:
# del allScriptData[scriptName]
# allScriptData['ScriptStack'].pop()
# if len(allScriptData['ScriptStack']) > 0:
# newImageDesc = str(allScriptData) + '# Script data\r\n'
+ imageDesc
# App.Do( Environment, 'ImageInfo', {
# 'Description': newImageDesc,
# 'GeneralSettings': {
# 'ExecutionMode':
App.Constants.ExecutionMode.Silent,
# 'AutoActionMode':
App.Constants.AutoActionMode.Match
# }
# }, originalDoc)
###edited by joske END###
Joske
|
|