[Jprogramming] JayScript issued as general/jayscript addon
Oleg Kobchenko
olegykj at yahoo.com
Wed Oct 15 15:22:53 HKT 2008
The JayScript page is updated with further links to MSDN
for information about more available objects and methods.
Note, that Active Scripting is Windows-specific technology.
While different web browsers (Firefox, Chrome, etc.) use
their own private implementation of scripting (JavaScript),
Microsoft chose for the same HTML scripting use a common
scripting technology (Active Scripting) available outside of
Internet Explorer, ie ASP, shell scripting, scriptable apps etc.
This is a multi-part system between a host, a scripting engine,
scripting runtime (libraries), each swappable and communicating
via predefined set of interfaces and collaboration protocols.
In JayScript, J plays a role of a script engine, by means of
a C++ addon that implements the interfaces and exposes the
host's runtime through objects callable using pcall/OLE
interface.
> From: Oleg Kobchenko <olegykj at yahoo.com>
>
> Don, Björn and others,
>
> Thank you for further testing JayScript.
> I plan to run some test on Vista. In general the
> assumption is that if both J and JayScript are registered
> and accessible within permissions, it should run.
>
> The functionally available in JayScript depends on the
> Scripting Host: Windows Shell, Internet Explorer, ASP, etc.
> All "global" objects advertised by the host are
> available in J as Disp objects in terms of pcall/OLE interface.
>
> I will provide more info. So stay tuned.
>
> > From: Don Guinn
>
> >
> > Got JayScript html and ijss scripts to work. Thanks. Added a ten second
> > delay to the ijss script which kept the DOS window open long enough to see
> > that it worked.
> > I had installed J in "Program Files" as I had done with XP but ran into so
> > many problems with J in "Program Files" with Vista that I decided to move J
> > out of "Program Files". I think that might have been causing some of my
> > problems as Vista sometimes hides updates not made as an administrator. When
> > I did that I had to unregister J and JayScipt stuff. For some
> > reason /unregserver and /unregister for J failed under Vista. I don't know
> > if that is a J problem of a problem brought on by Vista. Finally had to go
> > into the registry to clean up.
> >
> > When I ran test04.html it works after telling Internet Explorer it's ok to
> > run an ActiveX program. But when it starts to run the do__WScript it comes
> > back and warns me again and I have to tell it that it's ok again. It does
> > not issue that warning for the VBScript. I can't find what I need to set for
> > j.dll or the jayscript.dll to prevent that message as with VBScript.
> >
> > Also tried JayScript under Google Chrome. It didn't do anything. No errors.
> > Neither JayScript nor VBScript worked.
> >
> > Where can I learn about the methods available for JayScript?
> >
> >
> > On Sun, Oct 12, 2008 at 11:04 AM, Björn Helgason wrote:
> >
> > > C:\Program Files\j602\addons\general\jayscript\test>test01.wsf
> > >
> > > C:\Program Files\j602\addons\general\jayscript\test>test02.ijss
> > > Microsoft (R) Windows Script Host Version 5.7
> > > Copyright (C) Microsoft Corporation. All rights reserved.
> > >
> > > CScript Error: Can't find script engine "JayScript" for script "C:\Program
> > > Files
> > > \j602\addons\general\jayscript\test\test02.ijss".
> > >
> > > C:\Program Files\j602\addons\general\jayscript\test>test03.ijss
> > > Microsoft (R) Windows Script Host Version 5.7
> > > Copyright (C) Microsoft Corporation. All rights reserved.
> > >
> > > CScript Error: Can't find script engine "JayScript" for script "C:\Program
> > > Files
> > > \j602\addons\general\jayscript\test\test03.ijss".
> > >
> > > C:\Program Files\j602\addons\general\jayscript\test>test04.html
> > >
> > > C:\Program Files\j602\addons\general\jayscript\test>
> > >
> > > ------------------------------
> > > JScript
> > > 1,2,3,4
> > > ------------------------------
> > > VBScript
> > > ------------------------------
> > > JayScript
> > > ------------------------------
> > > VBScript Again
> > > ------------------------------
> > > JayScript Again
> > > ------------------------------
> > > JayScript Event (not working yet)
> > >
> > >
> > > 2008/10/11 Oleg Kobchenko
> > >
> > > > > From: Don Guinn
> > > > >
> > > > > Tried JayScript under Vista Pro and got the following from test02.html:
> > > > > Notice that document.write worked but do__document did not.
> > > >
> > > > This may have to do with whether Active Content is allowed to run.
> > > > You may want to check security options and set it Prompt if Disabled.
> > > >
> > > > > Also, the .ijss
> > > > > scripts just flashed a black window (I assume to be a DOS window) and
> > > > went
> > > > > away.
> > > >
> > > > Try opening the DOS window then cd to the folder and type in the .ijss
> > > > files so that you see the output and window stays.
> > > >
> > > > > The .asp example said it was an unknown file type which was defined
> > > > > but no application was associated with it.
> > > >
> > > > For .ASP you need to have Internet Information Server (IIS) installed
> > > > among Windows Components in Control Panel. Then in IIS console in
> > > > Administrative Tools enable ASP. Then create a virtual folder with
> > > > the .ASP file. Then navigate to the url in Web browser
> > > > http://localhost/path/file.asp
> > > >
> > > > > I see that the source is now available and I am now digging into it to
> > > > see
> > > > > what's going on. While viewing readme.txt, ran into a small problem as
> > > > that
> > > > > the lines are delimited only by LF (0x10), not CRLF. The result is that
> > > > the
> > > > > text is not very readable in Notepad. Looks fine under J.
> > > >
> > > > The J readme.txt has CRLF, but the one in src folder has only LF.
> > > > The src is supposed to be used with Visual Studio. See
> > > > How to: Use Visual C++ Express Edition with the Microsoft Platform SDK
> > > > http://msdn.microsoft.com/en-us/library/ms235626(VS.80).aspx
> > > >
> > > > > Noticed that is a pain to try to modify a .html file as Internet
> > > Explorer
> > > > > caches and always gets the old copy. Is there an easier way to clear
> > > the
> > > > > file than using IE's clear cache tool to get a new copy?
> > > > >
> > > > > ------------------------------
> > > > > JScript
> > > > > 1,2,3,4
> > > > > ------------------------------
> > > > > VBScript
> > > > > 1 2 3 4
> > > > > ------------------------------
> > > > > JayScript
> > > > > ------------------------------
> > > > > VBScript Again
> > > > > 101 102 103 104
> > > > > ------------------------------
> > > > > JayScript Again
> > > > > ------------------------------
> > > > > JayScript Event (not working yet)
> > > > >
> > > > >
> > > > > On Fri, Oct 10, 2008 at 10:37 PM, Oleg Kobchenko wrote:
> > > > >
> > > > > > The suggestion is incorporated. Thank you.
> > > > > >
> > > > > > Integrating setup routines with Package Manager
> > > > > > is also a good idea. One other such discussion was
> > > > > > about facilitating integration with the IDE, such as
> > > > > > shortcuts or menu. BTW, this is in line with already
> > > > > > existing integration: labs.
> > > > > >
> > > > > >
> > > > > >
> > > > > > ----- Original Message ----
> > > > > > > From: Raul Miller
> > > > > > >
> > > > > > > On Fri, Oct 10, 2008 at 9:28 AM, Oleg Kobchenko wrote:
> > > > > > > > Today JayScript is issued as general/jayscript addon.
> > > > > > > >
> > > > > > > > http://www.jsoftware.com/jwiki/Addons/general/jayscript
> > > > > > > ...
> > > > > > >
> > > > > > > The install instructions ask that I execute jayscript_reg.bat
> > > > > > >
> > > > > > > However, the batch file requires that jayscript.dll be in my
> > > current
> > > > > > directory
> > > > > > > when I run the script, and this was not a part of the instructions.
> > > > > > >
> > > > > > > One way to remedy this would be to change the regsvr32 line in the
> > > > > > > bat file to
> > > > > > > regsvr32 "%~dp0jayscript.dll"
> > > > > > >
> > > > > > > Though, ideally, the package manager should be able to do this.
> > > >
> > > >
> > > >
> > > > ----------------------------------------------------------------------
> > > > For information about J forums see http://www.jsoftware.com/forums.htm
> > > >
> > >
> > >
> > >
> > > --
> > > Björn Helgason, Verkfræðingur
> > > Fugl&Fiskur ehf,
> > > Þerneyjarsundi 23, Hraunborgum
> > > Po Box 127,801 Selfoss ,
> > > t-póst: gosinn at gmail.com
> > > gsm: +3546985532
> > > Landslags og skrúðgarðagerð, gröfuþjónusta
> > > http://groups.google.com/group/J-Programming
> > >
> > >
> > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
> > >
> > > góður kennari getur stigið á tær án þess að glansinn fari af skónum
> > > /|_ .-----------------------------------.
> > > ,' .\ / | Með léttri lund verður |
> > > ,--' _,' | Dagurinn í dag |
> > > / / | Enn betri en gærdagurinn |
> > > ( -. | `-----------------------------------'
> > > | ) | (\_ _/)
> > > (`-. '--.) (='.'=)
> > > `. )----' (")_(")
> > >
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
>
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list