AnsweredAssumed Answered

On Layout Enter, if filename = "" ; prompt to save as clone -  Scripting

Question asked by lindseym on Aug 9, 2016
Latest reply on Aug 9, 2016 by philmodjunk

Good Afternoon,


I am trying to write a script that will run upon opening the layout (I wanted when you open the file, but it appears my FMP doesn't have that feature, no problem, the file will always open from the layout I want the script to run from) ** I see that the script trigger for upon" window open" is under File, File Options, Script Triggers***



If the file name = "X"


Then prompt to save a clone (is there a way to not have it say "clone" at the end of the file name?)


Automatically open file the new saved as file


Close original file "X"



Here is what I have, I can get everything to work except "automatically open." I thought I was closing the "new" file, but I took off the "close file [current] for the script and the file still wasn't automatically opening. Visuals below. File attached.Screen Shot 2016-08-09 at 2.16.17 PM.pngScreen Shot 2016-08-09 at 2.16.28 PM.pngScreen Shot 2016-08-09 at 2.16.59 PM.png