// 1. 定义 HTML 内容 (保持漂亮的格式) html = "" + "" + "" + "" + "" + "

About Biosensor Tools

" + "
Version: 2026.1 (Build 202601)
" + "Developer: Dr. Kui Wang (Chimeric Nano Sensor Team, CAS)
" + "
" + "
1. FIA (Fluorescence Image Aligner) v3.1.0
" + "
Robust motion correction (Global & Dense Flow).
" + " 🔗 Visit GitHub Repository" + "
" + "
" + "
2. RIA-J (Ratio Imaging Analyzer) v2.0.0
" + "
Publication-grade ratiometric analysis.
" + " 🔗 Visit GitHub Repository" + "
" + "
" + "
3. WinMan (Window Manager) v1.0.0
" + "
Workspace accelerator & smart window filtering.
" + " 🔗 Visit GitHub Repository" + "
" + "" + "" + ""; // 2. 保存临时文件 tempDir = getDirectory("temp"); // 处理路径中的反斜杠,防止 Windows 路径转义问题 if (endsWith(tempDir, "\\")) { tempDir = substring(tempDir, 0, lengthOf(tempDir)-1); } filePath = tempDir + File.separator + "About_Biosensor_Tools.html"; File.saveString(html, filePath); // 3. 强制在浏览器打开 (绕过 VS Code) os = getInfo("os.name"); if (startsWith(os, "Windows")) { // Windows: 强制调用 msedge (Edge浏览器) // 如果你更喜欢 Chrome,可以把 "msedge" 改为 "chrome" exec("cmd", "/c", "start", "msedge", filePath); } else if (startsWith(os, "Mac")) { // Mac: open 命令通常能正确唤起 Safari/Chrome exec("open", filePath); } else { // Linux 或其他 exec("xdg-open", filePath); }