Does anyone have working versions of logger.ijs (http://
www.jsoftware.com/jwiki/Scripts/Logger) and WS.ijs (http://
www.jsoftware.com/jwiki/Scripts/File_J_Variables) or know how to fix
them (or know if I'm doing something wrong?)?
WS.ijs execution gives:
load '/Users/ihf/Desktop/WS.ijs'
[mailto:[EMAIL PROTECTED] On Behalf Of Fuchs Ira
Does anyone have working versions of logger.ijs (http://
www.jsoftware.com/jwiki/Scripts/Logger) and WS.ijs (http://
www.jsoftware.com/jwiki/Scripts/File_J_Variables) or know how
to fix them (or know if I'm doing something wrong?)?
Both of
I reset Parameters to permit x. and y. as suggested.
Now I get:
load '/Users/ihf/Desktop/logger.ijs'
logMsg_logger_ 'Show this text '
|domain error: getTempPath
| td=.2{getTempPath 256;256$' '
--
For information
Is getTempPath defined? It's a Windows-only API definition.
On 7/9/07, Ira Fuchs [EMAIL PROTECTED] wrote:
I reset Parameters to permit x. and y. as suggested.
Now I get:
load '/Users/ihf/Desktop/logger.ijs'
logMsg_logger_ 'Show this text '
|domain error: getTempPath
| td=.2{
[mailto:[EMAIL PROTECTED] On Behalf Of Ira Fuchs
I reset Parameters to permit x. and y. as suggested.
Now I get:
load '/Users/ihf/Desktop/logger.ijs'
logMsg_logger_ 'Show this text '
|domain error: getTempPath
| td=.2{getTempPath 256;256$' '
I haven't used Logger before, but
That would explain it. I was hoping to use these scripts on a Mac. I
didn't realize they were platform-dependent.
On Jul 9, 2007, at 8:02 PM, Devon McCormick wrote:
Is getTempPath defined? It's a Windows-only API definition.
On 7/9/07, Ira Fuchs [EMAIL PROTECTED] wrote:
I reset
[mailto:[EMAIL PROTECTED] On Behalf Of Ira Fuchs
That would explain it. I was hoping to use these scripts on a
Mac. I didn't realize they were platform-dependent.
I'm pretty sure the only bit that is platform-dependent it the setting
of the tempdir (in verb todayfile).
If you manually set
Thanks! That worked fine for logger but I have a new problem using
WS.ijs:
load '/Users/ihf/Documents/J Books/J Scripts/WS.ijs'
saveAllVars '/Users/ihf/j601/temp/'
|value error: dsp
| nmlst=.;._1' ',dsp,(names__ 0),1' '
On Jul 9, 2007, at 8:27 PM, Sherlock, Ric wrote:
You could re-define getTempPath with a hard-coded path of a temporary
directory area as a work-around. Something like:
getTempPath=: 3 : '_3{.''mytempdir'''
where mytempdir is replaced with some temp directory that works for you.
On 7/9/07, Sherlock, Ric [EMAIL PROTECTED] wrote:
There are some general utilities at the end of WS.ijs that are commented out
but perhaps should not be - I'll fix the existing wiki reference but for
now, these are as follows:
dsp=: deb[EMAIL PROTECTED]1
isNum=: 3 : '0=1{.0$,y.' NB. 1 if numeric arg
nameExists=: 0:_:[:4!:0 ^:(L.=0:) NB. 1 if
Note that should be
f2v=: 3 : 0
NB.* f2v: File to Vector: read file - vector of lines.
vec=. l2v 1!:1 y.
)
Thanks for using these - some of these problems are because I use general
utilities that I keep in other files but have included them in the
distributed file
for completeness. However,
11 matches
Mail list logo