Jump to content
Server Maintenance This Week. ×

Replicating FM's " New From Template" Behavior


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

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 6214 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.