shutdown script
All  1-3  4-5

Previous
Next
 From:  Michael Gibson
11180.4 In reply to 11180.3 
Hi Peer,

re:
> Unless you have any other ideas about how I can ensure that quitting always goes through a script.

Sorry no there isn't any way that I'm aware of that would enable a script to take control of program shutdown.

In addition to window close button or Cmd+Q it can also be triggered by user logout or OS shutdown.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  pressure (PEER)
11180.5 In reply to 11180.4 
Hi Michael,

Thanks for explaining what causes PromptSaveChanges to get shown. I was able to get the behavior I want by doing this:

code:
// force PromptSaveChanges to be shown when MoI exits
moi.geometryDatabase.incrementRevision();
moi.geometryDatabase.setUserText('dummy', 'dummy');


- Peer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-3  4-5