From 70ebbacd4cebe7fb9444fc2929b1fff89b560b4f Mon Sep 17 00:00:00 2001 From: WilliamRClark Date: Fri, 14 May 2021 08:58:06 -0400 Subject: [PATCH 1/2] Use file selection dialog instead of FolderSelectionDialog. --- msgbox.vbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msgbox.vbs b/msgbox.vbs index b210da7..ef3f8d6 100755 --- a/msgbox.vbs +++ b/msgbox.vbs @@ -1,6 +1,6 @@ Function BrowseForFile( dialogText ) Dim shell : Set shell = CreateObject("Shell.Application") - Dim file : Set file = shell.BrowseForFolder(0, dialogTitle, 0) + Dim file : Set file = shell.BrowseForFolder(0, dialogTitle, 16384) BrowseForFile = file.self.Path End Function From 9d1dc0c74000fe97c46c169cd397d385a83cca29 Mon Sep 17 00:00:00 2001 From: dylanaldrich Date: Thu, 20 May 2021 09:33:19 -0700 Subject: [PATCH 2/2] Corrects file path output for Mac OS --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 323a120..9e7d541 100755 --- a/index.js +++ b/index.js @@ -378,6 +378,7 @@ var dialogNode = module.exports = { //parse return from appl script code var findstr = "text returned:"; retVal = stdout.slice(stdout.indexOf("text returned:") + findstr.length, -1); + retVal = retVal.substr(5).replace(/:/g, "/"); if(callback) callback(code, retVal, stderr);