[REBOL] Re: do %image.png

2001-11-15 Thread Jason Cunliffe
Thanks everyone... Ryan and Gabriele both suggested I put my script in a block, and Ryan noted a bug where that the outer block needs to be preceeded by ^/ or #{0A}. Unfortunately this strategy still does not work inside a binary file. Nice try ;-) Maybe next version ?? do %buddha_inablock.png

[REBOL] Re: do %image.png

2001-11-15 Thread Ingo Hohmann
Hi Jason, Ryan, Once upon a time Jason Cunliffe spoketh thus: Ryan Cole [EMAIL PROTECTED] wrote Should be even easier than that. Just insert something like this into it... REBOL[] confirm This is a test. halt Just make sure you have the code enveloped in linefeeds. REBOL was

[REBOL] Re: do %image.png

2001-11-15 Thread Jason Cunliffe
Hi Ingo Rebol was designed to be run when imbedded into other data, e.g. you can run a script directly from an email, without having to clean it first. within ascii text yes. So, you can 'do %image.png if the script itself is stored in normal ASCII within the binary data, but it Won't

[REBOL] Re: do %image.png

2001-11-15 Thread Ryan Cole
SNIP Are you saying REBOL do currently parses a binary automatically, and looks for text containing script in a block ? ^/[REBOL[]print here's looking at you from inside image.png] I would be surprised and very delighted if this is true now. Somebody show me an example please! /SNIP Yes

[REBOL] Re: do %image.png

2001-11-15 Thread Ryan Cole
Jason Cunliffe wrote: SNIP wishlist examples do %somescript.r do %image.png ; runs a default implied do/binary refinement do/binary %image.png png-options png-options might load a config file binary-png.r similar to user.r for tuning the response of do/binary do/binary

[REBOL] Re: do %image.png =YES!!!

2001-11-15 Thread Jason Cunliffe
I would be surprised and very delighted if this is true now. Somebody show me an example please! /SNIP Yes this is true. Here is your example below. Unfortuneately I could not find any good binary candidates because they had nulls in the beginnings, so I just demonstrated at the

[REBOL] Re: do %image.png

2001-11-14 Thread Ryan Cole
Should be even easier than that. Just insert something like this into it... REBOL[] confirm This is a test. halt Just make sure you have the code enveloped in linefeeds. REBOL was designed to do this already. --Ryan Jason Cunliffe wrote: do %image.png My objective is to implement a

[REBOL] Re: do %image.png

2001-11-14 Thread Jason Cunliffe
buddha.png is a PNG image file with a REBOL script embedded in it. http://www.postcardscience/rebol/buddha.png oops.. sorry try: http://www.postcardscience.net/rebol/buddha.png ^^^ ./Jason -- To unsubscribe from this list, please send an email to [EMAIL

[REBOL] Re: do %image.png

2001-11-14 Thread Jason Cunliffe
Ryan Cole [EMAIL PROTECTED] wrote Should be even easier than that. Just insert something like this into it... REBOL[] confirm This is a test. halt Just make sure you have the code enveloped in linefeeds. REBOL was designed to do this already. Hi Ryyan I don't quite understand you.

[REBOL] Re: do %image.png

2001-11-14 Thread Ryan Cole
Hey Jason, I was mistaken in that my last example only worked well in a prefaced situation. What you really want is this: garblyjunkbinaryfile [ REBOL [] confirm This is a test. ] garblyjunkbinaryfile There is a problem I discovered, a bug probably. Seems that the null characters in

[REBOL] Re: do %image.png

2001-11-14 Thread Porter Woodward
read and what not though. But - it'd avoid you having to scan thru the file for an identifier. - Porter - Original Message - From: Ryan Cole [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 5:29 PM Subject: [REBOL] Re: do %image.png Hey Jason, I was mistaken