Thanks Matt. I wanted to do that from a webpage.
The WSH object seem to be the way to go, it works. But it's painful!
In this case it was the sound recorder.
var oShell = new ActiveXObject( "WScript.Shell" );
oShell.Exec( "<path to executable> /option /option <file to execute>" );
If anyone has better tips on how to play sounds from a webpage, I'm all ears!
Cheers
Bernard
On 2/6/07, Matt Lind <speye_21(at)hotmail.com> wrote:
>How do you perform system calls in JScript? A bit like Python's os.system()
If you're inside of XSI, use the System() command (see scripting reference).
If you're outside of XSI, don't quote me as I haven't checked in a while,
but I believe the Windows Script Host has a System call buried somewhere in
there somewhere. Wsh.System() ? Check the shell or network objects.
Matt
------------------------------
Matt Lind
Animator / Technical Director
SOFTIMAGE certified instructor:
SOFTIMAGE|3D
SOFTIMAGE|XSI
Matt.Lind(at)Mantom(dot)net
_________________________________________________________________
Search for grocery stores. Find gratitude. Turn a simple search into
something more.
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi