// Check for FreeHand MX.
var fhAppPath = fw.findApp("FH11", "FreeHand MX.exe");

// If it is not found, then check for FreeHand 10.
if (fhAppPath == "") {
	fhAppPath = fw.findApp("FH X", "FreeHand 10.exe");
	// If FreeHand 10 is not found, then ask then if they want to purchase it.
	if (fhAppPath == "") 
	{
		var goToSite = fw.yesNoDialog("您的系统未安装 FreeHand。是否要下载免费试用版？");
	
		if (goToSite) {
			fw.launchBrowserTo("http://www.macromedia.com/go/freehand_cn");
		}
	}
	// If FreeHand 10 is found, the just copy as vectors.
	else {
		fw.getDocumentDOM().clipCopyAsPaths();
	}
}
// If FreeHand 11 is found, then do a standard copy.
else {
	fw.getDocumentDOM().clipCopy();
}
