Skip 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.

open new file at end of script

Featured Replies

I have a script calling up a dialogue with several choices. When one of those choices is selected I want the script to end and another file to open. I have that step as the last step in the script ie the last lines of the script are:

If status(currentmessagechoice)=2

open(filename)

endif.

But the script finishes itself in the original file, no matter what I do or try.

Can someone help me with this?

This way:


Show Message [ Buttons:

  • Author

Soren, thanks for your reply. The complication is that one of the other choices is to exit the script without opening the new file (I obviously should have mentioned this). If I have interpreted it correctly, your suggestion would open the new file regardless.

In any case, I always thought that if you exited a script the script ends at that point without doing any more of the script.

Right you interpreted, but didn't make a tryout apparently smile.gif ...it's certainly not opening the second file regardless!!!!

You can change it slightly to ask if Status(CurrentMessageChoice) different from 2 and then repeat the algorithm inside the outer if'ing... Do you follow the reasoning???

--sd

Another way to ensure you end up in the opened file is to run an external script in the other file that has a "Halt script" as the last action.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.