[Jslib] Problem with run() in fileUtils.js

Michael Kaiser mk952537 at web.de
Thu Feb 17 13:16:06 EST 2005


Hi All,

I have a problem with run() on Mac OS 10.3.8
I always get NS_ERROR_INVALID_ARG
this happens at
      if (!fileInst.isExecutable())   
        return jslibErrorMsg("NS_ERROR_INVALID_ARG");


So i tried it with xpcshell

js> var pp = 
"/Applications/MozillaDebug.app/Contents/MacOS/chrome/jslib/jslib.js";
js> load(pp);
include: chrome://jslib/content/debug/debug.js
include: chrome://jslib/content/modules.js
js> include(jslib_fileutils);
include: chrome://jslib/content/io/fileUtils.js
0
js> var fileInst = new 
JS_FILEUTILS_FilePath("/Applications/MozillaDebug.app/Contents/MacOS/mozilla");
js> fileInst.isExecutable();
false

mozilla is definitely executable... :-)

Thanks,
Michi

Mac OS 10.3.8
jslib Build Date  Feb 15, 2005
Mozilla 1.7.5

-- 
Michael Kaiser




More information about the Jslib mailing list