[jawsscripts] Re: jsm Message file data, does it need to be recompiled from the jss to become live?

  • From: "Paul Magill" <magills@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 8 Apr 2009 20:42:37 +1000

Hi Geoff,

As already stated, any changes to a .jsm file will not be reflected in the 
use of the scripts until the .jss file has been recompiled.

The only time Jaws reads the .jsm file is at compilation.

A few comments below that may or may not be relevant depending on your 
situation.

It is most likely that the user/users of the scripts, would be able to learn 
to reliably compile them after a change to the .jsm file.

However, for a non Jaws user to make changes to a .jsm file,and correctly 
maintain the structure/syntax may be a tall ask.  For example, would they, 
over time, continue to use the script manager or a text editor such as 
Notepad to do the updates.  Using Microsoft Word, or another word processor 
comes to mind, as on screen the display looks the same, & they are more 
familiar with that...

If the purpose of doing this, is to have the product codes translated to a 
mor friendly description, then the Dictionary manager comes to mind.

* It is however, possible to make changes to a data file that Jaws uses, 
such that immediately upon saving the changes, the scripts will use those 
changes, with no recompiling required.

This is done using a .ini file.  The structure of an .ini file is the same 
as the structure of a Jaws .jff frame file.   Open a .jff file in the script 
manager, if you haven't seen that file structure.

For your purpose, the file you would use might look something like:
{list of products}
123=sauce
234=ham
456=chicken
etc
; just a wild guess, as I have no idea what you have in mind.

Then the scripts would use a series, probably in a while loop, of the 
INIRead... built in functions, to read the items in the list.

This would take a lot more work to set up then using text in a .jsm file, 
but no recompiling would be required after changes were made.

I use such a .ini file in my mainframe scripts, which is read on each start 
of jaws.  It has proven to be quite reliable, but is used for a quite 
different purpose than you have in mind, and the list of items is short.

** of course, the above comments re maintaining the structure of the file 
still apply. smile.

Regards,
Paul from Aust


----- Original Message ----- 
From: "Geoff personal" <gch@xxxxxxxxxxxxxxxx>
Scripters. just a quick question today. I realize I could very well probably
test this for myself,
but, could anyone tell me from the top of their heads,
whether the data in a jsm file, can be altered, and become live, directly
without recompiling the jsb?
or must the jss be recompiled to form a new jsb incorporating jsm data, for
it to become active?

I just need to establish whether a company is going to be able to update
data in a message file, containing a bunch of product/promotion codes which
can constantly change,
without my providing access to the jss codeBase.
Hense my queery?

thanks muchly for any input anyone knows.


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: