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); 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