[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: Stuart Celarier <SCelarier_at_corillian.com>
Date: 2006-03-21 00:17:21 CET

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>

Cheers,
Stuart

Stuart Celarier | Corillian Corporation

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 21 00:17:38 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.