Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Can anyone think of the pro's / con's between:

 

a) Custom script attached to "close window" (set in a custom menu)

B) Custom script attached to OnWindowClose (set in File Options, script triggers)

Well, OnLastWindowClosed is automatic and doesn't require any mouse clicks. Or perhaps I misunderstand the question . . .

  • Author

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.

I see. I normally just quit the program thereby triggering all the closing scripts.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.