Harvey -
so, the users already have J installed? I guess from the other answers and
your response, you only need to know how to associate a J app with a
clickable icon. If that's the case, it's easy enough.
For example, I have the command line
"C:\Program Files\j602\bin\SetAlarm.exe" -jijx alarmMsg.ijs
associated with an icon on my desktop. The odd-looking "SetAlarm.exe" is
just a copy of "j.exe" with a distinctive name so I can tell it apart from
my other J apps in Windows Task Manager.
At the end of the "alarmMsg.ijs" file, I have something like this
3 : 0 ''
try. onlyRuntimeSetAlarm ''
catch.
NB. Error-logging handled here...
end.
)
which runs the script wrapped in some logic to only kick off if invoked with
no session window. This logic looks something like this:
onlyRuntimeSetAlarm=: 3 : 0
NB.* onlyRuntimeSetAlarm: only invoke if not loaded via interactive session.
if. (<'-jijx') e. 5&{.&.>tolower&.>ARGV_z_ do.
NB. Either run main script here or show what the command line looked like.
else. smoutput 'ARGV_z_: ',;ARGV_z_,&.>' ' [ wait 1
end.
)
This "runtime-only" logic is handy so I can load the script in a session for
testing without kicking off the app.
Hope this is useful,
Devon
On Mon, Feb 9, 2009 at 3:39 PM, Hahn, Harvey <[email protected]> wrote:
> Devon McCormick wrote:
> |Why not install J and run your scripts as you would do with many other
> |packages?
>
> I don't understand your question.
>
> A GUI click to trigger the application is what clerical staff "would do
> with many other packages"--and that's not how J scripts natively work.
> I can't ask them to start up the J .ijx window and then type in command
> lines to make things happen--they would strongly balk at that because
> it's not how typical applications these days work.
>
> Harvey
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm