[jawsscripts] Re: Linking a file to the compiler, a similar query?

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 17 Nov 2013 16:31:34 -0600

I'm afraid not. All my tests indicate you can only feed absolute paths 
(I.E. "c:\\my_directory\\another_directory\\test.jsb") to "use". The 
user and shared settings directories are the only things searched by 
default. I suppose you could create a filter in your language of choice 
that expands environment variables and some relative paths 
(".\\test\\test.jsb" etc.) and then run your JSS files through that; but 
I no of no way to get these things interpolated by the JAWS script 
compiler. If there is a way, though, I would definitely be interested.

On 11/16/2013 11:41 PM, Paul Magill wrote:
> Hi all,
>
> Csaba has prompted me to follow up on a similar issue I've been chasing for
> a while, & it may also resolve Csaba'squestion.
>
> Is it possible to have Jaws apply one of the system environment variables?
>
> The one I would like to use is, AppData, which provides the path up to
> where Freedom Scientific begins as follows:
>
> C:\Users\admin\AppData\Roaming\Freedom Scientific\JAWS\13.0\Settings\enu
>
> Which is the path to my users folder at home, & the part from
> Freedom Scientific\JAWS\13.0\Settings\enu
> Is exactly the same at work, where the path up to that point is
> different,but importantly, the, appData,  environment variable always
> returns the correct path leading to the Freedom Scientific...
>
> I use the environment variable in the same  batch file to backup my user
> folder, both at home and at work.
>
> Now, if I can have the script compiler use an environment variable, then I
> can do similar things to what Csaba is looking at, by just changing the path
> after Freedom Scientific...
>
> Is there a way?
>
> Thanks,
> Paul from Australia
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Csaba Godo
> Sent: Sunday, 17 November 2013 8:51 AM
> To: JAWSScripts List
> Subject: [jawsscripts] Linking a file to the compiler
>
> Hi guys,
>
> I'm back in with a question. Now it concerns about the use and include
> directrives in JAWS Basic. Mmy question is whether they can accept only
> fully qualified pathes or not? I mean if it is somehow possible to use path
> string with them like in HTML pages, where it is not necessary to fuly
> qualify the path if it refers to a subdirectory of the directory where the
> actual page is located. Like this "../pages/x.jpg". I'm not at home in C
> programming, so I do not know how files can be linked into the compilation
> process.
>
> I would like to separate my scripts into two parts and place the reusable
> library scripts into a subdirectory of the common directory of JAWS. When I
> pass only the file name then the compiler looks for the referred file in the
> same directory where the JSS file, which refers to it is located. If I pass
> the fully qualified path, like the one  below, it works.
>
> This works: use "C:\\JFW Extensions\\Lib.Messages.jsb".
> But I'd like to put them into a subdirectory of the common JAWS directory,
> whose exact path is unknown.
>
> Thanks in advance for your help!
>
> Csaba
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>

__________�

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

Other related posts: