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.

Replicating FM's " New From Template" Behavior

Featured Replies

I am trying to script the same experience as FM's "Create a new file using a template" behavior. Specifically, this allows you to select a .fp7 file and forces the user to "Create a copy named", then automatically opens this user's copy without altering the original .fp7 file.

When attempting to replicate this behavior in scripts, I am only able to use a "Save a copy as" script step which is not as elegant as the former. It does not automaticly open the user's copy without asking them to check the box- and on top of that, I get into some scripting trouble to boot.

So far, the best I have been able to come up with is something like this (where my solution is named "db Template");)

If [Get (FileName) = "db Template"]

.. Save a Copy as [copy]

.. Close File [Current File]

End If

Perform Script ["Startup (not Template)"]

Of course, this doesn't open the file properly even if the user selects "Automaticaly open this file" during Save As...

Any ideas on a more elegant approach? I do not want my solution placed in the FM template folder if possible as I am trying to create a more stand-alone experience.

Thank you so much!

A more elegant approach, I think, would be to have your solution accommodate all needs within the existing file/s structure, instead of requiring new files to be created periodically. Creating files should be left to the developer, and possibly to a sophisticated user (one that wouldn't need your hand-holding script).

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.