Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Send/attach

 [1/20] from: Steven::White::ci::bloomington::mn::us at: 24-Nov-2003 15:08


I have REBOL/View 1.2.1.3.1 which seems to be the latest version. It tells me there is no "attach" refinement to the "send" function. On the REBOL web site, in the verb dictionary, there is an "attach" refinement mentioned. Is there a way to send an attachment, or is the documentation just a bit ahead of the implementation? Thank you. Steven White City of Bloomington 1800 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) [steven--white--ci--bloomington--mn--us]

 [2/20] from: maximo:meteorstudios at: 24-Nov-2003 16:31


core is at version 2.5.6 which is at the same level as (maybe even beyond) rebol/view BETA 1.2.10. wrt core functionality. you can download the beta on their site, just follow the links, you'll find it... -MAx --- You can either be part of the problem or part of the solution, but in the end, being part of the problem is much more fun.

 [3/20] from: AJMartin:orcon at: 24-Dec-2003 22:49


Steven wrote:
> Is there a way to send an attachment, or is the documentation just a bit
ahead of the implementation? Hi, Steven. I don't recall if anyone has answered your question.
>> help send
USAGE: SEND address message /only /header header-obj /attach files /subject subj /show DESCRIPTION: Send a message to an address (or block of addresses) SEND is a function value. ARGUMENTS: address -- An address or block of addresses (Type: email block) message -- Text of message. First line is subject. (Type: any) REFINEMENTS: /only -- Send only one message to multiple addresses /header -- Supply your own custom header header-obj -- The header to use (Type: object) /attach -- Attach file, files, or [.. [filename data]] files -- The files to attach to the message (Type: file block) /subject -- Set the subject of the message subj -- The subject line (Type: any) /show -- Show all recipients in the TO field
>> rebol/version
== 1.2.8.3.1 If you need this version, let the list know, and someone might send it to you. Andrew J Martin Speaking in tongues and performing miracles. ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/

 [4/20] from: SunandaDH:aol at: 26-Nov-2003 6:05


Steven wrote:
> Is there a way to send an attachment, or is the documentation just a bit
ahead of the implementation? In addition to Andrew's suggestions, there is Sterling's attach.r script that should work for older versions of REBOL : http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=attach.r Sunanda

 [5/20] from: carlos:lorenz:bol at: 26-Nov-2003 9:51


Andrew Sorry, are you talking about REBOL/Core ? If so I'd like to have a copy of this version too! Carlos

 [6/20] from: Steven:White:ci:bloomington:mn:us at: 26-Nov-2003 8:48


Well, that would help a bit if someone has that version. I am a bit confused about what is available. The REBOL download page shows 1.2.1.3.1 as the Windows version of VIEW. On the page linked as "recent beta version found here" the Windows version is called view1210031.exe. UNFORTUNATELY, what I REALLY need to do what I want to do (based on my understanding of the REBOL web site) is CORE 2.5.1 or later on AIX. According to the web site, this doesn't even exist. I have sent a feedback asking them if they could get the AIX version up to that level. In case y'all are curious, I have to tell you what I am up to because it is SO COOL. Thanks to advice from all of you, I have a plan to have a COBOL program on an RS6000 with AIX generate a custom REBOL script containing a data entry layout. The COBOL program will call REBOL/Core on AIX to email the script as an attachment. The recipient will double-click the attachment and up will pop a customized data entry screen for the data he is expected to send. He will fill in the form and hit a button, and REBOL/View at his computer will send the collected data back to another office, or perhaps FTP it to the RS6000 where its arrival could be detected automatically by a cron job. The only part I am unable to do is have REBOL on AIX send an attachment. Every time I get some little thing like this created, I am able to put REBOL on one more computer at the office--4 down, 496 to go.
>>> [AJMartin--orcon--net--nz] 11/26/03 05:00AM >>>
Steven wrote:
> Is there a way to send an attachment, or is the documentation just a
bit ahead of the implementation? Hi, Steven. I don't recall if anyone has answered your question.
>> help send
USAGE: SEND address message /only /header header-obj /attach files /subject subj /show DESCRIPTION: Send a message to an address (or block of addresses) SEND is a function value. ARGUMENTS: address -- An address or block of addresses (Type: email block) message -- Text of message. First line is subject. (Type: any) REFINEMENTS: /only -- Send only one message to multiple addresses /header -- Supply your own custom header header-obj -- The header to use (Type: object) /attach -- Attach file, files, or [.. [filename data]] files -- The files to attach to the message (Type: file block) /subject -- Set the subject of the message subj -- The subject line (Type: any) /show -- Show all recipients in the TO field
>> rebol/version
== 1.2.8.3.1 If you need this version, let the list know, and someone might send it to you. Andrew J Martin Speaking in tongues and performing miracles. ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/

 [7/20] from: rotenca:telvia:it at: 26-Nov-2003 16:53


