> From the Terminal prompt I type:
> osascript -l JavaScript -e '2+2'
>
> and get the response:
> osascript: can't open JavaScript scripting component.
>
> JavaScript runs fine in Script Editor.
> I'm running Mac OS X, 10.1.5.
>
> osalang reports JavaScript as available.
Yes, this is a known bug with the osascript command. I believe Apple fixed
this in Jaguar.
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB: http://www.latenightsw.com/ CANADA V8V-4M9