[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Support .wsf hook scripts

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-03-21 00:45:32 CET

Thanks for the explanation, Stuart. I went ahead and committed your
suggested change in r18972.

- Dan

On Mon, 20 Mar 2006, Stuart Celarier wrote:

> Good question, Dan.
>
> The .wsf format is a universal container. It can host both JScript and
> VBScript, any other configured script engine, and even mix script hosts
> in the same file. There is also an include mechanism, so .js and .vbs
> files can be used in situ within .wsf files.
>
> That being the case, I don't see much an advantage in adding .js and
> .vbs as extensions. I would not be opposed to adding them either, unless
> there is a performance penalty.
>
> Here's a sample of .wsf syntax that illustrates how a scripting language
> is specified:
>
> <job id="main">
> <script language="JScript">
>
> var shell = new ActiveXObject( "WScript.Shell" );
> if ( _some_expression_ )
> shell.Quit( 1 );
>
> </script>
> </job>

  • application/pgp-signature attachment: stored
Received on Tue Mar 21 00:36:52 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.