Hi,
> Well, that would help a bit if someone has that version. I am a bit > confused about what is available. The REBOL download page shows
<<quoted lines omitted: 5>>
> have sent a feedback asking them if they could get the AIX version up to > that level.
Download a recent version of View (1.2.10) or Core for a system you have (windows , linux). Install it. Now make: source send-mail copy the output and paste it in your code Then make: source build-attach-body copy the output and paste it in your code Now your code should work on AIX. Or ask someone to send the missing code via email. --- Ciao Romano

 [8/20] from: Steven:White:ci:bloomington:mn:us at: 26-Nov-2003 11:45


Romano, THANK YOU! So parts of REBOL are written in...REBOL! Those RT guys are quite the hackers. A few items: 1. My cutting and pasting operation broke a couple long lines into two lines, and caused some syntax errors. I was able to fix that. 2. In your note I believe you meant "source send" instead of "source send-mail." I got by that also. 3. The code contained a "now/precise" which seems to not exist in my AIX REBOL. The "precise" refinement seemed to be non-essential, so I just deleted it, leaving only "now." 4. You also seem to need "source context" to make it syntax-error-free. I copied that just the way I copied the other two function. Everything worked. I can send an email from an RS6000 to a desktop computer, with a REBOL/View script as an attachment, and when the recipient double-clicks the attachment the script runs at the recipient's desktop computer.
>>> [rotenca--telvia--it] 11/26/03 09:53AM >>>
Hi,
> Well, that would help a bit if someone has that version. I am a bit > confused about what is available. The REBOL download page shows > 1.2.1.3.1 as the Windows version of VIEW. On the page linked as
recent
> beta version found here
the Windows version is called
> "view1210031.exe." UNFORTUNATELY, what I REALLY need to do what I
want
> to do (based on my understanding of the REBOL web site) is CORE 2.5.1
or
> later on AIX. According to the web site, this doesn't even exist.
I
> have sent a feedback asking them if they could get the AIX version up
to
> that level.
Download a recent version of View (1.2.10) or Core for a system you have (windows , linux). Install it. Now make: source send-mail copy the output and paste it in your code Then make: source build-attach-body copy the output and paste it in your code Now your code should work on AIX. Or ask someone to send the missing code via email. --- Ciao Romano

 [9/20] from: nitsch-lists:netcologne at: 26-Nov-2003 19:47


