Subj : Re: A plea to the Open Sourcerors To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Jan 21 2004 01:42 pm Andrew Mayo wrote: > In my case, all I want to do is have a JSSHELL with support for the > intrinsic objects, particularly the File, Environment and System > objects that supposedly exist, so I can deploy platform-independent > scripts for various purposes that have a pretty lightweight framework > (i.e runtime support) around them. Download a Mozilla build as a .zip (or the compression format for your platform), it comes with some executable called xpcshell.exe the XPCOM shell, then check http://www.xulplanet.com/references/xpcomref/creatingcomps.html on how to create XPCOM components with JavaScript and check the reference docs at http://www.xulplanet.com/references/xpcomref/ In the shell you can try examples alike js> var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Co mponents.interfaces.nsILocalFile); js> file [xpconnect wrapped nsILocalFile] js> file.initWithPath('C:\\Dokumente und Einstellungen') js> file.isDirectory() true -- Martin Honnen http://JavaScript.FAQTs.com/ .