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

help with mail attachments please

 [1/3] from: dk-photo:home at: 11-Aug-2001 12:26


Porter Woodward wrote:
> - but I do recall as there was some way to >invoke apps with parameters from within AppleScript. It may simply be >that you'll want to create a wrapper in AppleScript to call REBOL scripts.
That is PRECISELY what I need to do, and exactly what Rebol cannot do. And BTW, the lack of a command line in Mac OS 9.x is not the problem. (I have 1 Windblows, and 2 Linux boxes on my desk, and harbor no "Mac is the only computer in the world" illusions.) What I need is not a command line. I want this solution operator-free and completely automated. I need one running program/script to be able to call a dormant, non-running script (Rebol) into action. Since that CAN be done on *nix, the problem on the Mac doesn't have anything to do with "market share", or shouldn't. Either this "universal" messaging language is really universal or it isn't. If you CAN activate it with calls from other software on some, but not all OS's, then it is NOT universal. Sorry to be so strident in my postings, but I long ago lost count, and lost my patience, with languages that make big promises they never fulfill and then disappear almost overnight. It is infuriating to spend money on books and time on learning a language, only to discover it was all a big waste of time. <TEASE ON> You mentioned that Rebol needs as much as a 70 meg partition on a Windblows machine, and the Mac might have similar problems because of its poor memory management?! It seems to me that any 300+ K app that needs a 70 meg partition may have more than a little poor memory management of its own! </TEASE OFF> David Kachel theMac Workshop http://www.macworkshop.net Democracy is five wolves and a sheep voting on what to have for dinner. Liberty is a well-armed sheep contesting the election. -unknown They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. -Benjamin Franklin Millions of sniveling cowards shivering in the corner, begging government to protect them from every threat, real and imagined, have stolen liberty from the rest of us. A government drunk with power, gleefully complies. -David Kachel ...(paraphrasing Benjamin Franklin)

 [2/3] from: tim:johnsons-web at: 11-Aug-2001 12:00


On Sat, Aug 11, 2001 at 12:26:35PM -0600, David Kachel wrote:
> Sorry to be so strident in my postings, but I long ago lost count, and > lost my patience, with languages that make big promises they never > fulfill and then disappear almost overnight. It is infuriating to spend > money on books and time on learning a language, only to discover it was > all a big waste of time.
Hi David: I'll agree that sometimes it seems that RT has "appeared" to market more than it can deliver, and bugs seem to persist, but even if rebol will not work for this particular project, it is likely that you will find other uses for it. I've actually found that rebol is great for "prototyping" and testing algorithms, which I have then implemented in C/C++, and learning rebol has actually improved my "C" coding. Now if I can just find a way to write a C preprocessor macro to express mybigobj->smallerobj->somemethod as mybigobj/smallerobj/somemethod
> "Democracy is five wolves and a sheep voting on what to have for dinner. > Liberty is a well-armed sheep contesting the election." > > -unknown
Well put! You don't suppose Robert Heinlein wrote that do you? Tim

 [3/3] from: g:santilli:tiscalinet:it at: 14-Aug-2001 13:00


Hello David! On 11-Ago-01, you wrote: DK> I need one running program/script to be able to call a DK> dormant, non-running script (Rebol) into action. By "dormant", you mean a process waiting to be awaken, or really launchung a new process? If the former, REBOL will do it even on MacOS. If the latter, it is just that MacOS (as I understand from your and others posts) requires REBOL to support AppleScript, which is probably something too big for RT to do it provided the market share. Again, if MacOS supported easier ways to launch an application with arguments, there wouldn't be any issue. AmigaOS has an even lower market share than MacOS, but it was done well so REBOL does not need special code to get args. I mean, if I would compile the following C code on the MacOS: int main(int argc, char **argv) { printf("Got %d arguments.\n", argc); } how could I pass arguments to it? If this is not possible, then MacOS is broken. DK> Sorry to be so strident in my postings, but I long ago lost DK> count, and lost my patience, with languages that make big DK> promises they never fulfill and then disappear almost I have found languages like that. REBOL, instead, has done for me much, much more than what it promised. I can write applications that will run on almost any platform out there with no changes. And this does not require a 50Mb download. DK> You mentioned that Rebol needs as much as a 70 meg partition (Windows, as bad as it is, does not have "memory partitions". This is another stupid thing from MacOS.) Yes, REBOL/View can take up a lot of memory. This is because of the way it handles graphics. If you know it well, you can code so that this does not happen. DK> on a Windblows machine, and the Mac might have similar DK> problems because of its poor memory management?! It seems to Probably the script you were trying for attachments was not written with big files in mind. Usually, one reads the entire file in memory and then processes it. If this processing requires copying the file data around, you'll easily get to consume 3-4x the size of the file. Using a port instead of reading the file all at once will fix this. Of course REBOL could have a smart memory management and read things incrementally, but this would probably be a pain to be implemented so that it works on all platforms. So, it's much better to let the programmer decide (this leads to more efficiency, too). If you don't know how to make your script consume less memory, you will probably find people on this list wanting to help. BUT, you won't get anything with that attitude. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/