[REBOL] Re: Current script name? system/options/script
From: ryanc:iesco-dms at: 28-Jun-2001 11:15
>> system/options/script
== %/C/WINDOWS/Desktop/here.r
>> me: load/all system/options/script
== [rebol []
halt
]
>>
More below...
Just doesnt work from the console
Anton wrote:
> As far as I can see, it's supposed to be
> in system/options/script, but when I tried
> this, it only worked from a launched script.
>
> >> write %test.r {rebol [] probe system/options/script wait 4}
> >> launch %test.r ; you see console with "%test.r" appear
> >> do %test.r
> none
> == none
>
> Is that because the context is console or
> a bug?
>
I would say its because no script was ever initiated.
> Anton.
>
> > I'd like to implement a self-altering script with embedded data
> > (a la TclKit).
> >
> > Can I programmatically access the filename and path of the
> > running script? I found what-dir, but what I really need is what-script.
> >
> > Also, my plan was to parse my script and write it back out. Is
> > there a more elegant way to do this? Something like Perl's
> > Inline::File module would be great.
> >
> >
> > Thanks,
> >
> > John Sequeira
> > [johnseq--pobox--com]
> > http://www.pobox.com/~johnseq
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--Ryan
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400