Jump to content
Macro Express Forums

External Scripts not working with JScript


Recommended Posts

It took me forever to find out that I'm supposed to somehow know to use WScript.Echo("some text"); Or at least was supposed to at some point/version to actually return anything.

However, in version 6.0.2.1 it always returns:
Input Error: There is no script engine for file extension ".js".

I downloaded the sample scripts and these are throwing that error as well for the javascript ones.

Any ideas on how to get it to work or confirmation that it's not just my machine or me doing something wrong?

umexternalscripts.mex

Link to comment
Share on other sites

I'm not sure on anything I mention here. Just a couple quick things. I don't use JS scripts. 

I'm pretty sure you need the Java run-time installed on your computer. I think that means you should have a Java console in your control panel. Mine says "Jaxa (32 bit)". You also might want to check your version of Java. 

Check your anti-virus protection. I have found with other scripts that AV software will often block them from executing like that. Might try to temporarily disable AV. 

  • Like 1
Link to comment
Share on other sites

Javascript is different than Java (e.g. your browser runs javascript without java being installed) so I don't think that's it but regardless I do have the latest version of Java installed.

For antivirus I'm using windows defender but disabling it didn't change anything with the scripts. It also doesn't have anything in the threat history.

Link to comment
Share on other sites

I tried using another computer and it worked just fine. More searching online revealed that this was a Windows related error and nothing to do with macro express. I resolved it using the info from this site https://www.winhelponline.com/blog/error-there-is-no-script-engine-for-file-extension-when-running-js-files/

I can't say exactly what registry edits at are being made to Windows when you run this, as I'm not that knowledgable in this area, but I ran the attached file and things are working fine now.

jscript_fix.zip

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...