Re: JAWS Scripts - Are they interpreted or compiled?
Matthew Horspool
Hi, Roger is basically correct. However, there is a precedent for needing to recompile scripts between JAWS versions on a very occasional basis. This memorably happened when upgrading from JAWS 4.5 to 5.0 and I believe a similar thing happened around the JAWS 17 cycle. The scripts don't need to be re-written, but the compiler/interpreter architecture has changed somehow, so old but still valid source code needs to be recompiled in the new binary format. Matthew
-----Original Message-----
From: main@jfw.groups.io [mailto:main@jfw.groups.io] On Behalf Of Roger Newell Sent: 28 November 2018 08:16 To: main@jfw.groups.io Subject: Re: JAWS Scripts - Are they interpreted or compiled?
You write your scripts in a scripting language that is proprietary to JAWS and MAGic; it is not a programming language like C++, C# or Python.
Freedom Scientific occasionally introduces new functions (a scripting term, not a synonym for "features") to the Script Manager. They ocasionally change how small things work. But it is very, very unlikely that you would need to rewrite or recompile scripts for a newer version of JAWS, particularly if they are small script files.
On 11/28/18, Isaac <bigikemusic@...> wrote: > So, is the scripting language constently beeing updated, if errors are > found, and if so, do you have to re-compile scripts with a new version > of the script editor? Also, what language are scripts written in, c, > c+ e t c? > ----- Original Message ----- > From: Matthew Horspool > To: main@jfw.groups.io > Sent: Wednesday, November 28, 2018 2:03 AM > Subject: Re: JAWS Scripts - Are they interpreted or compiled? > > > Hi, > > A few points to answer here: > > 1.. To compile a script: as others have said, CTRL+S is the magic > keystroke. However, you need to be in the script manager to do this! > To get to the Script Manager, press JAWSKey+0. If you do this from > within the application for which the script was written and a JSS file > for that application is present in the user's settings directory, the > correct file should be loaded automatically. Simply ALT+F4 out of the > Script Manager after you receive the compiler success message. > 2.. Usually, the JSB (JAWS Script Binary) ends up in the same > place as the JSS (JAWS Script Source). The same does not always apply, > however, for JSD (JAWS Script Documentation), JSH (JAWS Script > Header), JSM (JAWS Script Messages), JKM (JAWS Key Map), JCF (JAWS > Configuration File), JDF (JAWS Dictionary File) and so on. This is > because a file only ends up in the user's settings directory if it is > changed from the default or otherwise put there. Usually a new JSB is > created because the JSS has been modified, so both files end up in the user directory even when modifying stock scripts. > However, if you are only modifying existing scripts and the > documentation, keymap, etc has not required an update, the JSD file > may never make it across. > 3.. Save without compile is useful if something has gone wrong in > your code which is causing the compiler to throw an error and you > can't figure out what. In such a case, you may wish to sleep on the > problem and come back to it next day. > HTH, > > Matthew > > > > -----Original Message----- > From: main@jfw.groups.io <main@jfw.groups.io> On Behalf Of Isaac > Sent: 28 November 2018 07:10 > To: main@jfw.groups.io > Subject: Re: JAWS Scripts - Are they interpreted or compiled? > > > > So, why would you save with out compiling? > > ----- Original Message ----- > > From: "ratshtron" <northstarr1950@...> > > To: <main@jfw.groups.io> > > Sent: Tuesday, November 27, 2018 5:44 PM > > Subject: Re: JAWS Scripts - Are they interpreted or compiled? > > > > > > to compile a jaws script, you must have the > > script file loaded and you simply save the script > > with any changes with ctrl plus s. to save > > without compiling you use ctrl plus w. hope this helps. > > > > > > Legend has it that on Tuesday 11/27/2018 05:21 PM, Brian Vogel said: > > ---------------------------------------- > > >If anyone can point me to the instructions with > > >regard to compiling JAWS scripts I would > > >appreciate it. I have never found the > > >scripting documentation that I know of to be particularly useful.-- > > > > > >Brian - Windows 10 Home, 64-Bit, Version 1809, Build 17763  > > > > > >  Explanations exist; they have existed for > > >all time; there is always a well-known solution > > >to every human problem - neat, plausible, andd wrong. > > > > > >     ~ H.L. Mencken, AKA The Sage of Baltimore > > > > > ---------------------------------------- > > > > > > > > > > > > > > > > > > > > >
|
|