This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > March 2006 > Gary's demo Pause Script - about tiny omission





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Gary's demo Pause Script - about tiny omission
Joske

2006-03-05, 6:20 pm

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




Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews