> [mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric
> Hmmm... I see one issue with this change is that the other
> actions available on the form need to be adjusted to cope
> with multiple selections too.
>
So the following changes mean that no buttons are broken. "Open" &
"View" work fine, whereas "Run" and "Run Display" act just on the first
script selected.
The thing I don't understand is the role of the immex commands. What is
their purpose? Why can't the functions just be run without them? Do they
just ensure the load & loadd commands appear in the ijx window?
jrecent_open_button=: 3 : 0
if. #lb do.
lb=. jpath each LF cutopen lb NB. lb=. jpath lb
if. 0 = ifshiftkey'' do. jrecent_close'' end.
open_j_ lb NB. runimmx0_jijs_ 'smopen_jijs_ ''',lb,''''
end.
)
jrecent_view_button=: 3 : 0
require 'jview'
if. #lb do.
lb=. jpath each LF cutopen lb NB. jpath lb
if. 0 = ifshiftkey'' do. jrecent_close'' end.
wdview@> 1!:1 each <"0 lb NB. runimmx0 'wdview 1!:1 < ''',lb,''''
end.
)
jrecent_run_button=: 3 : 0
if. #lb do.
lb=. >{. jpath each LF cutopen lb NB. jpath lb
if. 0 = ifshiftkey'' do. jrecent_close'' end.
runimmx1 'load ''',lb,''''
end.
)
jrecent_rund_button=: 3 : 0
if. #lb do.
lb=. >{. jpath each LF cutopen lb NB. jpath lb
if. 0 = ifshiftkey'' do. jrecent_close'' end.
runimmx1 'loadd ''',lb,''''
end.
)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm