Launch a Program for Current Gedcom (code snippet)

Description

The example below launches PSPad (assuming it is installed) with the currently open GEDCOM file.

Windows 7 or later does not need the path to the file, but earlier versions of Windows may do.

Requires: None

Code

LaunchProgram.fh_lua
--[[
@Title: PSPad - Edit Current Gedcom
@Author: Jane Taubman
@LastUpdated: December 2011
@Version: 1.1
@Description: Launches PsPad for the Current Gedcom
 
]]
 
strProgram = '"PSPad.exe"'
 
strProjectFile = fhGetContextInfo("CI_GEDCOM_FILE")
fhShellExecute(strProgram,strProjectFile)