[jawsscripts] Re: Use statements and .jsd processing

A file that just contains Use lines should have a "filler" function in
it somewhere, because some JAWS versions will not act properly on a
script file that is too short:  It will compile, but it will act as if
it were not loaded, which means that everything it was supposed to
load will not load either.  I typically put something in like this:

void function _filler()  ; note the leading underscore
return
endFunction

A Use line should find user-folder jsb files and also shared-folder
jsb files where there's no same-named one in the user folder.

Jsd file processing does not affect jkm assignment processing at
runtime.  If you have a keystroke that isn't finding its script,
suspect the script file of not loading at runtime.

You will have compile-time issues if you start nesting Use statements
more than a level deep.  For example, if app.jss Uses app1.jss, and
app1.jss Uses app2.jss, and app2.jss contains a function that returns
a string, and finally if app.jss calls that function, it may not
compile.  This is because app1.jss' Use line will not cause the
compiler to scan app2.jsd while compiling app.jss.

On Tue, Sep 30, 2008 at 10:53:30AM -0400, Jamal Mazrui wrote:
I have an application.jss that is basically a container for Use
"Component.jsb" statements.  Multiple components include Script
definitions with assignments in application.jkm.  I have not figured out
the pattern yet, but some of these scripts are not being found by JAWS.
It gives an error message when the key is pressed about not finding the
associated script name.

Can anyone share tips on how to make such container files as robust as
possible?  Does JAWS process each component.jsd file?  Are such .jsd files
necessary for JAWS to find scripts referenced by a Use statement.  Is it
better to have a single application.jsd file that combines all the
component.jsd files?  Should JAWS find an FS-supplied component.jsd file
in the shared folder, or should a copy be put in the user folder?

Jamal

__________?
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

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________ 
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: