I have three files:
File A: Update File (No TO's to File B or FIle C)
File B: User Interface File
File C: Data File
File B will call File A if there is a new update.
File A closes both File B and File C through a Open URL call to a close file script to close the files and export new files to the ipad.
File B updates with no problem.
File C has an OnFirstWindowOpen trigger which make sure the user is on File B when using and does some temp cleanup. If I keep the trigger enabled, I get the file is in use error and cannot close the file to replace. If I disable the trigger then the update works as expected. However I need the trigger to assure the user does not end up in this file on the ipad.
1) When using Open URL to call a script does it trigger the OnFirstWindowOpen? I tried putting a dialogue box up to display when run but I did not get the box which I thought was strange.
2) If it does run the trigger, how could I use Open URL to close the file if it is in use.
3) Is there a better way to accomplish this!
Perform Script can be used to perform scripts in other files so you may not need to use Open URL.
Exit Application on FM GO, will close all files that are open so maybe you can use that option. An OnLastWindowClose trigger on some of your files could be set up to do some "Just before closing" processing if such is needed.