Subj : Re: A plea to the Open Sourcerors To : netscape.public.mozilla.jseng From : ajmayo@my-deja.com (Andrew Mayo) Date : Wed Jan 28 2004 02:52 am "Sterling Bates" wrote in message news:... > "Andrew Mayo" wrote in message > news:2b20cd9f.0401260159.748bc73f@posting.google.com... > > It sure would be nice to have a decent Open Source implementation of > > Javascript which included file I/O capabilities and had a fairly small > > runtime footprint. I would have thought a *lot* of people would have > > found it useful. Currently, it looks like XPCOM almost does it, but > > doesn't do file I/O and I get the impression I'm being discouraged to > > experiment further with Seamonkey's jsshell as this is presumably just > > a 'proof of concept'. > > That's the beauty of open source :) If it isn't already done, you can take > a couple days and do it exactly the way you want. SpiderMonkey (SeaMonkey > == Mozilla suite) is very easy to extend with your own script objects. You > could quickly create a new File object, and since your target OS is Win95 > I'd be surprised if you need more than a couple days. Registry access is > similarly easy, with your object wrapping the Windows API calls. > > All you need to distribute is the js3215.dll file that you can compile on > your own. Pretty small footprint as it's only 300K. > > Sterling Yes, I think this is what I will do. It seems so close, now. Since I only need Windows support it might be better to add my own custom extensions rather than try and use the NSPR-based file object, which obviously has the advantage of platform neutrality. .