Am Mittwoch, 26. November 2003 18:45 schrieb Steven White:
> Romano, > > THANK YOU! > > So parts of REBOL are written in...REBOL! Those RT guys are quite the > hackers. >
Eventually RT should mention that more?
> A few items: > > 1. My cutting and pasting operation broke a couple long lines into two > lines, and caused some syntax errors. I was able to fix that. >
echo %sourcecollection.r then every rebol-output will be written to file too. so typing all the "source something" gives you a nice editable file.
> 2. In your note I believe you meant "source send" instead of "source > send-mail." I got by that also. > > 3. The code contained a "now/precise" which seems to not exist in my > AIX REBOL. The "precise" refinement seemed to be non-essential, so I > just deleted it, leaving only "now." >
now/precise has fractions of a second (lots of digits. don't know if the internal clock is really that precise). Usefull for benchmarking, or when you need unique keys. if second-precision is ok, no problem.
> 4. You also seem to need "source context" to make it > syntax-error-free. I copied that just the way I copied the other two > function. >
Right. Another usefull is 'attempt, while you are at getting stuff ;) -Volker

 [10/20] from: rotenca:telvia:it at: 26-Nov-2003 20:10


Hi Steven,
> A few items: > > 1. My cutting and pasting operation broke a couple long lines into two > lines, and caused some syntax errors. I was able to fix that. > > 2. In your note I believe you meant "source send" instead of "source > send-mail." I got by that also.
yes, it was to give you an idea, i did not test it.
> 3. The code contained a "now/precise" which seems to not exist in my > AIX REBOL. The "precise" refinement seemed to be non-essential, so I > just deleted it, leaving only "now."
Now cannot be changed, is a native functions, this means that code is not written in Rebol, functions that are written in Rebol are of the datatype function!.
>> type? :send
== function!
>> type? :now
== native! This seems strange to me, because now/precise was already in 1.2.1: REBOL/View 1.2.1.3.1 21-Jun-2001 Copyright 2000-2001 REBOL Technologies. All rights reserved. REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
>> now/precise
== 26-Nov-2003/20:08:03.36+1:00 But i agree, this should not be a great problem.
> 4. You also seem to need "source context" to make it > syntax-error-free. I copied that just the way I copied the other two > function.
Also this seems strange to me, context was already in the 1.2.1 version, but it cannot do bad (it is only a shortcut for make object! But what version has reached View in the AIX environment? --- Ciao Romano

 [11/20] from: greggirwin:mindspring at: 26-Nov-2003 12:56


Hi Steven, SW> So parts of REBOL are written in...REBOL! Those RT guys are quite the SW> hackers. Indeed. Try "Help function!" in the console to see just how much. Excellent that you got it all working too! Sounds pretty cool. --Gregg

 [12/20] from: Steven:White:ci:bloomington:mn:us at: 26-Nov-2003 14:17


>>> [rotenca--telvia--it] 11/26/03 01:10PM >>> >>>But what version has reached View in the AIX environment?
View for AIX seems to be at 1.2.1.17. I do not use View on AIX because I want to run REBOL from a shell script. Running Core from a shell script works, but if I try to run View from a shell script it tries to start an X-server, which I don't want. So I have just Core (2.3) on AIX. Of course, IF View 1.2.1.17 has Core 2.5.1 or higher AND it were possible to use View to run a script without trying to open a window, THEN I could get the latest View on AIX and use that, instead of Core only. I have tried that, and it seems not to work. Steven White City of Bloomington 1800 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) [steven--white--ci--bloomington--mn--us]

 [13/20] from: maximo:meteorstudios at: 26-Nov-2003 15:25


> -----Original Message----- > From: Gregg Irwin [mailto:[greggirwin--mindspring--com]]
<<quoted lines omitted: 6>>
> SW> hackers. > Indeed. Try "Help function!" in the console to see just how much.
I've done this many times, but in version 1.2.10 I see these promising functions... its the first Time I notice them, they may be there since v1.2.1 ?! viewed? function! Returns TRUE if face is displayed. what function! Prints a list of globally-defined functions. win-offset? function! Given any face, returns its screen absolute offset... within? function! Return TRUE if the point is within the rectangle b... -Max

 [14/20] from: SunandaDH:aol at: 26-Nov-2003 15:38


Max:
> its the first Time I notice them, they may be there since v1.2.1 ?! > viewed? function! Returns TRUE if face is displayed.
<<quoted lines omitted: 3>>
> within? function! Return TRUE if the point is within the > rectangle b...
All in the 1.2.1.3.1 I've got. Not that I'd ever noticed 'what before either... ....We need to be able to do something like: print difference version 1.2.1 version 1.2.10 Where version is some near little function that accesses the help for that version. Sunanda.

 [15/20] from: maximo:meteorstudios at: 26-Nov-2003 16:04


> Max: > > its the first Time I notice them, they may be there since v1.2.1 ?!
<<quoted lines omitted: 13>>
> ....We need to be able to do something like: > print difference version 1.2.1 version 1.2.10
yess a general purpose diff tool is something I am itching to do as part of STEEL|FORGE for quite some time, but I've got a roadmap and I'm sticking to it. I was planning on being able to diff any-series! types. :-) current STEEL roadmap: --------------------- slim release v1.0 retools - remake, reclip liquid v1 release liquid-vid clean (but still beta) forge nugget glass so you see, there is quite some effort before STEEL|FORGE (although I'm starting to code more often again, winter is nearing its ugly head...nothing much to do at -20 degres outside... except maybe shoveling snow ;-) -MAx

 [16/20] from: g:santilli:tiscalinet:it at: 26-Nov-2003 22:07


Hi SunandaDH, On Wednesday, November 26, 2003, 9:38:58 PM, you wrote: Sac> Not that I'd ever noticed 'what before either... I'm not sure about Core 1.0, but it surely was there at Core 2.0. :) Sac> ....We need to be able to do something like: Sac> print difference version 1.2.1 version 1.2.10 http://www.rebol.it/~romano/#sect4. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [17/20] from: rotenca:telvia:it at: 26-Nov-2003 22:31


Hi,
> ....We need to be able to do something like: > > print difference version 1.2.1 version 1.2.10 > > Where version is some near little function that accesses the help for that > version.
In the meanwhile you can try: http://www.rebol.it/%7Eromano/#sect4.1. --- Ciao Romano

 [18/20] from: SunandaDH:aol at: 27-Nov-2003 5:54


Thanks Gabriele,
> Sac> ....We need to be able to do something like: > > Sac> print difference version 1.2.1 version 1.2.10 > > http://www.rebol.it/~romano/#sect4.
Neat! And useful, Sunanda.

 [19/20] from: rotenca:telvia:it at: 27-Nov-2003 16:45


Hi,
> View for AIX seems to be at 1.2.1.17. I do not use View on AIX because > I want to run REBOL from a shell script. Running Core from a shell
<<quoted lines omitted: 4>>
> THEN I could get the latest View on AIX and use that, instead of Core > only. I have tried that, and it seems not to work.
Oh! AIX sems the only Core stopped at 2.3 version! I have not AIX so i can't say, but from what i read, seems that View needs X from startup. This page lists differences in global functions betwween core 2.3.0 and core 2.5.6: http://www.rebol.it/%7Eromano/make_func_diff_2.5.6.3.1-2.3.0.3.1.html i should like to add a 256/250 diff, but i have not that version of Core for Windows. I think that a compatibilty layer for 2.3 can be built copying these functions: 1.1. alter 1.2. attempt 1.3. build-attach-body 1.4. build-markup 1.5. component? 1.7. context 1.10. decode-url 1.11. dispatch 1.12. dump-obj 1.15. extract 1.19. has 1.30. set-user-name 1.32. sign? 1.35. suffix? Obviously, many functions (native or not) can have more refinements, different argument types or bug fixed, but this has not been checked in the above page. For example, i should try to copy the new Help function (and the Send function :-). --- Ciao Romano

 [20/20] from: bry:itnisk at: 27-Nov-2003 21:37


> > > > So parts of REBOL are written
in...REBOL! Those RT guys are quite the
> > hackers. > > > > Eventually RT should mention that more? >
right, at least part of rebol is improvable source :)

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted