Hi, Our application which runs on Mac OS X, uses the API Suite generated
by GenSuiteModule (provided by python) to communicate to Photoshop CS. Most of the input parameters that would be generally
specified by the user such as rasterization options etc. are passed through the
API generated by GenSuiteModule and the dialog display is also turned off. The API works fine in most of the cases but throws this
exception when there are additional dialogs shown by Photoshop CS like when the
file is corrupt or some fonts used in the document are not available: - TypeError: unpack non-sequence Following is the code-snippet from the application: - import Photoshop2 as ps ref = File.FSRef(path) alias = ref.FSNewAliasMinimal() open_opts = (EPS_open_options, resolution=300,
use_antialias=True) ps.send_timeout = 5 * 60 ps.open(*[alias], **open_opts) After the 5 second timeout period, it throws an exception,
when Photoshop displays a diaolog box with message such as “The parser
module could not parse the file” or “The file was modified by
another user. Continue anyway? <Continue> and <Cancel> buttons”. Has anyone faced this problem before? Is there a mechanism
to respond to the dialogs shown by Photoshop, by way of sending events to press
Continue or Cancel buttons or send the error message back to Python application
from Photoshop? Regards
|
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig