This may be something obvious to hardened Windows J users, but I
couldn't find anything on the forums or the Wiki, so I thought I'd post
it.
 
I often find myself browsing through folders containing *.ijs files in
Windows Explorer and wanting to see what was in a script. Registering
*.ijs files so j.exe starts and loads them, isn't too hard (I think this
might be done during installation but I'm not sure?). The command line
that runs is:
"C:\progra~1\j601\j.exe" "%1"

[You can find this as follows:
  From and Explorer window: Tools/Folder Options/File Types/
  Select "IJS" from Registered file types
  Click on Advanced and Edit the "open" action
]

Unfortuately on my system this action has the default Windows name of
"open" when, from a J point of view, it is actually a load. What I
really wanted was for j.exe to start & just open the script file.
After a bit of reading & experimentation I found that the following
command line would do just that. 
"C:\progra~1\j601\j.exe" -js "open '%1'"

I renamed the existing action to "load" and created a new action called
"open" with the above command line in the "Application used to perform
action" edit box.

Now when I right click on a *.ijs file in Explorer, I'm given the option
to open or to load it. I'm happy. 
(Well almost! At the moment each script I "open" starts a new copy of
J.exe. This has advantages but sometimes I'd like to have them opened by
one copy. The other thing that I tried was dragging & dropping script
file(s) on an open *.ijx window but that obviously isn't supported)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to