« MBS FileMaker Plugin,… | Home | Five days left for ea… »

Restart FileMaker with same database

With next 7.2 plugin, we can now restart FileMaker and open the same database:
 

Set Variable [$dbpath; Value:Get ( FilePath )]

Set Variable [$dbpath; Value:MBS( "Path.FileMakerPathToNativePath"; $dbpath )]

Set Variable [$apppath; Value:MBS( "App.GetProcessPath" )]

Set Variable [$r; Value:MBS( "Files.Launch"; $apppath; $dbpath; 1 )]

Exit Application

 
Normally on Mac launching the app would use the same instance. But with the new flag 1 on the end, we start a new instance.
So this script will launch a new copy of FileMaker and quit the current application.
Claris FileMaker Plugin
21 04 17 - 10:17