Hi,
I've created an automation plugin similiar to the listener-plugin example in the sdk and I'm poping up a modal dialog when receiving the shutdown message/call from photoshop. When I quit Photoshop, the dialog shows for about 1-2 secs then vanishes and photoshop crashes. On the other hand, on windows the shutdown process is halted until I dismiss the dialog by button, just as I expected from a modal dialog (and then photoshop exits normaly).
I also tried to receive the eventQuit notification, put this event never ever seems to be sent by the host (both on win %26amp; mac).
Any help would be greatly appreciated!
Thanks,
Marc
Automation Plugin: Problems with...
No ideas anyone?
Basicly I want my plugin to behave like Photoshop when a 'dirty' file is still open and the uses quites the app. I want to pop up a dialog, do some conditional saving stuff and even prevent Photoshop from closing.
Is this possible at all?
Thanks,
Marc
Automation Plugin: Problems with...
You should not try to do anything during the shutdown except clean up after yourself in preperation for exit. Photoshop is in the middle of tear down so you can't know what resources and functionality is availabe during the shutdown sequence.
Thanks Tom. I now use a mac os notification class to pop up my warning
message, this works fine. However I'm still lookin for a way to receive event notifications before photoshop has handled them, something like the PreTranslateMessage method from windows/mfc. Would that be possible?
Also, sometimes I miss some of the events, e.g. when closing a dirty document, photoshops asks if I want to save the doc, but I only receive the close-event, not the save-event. I noticed this seems to be the case with all events triggered indirectly, as the save event when closing a dirty doc or opening/closing/saving a doc from my auto-plugin.
So my big question is, am I doing it wrong or am I trying the impossible?
Thanks,
Marc
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment