Jump to content

Custom script attached to "close window" or use OnWindowClose ?


truelifeajf

This topic is 3856 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Well they do the same thing.

 

If a user hits cmd-w, or clicks the close box, or selects file-->close window

 

The only difference I can see is that the script step "close window" will NOT trigger a custom menu, but WILL trigger OnCloseWindow.

 

Usually, when there's two ways to do something, there's pros and cons to each.

 

For example, a layout trigger of OnModeEnter (say, for entering find mode) works very differently to a custom menu attached to View-->Find menu. If you trigger a script to View-->Find, you can perform functions BEFORE you enter Find mode whereas the layout trigger will only trigger after entering Find Mode.

 

But with closing windows, I can't see why they've put the same function in two different places.

Link to comment
Share on other sites

This topic is 3856 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.