From jbv.silences at Club-Internet.fr Mon Dec 1 04:26:05 2003 From: jbv.silences at Club-Internet.fr (jbv) Date: Mon, 01 Dec 2003 10:26:05 +0100 Subject: Writing PDF files from RunRev References: <20031201004107.13471.qmail@web40513.mail.yahoo.com> Message-ID: <3FCB0928.2F98A4F@Club-Internet.fr> Alejandro, > > > I haven't visited the link, but have some > > experience writing PDF files from Metacard. > > Wonderful! Have you exported to pdf the full content > of a field, a card or a whole stack? Take it easy... ;-) It actually began more than 2 years ago on the MC list when I helped Monte Goulding (sp?) generating PDF files for one of his projects. I guess Monte also worked a lot on exporting data as PDF, and that he might be of some help as well (if not too busy)... As for me, it's been more than 1.5 years since the last time I tweaked some PDF in MC... AFAIR it was in a CGI script : requests sent from a form on a web page were extracting data from a database and exporting them on the fly as PDF for download. AFAIR I used "templates" (PDF files made in Illustrator) featuring keywords, and the replace cmd was used to insert accurate data in the file that was then saved as PDF. Before saving, I had to change in the trailer the number of bytes in the file, otherwise it would generate an error when opening the file, and AFAIR some versions of Acrobat Reader on some platforms even refused to open it. IMHO "exporting a card or a whome stack" as PDF is not the best way to approach the problem. I mean : we're talking of completely different languages / environments. So I guess the best is to : - decide how you want your data to be displayed in PDF - build one (or several) PDF templates - write a "PDF export" handler that picks data (field content, etc) in your stack and insert it in the PDF file - fine tune your PDF file (according to the data inserted) and save it. Probably a more general PDF library could be created, but I doubt it will cover all needs... > > For this reason, I'm interested to know if the > code of this site still works. > > > > Maybe it does not works for me because the wrong > line endings or because it had to be written > as binary data. > > > the more closely your file follows the PDF > > format requirements, the better. > > I agree, but my experience writing > binary data is NULL... :(( > Sorry I'm too busy right now to check this code (PDF code is totally off my head right now). Nevertheless, I would suggest that you don't spend too much time debugging code made by others. You'd better write your own code, following the PDF tutorial reference. Another solution is to produce PDF files from Illustrator, and see if they work fine. Last but not least : IMHO you don't need to bother with binary data. There are actually 2 types of PDF files : compressed and uncompressed. Uncompressed files (like those produced by Illustrator) are just ASCII (and if you study them carefully you will see how close PDF is from PostScript). In all my PDF teakings with MC, I always used uncompressed format. The only drawback is that you'll have to deal with HUGE files sometimes... JB From malte.brill at t-online.de Mon Dec 1 04:50:52 2003 From: malte.brill at t-online.de (Malte Brill) Date: Mon, 01 Dec 2003 10:50:52 +0100 Subject: Bottleneck Graphic card in animations ? Or am I doing something wrong??? In-Reply-To: <20031201092611.1A4A093006D@mail.runrev.com> Message-ID: Hi list, I wrote that I am about finishing my first game a few days ago, but now I run into some serious trouble. I?ve been writing this game for a few days now and it works pretty smoothly on my G4 400 Mac, way too fast on my brothers 2.4 GHz Wintel machine (so i put a "brake" into it and is unplayable on my girls 1.0 GHz wintel machine because it is not scrolling smoothly and displaying animations very slowish. But: My gamesprite (moved by the arrow keys) is moving very fast on my girls machine also... Could this be because she has only an onboard Graphic card with 16 MB Video memory? You might take a look at the stack @ http://www.derbrill.de/revstack/jump4joy.rev.zip the stack is quite biggish (about 1 MB) (I hope you don?t mind that the script is looking quite chaotic, I haven?t cleared it up too much yet.) The main game script is in the button "los" If I can?t get it working better I can?t release it for windows and I am afraid it won?t work too good on older Macs either... Any ideas? Malte From jbv.silences at Club-Internet.fr Mon Dec 1 05:18:07 2003 From: jbv.silences at Club-Internet.fr (jbv) Date: Mon, 01 Dec 2003 11:18:07 +0100 Subject: Seminar References: Message-ID: <3FCB1559.D5E9A97E@Club-Internet.fr> Heather, > Dear Listee, > > I'm delighted to tell you that the first ever Revolution Seminar will be > held in San Francisco, in association with MacWorld. > Are you planing to video tape it and post it (at least an edited version of the best parts) on the RR website ? I'm sure all the poor guys who can't make it to SF would apreciate that... JB From 3mcgrath at adelphia.net Mon Dec 1 07:26:53 2003 From: 3mcgrath at adelphia.net (Thomas J McGrath III) Date: Mon, 1 Dec 2003 07:26:53 -0500 Subject: Writing PDF files from RunRev In-Reply-To: <3FCB0928.2F98A4F@Club-Internet.fr> References: <20031201004107.13471.qmail@web40513.mail.yahoo.com> <3FCB0928.2F98A4F@Club-Internet.fr> Message-ID: PDF = Postscript Definition Format(File) On Dec 1, 2003, at 4:26 AM, jbv wrote: > (and if you study them carefully you > will see how close PDF is from PostScript). > JB > Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 2.1.2 Advanced Media Group Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net 220 Drake Road, Bethel Park, PA 15102 From jbv.silences at Club-Internet.fr Mon Dec 1 07:47:05 2003 From: jbv.silences at Club-Internet.fr (jbv) Date: Mon, 01 Dec 2003 13:47:05 +0100 Subject: Writing PDF files from RunRev (drifting OT) References: <20031201004107.13471.qmail@web40513.mail.yahoo.com> Message-ID: <3FCB383F.C49286BD@Club-Internet.fr> Definition: Acronym for Portable Document Format, the PDF file format created by Adobe Systems, Inc. uses the PostScript printer description language and is highly portable across computer platforms. http://desktoppub.about.com/library/glossary/bldef-pdf.htm Nevertheless, there are some huge differences between PDF and PS (like the use of dictionnaries AFAIR). JB > PDF = Postscript Definition Format(File) > > On Dec 1, 2003, at 4:26 AM, jbv wrote: > > (and if you study them carefully you > > will see how close PDF is from PostScript). > > JB > > > > Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev > 2.1.2 > > Advanced Media Group > Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net > 220 Drake Road, Bethel Park, PA 15102 > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From malte.brill at t-online.de Mon Dec 1 08:37:26 2003 From: malte.brill at t-online.de (Malte Brill) Date: Mon, 01 Dec 2003 14:37:26 +0100 Subject: Bottleneck Graphic card in animations ? Or am I doing something wrong??? In-Reply-To: <20031201092611.1A4A093006D@mail.runrev.com> Message-ID: I made some changes to the stack... Seems to work better to use send in xx milliseconds than to use send in xx ticks. Also I?ve thrown out a few graphics. http://www.derbrill.de/revstack/jump4joy2.rev.zip the stack is quite biggish (about 1 MB) Regards, Malte From 3mcgrath at adelphia.net Mon Dec 1 09:36:52 2003 From: 3mcgrath at adelphia.net (Thomas J McGrath III) Date: Mon, 1 Dec 2003 09:36:52 -0500 Subject: Writing PDF files from RunRev (drifting OT) In-Reply-To: <3FCB383F.C49286BD@Club-Internet.fr> References: <20031201004107.13471.qmail@web40513.mail.yahoo.com> <3FCB383F.C49286BD@Club-Internet.fr> Message-ID: OOHHH On Dec 1, 2003, at 7:47 AM, jbv wrote: > Definition: Acronym for Portable Document Format, the PDF file format > created > by Adobe Systems, Inc. uses the PostScript printer description language > and is > highly portable across computer platforms. > http://desktoppub.about.com/library/glossary/bldef-pdf.htm > > Nevertheless, there are some huge differences between PDF and PS > (like the use of dictionnaries AFAIR). > > JB > >> PDF = Postscript Definition Format(File) >> >> On Dec 1, 2003, at 4:26 AM, jbv wrote: >>> (and if you study them carefully you >>> will see how close PDF is from PostScript). >>> JB >>> >> >> Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev >> 2.1.2 >> >> Advanced Media Group >> Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net >> 220 Drake Road, Bethel Park, PA 15102 >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > > Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 2.1.2 Advanced Media Group Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net 220 Drake Road, Bethel Park, PA 15102 From dean.snyder at jhu.edu Mon Dec 1 11:44:46 2003 From: dean.snyder at jhu.edu (Dean Snyder) Date: Mon, 01 Dec 2003 11:44:46 -0500 Subject: Unicode Problems in 2.1.2 Message-ID: <20031201164446.25001@smtp.jhu.edu> Revolution 2.1.2 claims improvements in Unicode handling, but it has gone backwards in at least one area and has also failed to fix a previously reported serious bug: * Unlike earlier versions where it worked, characters in the Unicode Private Use Area are now rendered by the generic no-glyph-here symbol and not the corresponding glyphs in custom fonts installed with those characters. * Unicode characters with code points that end in "09" are still interpreted as tabs, ASCII character 9, in Revolution table fields. Part of my research depends on manipulation of Unicode text and flakiness here is very disturbing. (I don't believe this is an OS issue, but I'm using Mac OS X 10.3.1, Panther.) Respectfully, Dean A. Snyder Scholarly Technology Specialist Library Digital Programs, Sheridan Libraries Garrett Room, MSE Library, 3400 N. Charles St. Johns Hopkins University Baltimore, Maryland, USA 21218 office: 410 516-6850 mobile: 410 245-7168 fax: 410-516-6229 Manager, Digital Hammurabi Project: www.jhu.edu/digitalhammurabi From alex at mindlube.com Mon Dec 1 12:08:12 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 10:08:12 -0700 Subject: Writing PDF files from RunRev (drifting OT) In-Reply-To: <3FCB383F.C49286BD@Club-Internet.fr> References: <20031201004107.13471.qmail@web40513.mail.yahoo.com> <3FCB383F.C49286BD@Club-Internet.fr> Message-ID: On Dec 1, 2003, at 5:47 AM, jbv wrote: > Nevertheless, there are some huge differences between PDF and PS > (like the use of dictionnaries AFAIR). Another difference: Postscript is actually a programming language, where PDF is just a description language. Just interesting that's all. Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From alex at mindlube.com Mon Dec 1 12:19:13 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 10:19:13 -0700 Subject: Writing PDF files from RunRev In-Reply-To: <20031130120855.79755.qmail@web40514.mail.yahoo.com> References: <20031130120855.79755.qmail@web40514.mail.yahoo.com> Message-ID: <7C17C5C5-2422-11D8-88C6-000393C4760A@mindlube.com> On Nov 30, 2003, at 5:08 AM, Alejandro Tejada wrote: > but everytime that I've tried to open this code > as a PDF file, Acrobat Reader tells me that the file > has errors that could not be repaired and skips the > file... Alejandro, If you need to create PDFs that look just like your card layout, you might want to consider a PDF printer driver like PDFCamp or the Adobe Acrobat printer drivers. On OS X you can always print to PDF via the built-in OS print dialog. Of course if you need to create PDFs in batches as some specific kind of workflow then this may not work though. Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From kray at sonsothunder.com Mon Dec 1 13:01:42 2003 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 1 Dec 2003 12:01:42 -0600 Subject: Unicode Problems in 2.1.2 In-Reply-To: <20031201164446.25001@smtp.jhu.edu> Message-ID: <00c901c3b835$307fb880$6401a8c0@LightningFlash> Dean, have you added this to Bugzilla? Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ > -----Original Message----- > From: use-revolution-bounces at lists.runrev.com > [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of > Dean Snyder > Sent: Monday, December 01, 2003 10:45 AM > To: use-revolution at lists.runrev.com > Subject: Unicode Problems in 2.1.2 > > > Revolution 2.1.2 claims improvements in Unicode handling, but > it has gone backwards in at least one area and has also > failed to fix a previously reported serious bug: > > * Unlike earlier versions where it worked, characters in the > Unicode Private Use Area are now rendered by the generic > no-glyph-here symbol and not the corresponding glyphs in > custom fonts installed with those characters. > > * Unicode characters with code points that end in "09" are > still interpreted as tabs, ASCII character 9, in Revolution > table fields. > > Part of my research depends on manipulation of Unicode text > and flakiness here is very disturbing. (I don't believe this > is an OS issue, but I'm using Mac OS X 10.3.1, Panther.) > > > Respectfully, > > Dean A. Snyder > Scholarly Technology Specialist > Library Digital Programs, Sheridan Libraries > Garrett Room, MSE Library, 3400 N. Charles St. > Johns Hopkins University > Baltimore, Maryland, USA 21218 > > office: 410 516-6850 mobile: 410 245-7168 fax: 410-516-6229 > Manager, Digital Hammurabi Project: www.jhu.edu/digitalhammurabi > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-> revolution > From jbv.silences at Club-Internet.fr Mon Dec 1 13:36:32 2003 From: jbv.silences at Club-Internet.fr (jbv) Date: Mon, 01 Dec 2003 19:36:32 +0100 Subject: Writing PDF files from RunRev (drifting OT) References: <20031201004107.13471.qmail@web40513.mail.yahoo.com> Message-ID: <3FCB8A1B.DC41B4C6@Club-Internet.fr> Alex Rice a *crit : > On Dec 1, 2003, at 5:47 AM, jbv wrote: > > Nevertheless, there are some huge differences between PDF and PS > > (like the use of dictionnaries AFAIR). > > Another difference: Postscript is actually a programming language, > where PDF is just a description language. > which is actually another side of the same problem : the lack of access to dictionaries hinders you from defining your own procedures in the prologue... But it's the same good old machinery (Display PostScript) still at work in Acrobat Reader, Illustrator and (probably) inDesign... JB From steve at hybride.com Mon Dec 1 11:58:02 2003 From: steve at hybride.com (Steve Pelchat) Date: Mon, 1 Dec 2003 11:58:02 -0500 Subject: Open Process, Windows platform ! Message-ID: <200312011158.AA455409796@mail1.intranet.hybride.com> Hi, i would like if other people got some problem with the "Open Process Vprocess for neither" on Windows Platform .... Because when i start my open process with 'for neither' the function close my openprocesses even my application run..... and if i put into IRIX Platform, the open process is correct, it close only when the application was finnished.... And other question, when the ENGINE for IRIX coming out ?? thanx !! From pixelbird at interisland.net Mon Dec 1 14:22:24 2003 From: pixelbird at interisland.net (Ken Norris) Date: Mon, 01 Dec 2003 11:22:24 -0800 Subject: How do I create an unreferenced image? In-Reply-To: <20031201092610.AF6EF93007F@mail.runrev.com> Message-ID: Hello Graham, > Date: Sun, 30 Nov 2003 20:39:55 +0000 > From: Graham Samuel > Subject: How do I create an unreferenced image? > > My question is, how does the IDE do this trick of embedding and > getting rid of the external reference? I would like to create such > images myself by scripting, but I don't see how. Sorry if this is > obvious. ----------- Yep, it's pretty simple as far as the command goes. Look up "import" in the Transport Dictionary. If you know about this and it doesn't work, I can almost guarantee it's a location (file path) problem. Please look through the docs on "Files, Folders, and Resources". Here's a tested example on a Mac (watch linewraps): on mouseUp import paint from file "/Macintosh HD/Desktop Folder/RevStacks_Mine/RevTest.JPG" end mouseUp ...You can retrieve the absolute filepath like this: ...open the multi-line message box and type: answer file "Choose a file:" put it ...You can check the folder in the msg box: put defaultFolder ... See the docs for converting an absolute path to a relative path, etc. If you are working in the IDE, then Rev has taken the Rev folder as the defaultFolder, so unless your image is in there, you'll have to either: 1) Assign an absolute file path as I did ...or to temporarily set a relative filepath: 2) Temporarily reset the defaultFoder, call your image, then set the default folder back to what it was, unless you move your stack to the default folder. NOTE: Don't forget to account for the location of referenced images when you build your standalone. If anything isn't clear, come back and ask. HTH, Ken N. From heather at runrev.com Mon Dec 1 14:14:08 2003 From: heather at runrev.com (Heather Williams) Date: Mon, 01 Dec 2003 19:14:08 +0000 Subject: Seminar In-Reply-To: <20031201170027.C01BA930089@mail.runrev.com> Message-ID: > Are you planing to video tape it and post it (at least an edited version > of the best parts) on the RR website ? > I'm sure all the poor guys who can't make it to SF would apreciate > that... It's certainly on the cards, but I can't make any promises at this stage, Regards, Heather -- Heather Williams ~ heather at runrev.com ~ http://www.runrev.com/ Runtime Revolution - User-Centric Development Tools Tel +44 (0) 131 7184333 Fax +44 (0) 845 4588487 ~~~ Check our web site for new Revolution editions & special offers ~~~ From pixelbird at interisland.net Mon Dec 1 14:42:43 2003 From: pixelbird at interisland.net (Ken Norris) Date: Mon, 01 Dec 2003 11:42:43 -0800 Subject: Seminar In-Reply-To: <20031201170027.A9AA1930088@mail.runrev.com> Message-ID: on 12/1/03 9:00 AM, use-revolution-request at lists.runrev.com at use-revolution-request at lists.runrev.com wrote: > Date: Mon, 01 Dec 2003 11:18:07 +0100 > From: jbv > Subject: Re: Seminar > > Heather, > >> Dear Listee, >> >> I'm delighted to tell you that the first ever Revolution Seminar will be >> held in San Francisco, in association with MacWorld. >> > > Are you planing to video tape it and post it (at least an edited version > of the best parts) on the RR website ? > I'm sure all the poor guys who can't make it to SF would apreciate > that... ------------ ...Or video to DVD or VCD (MPEG?). ...Or the ultimate dream, which can now be done much easier: Streaming QT? Ken N. From alptex2 at orwell.net Mon Dec 1 14:55:59 2003 From: alptex2 at orwell.net (T. R. Ponn) Date: Mon, 01 Dec 2003 14:55:59 -0500 Subject: How do I interrupt and cleanup gracefully? Message-ID: <3FCB9CCF.3080704@orwell.net> Hello all, There are a few places in my app where it would be nice if the user could use a "command-period" interrupt to gracefully stop my scripts. So, in playing around, I tried this as a starting point in a new button: on mouseUp repeat if the interrupt then cleanThisUp else add 1 to msg end repeat end mouseUp on cleanThisUp put "I'm interrupted" into msg end cleanThisUp It does, indeed, stop the script, but always with an error...and I never see the final message in the msg box. This is happening in Rev 2.0.3 IDE on my Mac (OS9.2.2), but must also work in the standalones when completed. What am I missing? Thanks in advance for any help you can lend! Best Regards, Tim Ponn From janschenkel at yahoo.com Mon Dec 1 15:04:04 2003 From: janschenkel at yahoo.com (Jan Schenkel) Date: Mon, 1 Dec 2003 12:04:04 -0800 (PST) Subject: How do I interrupt and cleanup gracefully? In-Reply-To: <3FCB9CCF.3080704@orwell.net> Message-ID: <20031201200404.16698.qmail@web60510.mail.yahoo.com> --- "T. R. Ponn" wrote: > Hello all, > > There are a few places in my app where it would be > nice if the user > could use a "command-period" interrupt to gracefully > stop my scripts. > So, in playing around, I tried this as a starting > point in a new button: > > on mouseUp > repeat > if the interrupt then cleanThisUp else add 1 to > msg > end repeat > end mouseUp > > on cleanThisUp > put "I'm interrupted" into msg > end cleanThisUp > > It does, indeed, stop the script, but always with an > error...and I never > see the final message in the msg box. This is > happening in Rev 2.0.3 > IDE on my Mac (OS9.2.2), but must also work in the > standalones when > completed. > > What am I missing? > > Thanks in advance for any help you can lend! > > Best Regards, > > Tim Ponn > > Hi Tim, The way I read the docs, you should set the local property allowInterrupts to false before going into the repeat loop. So the script should look something like : -- on mouseUp set the allowInterrupts to false repeat if the interrupt then cleanThisUp else add 1 to msg end repeat end mouseUp on cleanThisUp put "I'm interrupted" into msg end cleanThisUp -- A quick test revealed this to work on my Windows machine. So I hope this helped, Jan Schenkel. ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree From alex at mindlube.com Mon Dec 1 15:04:12 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 13:04:12 -0700 Subject: Seminar In-Reply-To: References: Message-ID: <8866BD76-2439-11D8-96A5-000393C4760A@mindlube.com> On Dec 1, 2003, at 12:42 PM, Ken Norris wrote: > ...Or video to DVD or VCD (MPEG?). > > ...Or the ultimate dream, which can now be done much easier: Streaming > QT? The way Apple does their Macworld sessions with Quicktime streams is kind of neat, I think. At conference time they post the current keynote session plus one or two other sessions in QT format, for free on developer.apple.com . For the rest of the year, all the other QT streams of macworld sessions are available for buying on the site. But a few weeks before Macworld, all of the previous sessions from the last year's conference are available for free QT streaming. By making all of the last year's free, it satisfies leeches like me :-) and also is good advertising for the upcoming conference. Runrev: any chance of getting your session into the "ADC TV" part of developer.apple.com? Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From alptex2 at orwell.net Mon Dec 1 16:05:04 2003 From: alptex2 at orwell.net (T. R. Ponn) Date: Mon, 01 Dec 2003 16:05:04 -0500 Subject: How do I interrupt and cleanup gracefully? References: <20031201200404.16698.qmail@web60510.mail.yahoo.com> Message-ID: <3FCBAD00.90206@orwell.net> Jan, I tried it and it failed (the IDE locked up)...then I added the obvious (exit to top). And, just to make sure things were back where they're supposed to be, I added "set allowInterrupts to true". Badda-bing! That did it! Though not a biggie, I'm still struggling with understanding the logic: set allowInterrupts to false = allow the user to interrupt. Sounds backwards to me. :-D Thanks! on mouseUp put empty into msg set the allowInterrupts to false repeat if the interrupt then cleanThisUp else add 1 to msg end repeat end mouseUp on cleanThisUp put "I'm interrupted" into msg set the allowInterrupts to true exit to top end cleanThisUp Best Regards, Tim Ponn Jan Schenkel wrote: >--- "T. R. Ponn" wrote: > > >>Hello all, >> >>There are a few places in my app where it would be >>nice if the user >>could use a "command-period" interrupt to gracefully >>stop my scripts. >> So, in playing around, I tried this as a starting >>point in a new button: >> >>on mouseUp >> repeat >> if the interrupt then cleanThisUp else add 1 to >>msg >> end repeat >>end mouseUp >> >>on cleanThisUp >> put "I'm interrupted" into msg >>end cleanThisUp >> >>It does, indeed, stop the script, but always with an >>error...and I never >>see the final message in the msg box. This is >>happening in Rev 2.0.3 >>IDE on my Mac (OS9.2.2), but must also work in the >>standalones when >>completed. >> >>What am I missing? >> >>Thanks in advance for any help you can lend! >> >>Best Regards, >> >>Tim Ponn >> >> >> >> > >Hi Tim, > >The way I read the docs, you should set the local >property allowInterrupts to false before going into >the repeat loop. So the script should look something >like : >-- >on mouseUp > set the allowInterrupts to false > repeat > if the interrupt > then cleanThisUp > else add 1 to msg > end repeat >end mouseUp > >on cleanThisUp > put "I'm interrupted" into msg >end cleanThisUp >-- > >A quick test revealed this to work on my Windows >machine. So I hope this helped, > >Jan Schenkel. > >===== >"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) > >__________________________________ >Do you Yahoo!? >Protect your identity with Yahoo! Mail AddressGuard >http://antispam.yahoo.com/whatsnewfree >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution > > > > From dean.snyder at jhu.edu Mon Dec 1 16:06:05 2003 From: dean.snyder at jhu.edu (Dean Snyder) Date: Mon, 01 Dec 2003 16:06:05 -0500 Subject: Unicode Problems in 2.1.2 In-Reply-To: <00c901c3b835$307fb880$6401a8c0@LightningFlash> References: <00c901c3b835$307fb880$6401a8c0@LightningFlash> Message-ID: <20031201210605.19445@smtp.jhu.edu> Ken Ray wrote at 12:01 PM on Monday, December 1, 2003: >Dean, have you added this to Bugzilla? I have now, using your nifty RevZilla stack. Thanks. Respectfully, Dean A. Snyder Scholarly Technology Specialist Library Digital Programs, Sheridan Libraries Garrett Room, MSE Library, 3400 N. Charles St. Johns Hopkins University Baltimore, Maryland, USA 21218 office: 410 516-6850 mobile: 410 245-7168 fax: 410-516-6229 Manager, Digital Hammurabi Project: www.jhu.edu/digitalhammurabi From janschenkel at yahoo.com Mon Dec 1 16:11:54 2003 From: janschenkel at yahoo.com (Jan Schenkel) Date: Mon, 1 Dec 2003 13:11:54 -0800 (PST) Subject: How do I interrupt and cleanup gracefully? In-Reply-To: <3FCBAD00.90206@orwell.net> Message-ID: <20031201211154.89234.qmail@web60502.mail.yahoo.com> --- "T. R. Ponn" wrote: > Jan, > > I tried it and it failed (the IDE locked up)...then > I added the obvious > (exit to top). And, just to make sure things were > back where they're > supposed to be, I added "set allowInterrupts to > true". Badda-bing! > That did it! > > Though not a biggie, I'm still struggling with > understanding the logic: > set allowInterrupts to false = allow the user to > interrupt. Sounds > backwards to me. :-D > > Thanks! > > on mouseUp > put empty into msg > set the allowInterrupts to false > repeat > if the interrupt > then cleanThisUp > else add 1 to msg > end repeat > end mouseUp > > on cleanThisUp > put "I'm interrupted" into msg > set the allowInterrupts to true > exit to top > end cleanThisUp > > > Best Regards, > > Tim Ponn > > Hi Tim, Well you have to read it as follows: - if the allowInterrupts is true, the user can interrupt the script at any time, even in a situation that would leave data in an incorrect state. - if the allowInterrupts is false, then the user can still send the interrupt keystroke, but the developer decides when to handle the interrupt, and how to clean up and exit gracefully. Hope this clarified things a bit, Jan Schenkel. ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree From alex at mindlube.com Mon Dec 1 16:26:19 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 14:26:19 -0700 Subject: Open Process, Windows platform ! In-Reply-To: <200312011158.AA455409796@mail1.intranet.hybride.com> References: <200312011158.AA455409796@mail1.intranet.hybride.com> Message-ID: <00CC8824-2445-11D8-96A5-000393C4760A@mindlube.com> On Dec 1, 2003, at 9:58 AM, Steve Pelchat wrote: > Hi, i would like if other people got some problem with the "Open > Process Vprocess for neither" on Windows Platform .... > > Because when i start my open process with 'for neither' the function > close my openprocesses even my application run..... and if i put into > IRIX Platform, the open process is correct, it close only when the > application was finnished.... Have you checked bugzilla for "open process" bugs? The open process command is severely buggy IMHO. > And other question, when the ENGINE for IRIX coming out ?? I remember you asked this before. Looks like you asked in September and in mid-November. If I were you I would not be too happy :-/ Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From pixelbird at interisland.net Mon Dec 1 16:49:40 2003 From: pixelbird at interisland.net (Ken Norris) Date: Mon, 01 Dec 2003 13:49:40 -0800 Subject: Seminar In-Reply-To: <20031201210333.7A1DF930097@mail.runrev.com> Message-ID: Hi Alex, > Date: Mon, 1 Dec 2003 13:04:12 -0700 > From: Alex Rice > Subject: Re: Seminar > > > On Dec 1, 2003, at 12:42 PM, Ken Norris wrote: >> ...Or video to DVD or VCD (MPEG?). >> >> ...Or the ultimate dream, which can now be done much easier: Streaming >> QT? > > The way Apple does their Macworld sessions with Quicktime streams is > kind of neat, I think. ---------- Actually, that was my reference, although I didn't mention it. I found the last one very informative and just plain kewel. Ken N. From jbv.silences at Club-Internet.fr Mon Dec 1 17:12:29 2003 From: jbv.silences at Club-Internet.fr (jbv) Date: Mon, 01 Dec 2003 23:12:29 +0100 Subject: updating graphic properties - question for the development team ? Message-ID: <3FCBBCB1.F0B09817@Club-Internet.fr> I guess it's a question for the development team, since it concerns the engine... When updating a visual property of a control (like the opaque of a field, or the backgroundcolor of a btn, etc. IOW any property that leads in changes in the current display) does the engine check the setting of this property before trying to update anything ? I'm asking because one of my script sets the opaque of a large chunk of flds to true, and when the opaque of a large portion of these flds is already set to true, I have the feeling that the script runs significantly faster... as if it didn't bother updating the display when the property is already set... If it were the case, it would avoid complex checking of what is set and what isn't in order to run scripts faster... Or does it have to do with the way the OS handles display ? Thanks, JB From sanke at hrz.uni-kassel.de Mon Dec 1 17:37:06 2003 From: sanke at hrz.uni-kassel.de (Wilhelm Sanke) Date: Mon, 01 Dec 2003 23:37:06 +0100 Subject: How do I create an unreferenced image? Message-ID: <3FCBC292.6080901@hrz.uni-kassel.de> On Mon, 01 Dec 2003, Ken Norris wrote: > Hello Graham, > > > Date: Sun, 30 Nov 2003 20:39:55 +0000 > > From: Graham Samuel > > Subject: How do I create an unreferenced image? > > > > My question is, how does the IDE do this trick of embedding and > > getting rid of the external reference? I would like to create such > > images myself by scripting, but I don't see how. Sorry if this is > > obvious. > ----------- > Yep, it's pretty simple as far as the command goes. > > Look up "import" in the Transport Dictionary. > > If you know about this and it doesn't work, I can almost guarantee it's a > location (file path) problem. Please look through the docs on "Files, > Folders, and Resources". > > Here's a tested example on a Mac (watch linewraps): > > on mouseUp > import paint from file "/Macintosh HD/Desktop > Folder/RevStacks_Mine/RevTest.JPG" > end mouseUp > > ...You can retrieve the absolute filepath like this: > > ...open the multi-line message box and type: > > answer file "Choose a file:" > put it > > ...You can check the folder in the msg box: > > put defaultFolder > > ... > > See the docs for converting an absolute path to a relative path, etc. > > If you are working in the IDE, then Rev has taken the Rev folder as the > defaultFolder, so unless your image is in there, you'll have to either: > > 1) Assign an absolute file path as I did > > ...or to temporarily set a relative filepath: > > 2) Temporarily reset the defaultFoder, call your image, then set the > default > folder back to what it was, unless you move your stack to the default > folder. > > NOTE: Don't forget to account for the location of referenced images > when you > build your standalone. > > If anything isn't clear, come back and ask. > > HTH, > Ken N. Ken and Graham, Lots of things to consider, aren't they? Excuse me, RR folks, if I mention this again: Besides a number of really good improvements unfortunately there is a whole bunch of mis-improvements of Revolution vs. Metacard. In the Metacard IDE, when you import an image file, first thing you get is a dialog with a checkbutton "Link Only". If you uncheck this button, the image will be embedded. So my recommendation is: Switch to the Metacard IDE for a moment and then - if you like - go back to Revolution. Regards, Wilhelm Sanke From lists at mangomultimedia.com Mon Dec 1 17:53:41 2003 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 1 Dec 2003 15:53:41 -0700 Subject: [ANN] QT External 0.3.0 Message-ID: <3594B7DA-2451-11D8-AD62-00039384A130@mangomultimedia.com> I've updated the QuickTime External to support QuickTime movie editing among other things. The following functions have been added: qtInitializeEditing() - makes a movie in a player object editable. qtUndo() qtCut() qtCopy() qtPaste() qtSelectAll() qtSelectNone() qtAddMovieSegment() - allows add and add scaled operations qtCreateHREFTrack() qtDeleteTrack() qtSaveAs() qtGetMovieControllerInfo() - getting available actions on a movie (can be copied, pasted, etc.). There is also an IsPlaying option that returns whether or not the movie is playing. qtGetTrackEnabled()/qtSetTrackEnabled() - get/set track enabled by track index or track name. Revolution currently supports this by track ID only. qtRegisterTexSampleCallback() - register a handler that will be called whenever a new text sample is loaded in the QT movie. qtAddMovieAnnotation() qtGetMovieAnnotation() A player object can now receive the ApplicationNumberAndString message as well. The external is currently available for OS X only. -- Trevor DeVore Blue Mango Multimedia trevor at mangomultimedia.com From gizmotron at earthlink.net Mon Dec 1 18:19:25 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Mon, 1 Dec 2003 15:19:25 -0800 Subject: cross-platform compress & decompress In-Reply-To: <00CC8824-2445-11D8-96A5-000393C4760A@mindlube.com> Message-ID: Hi, I've read everything I can find in the archives and I'm wondering if anyone has solved the cross-platform compress & decompress problems. I would like to create a compressed text file on Mac X and open & decompress it on Windows, the same goes for make on Windows & open on Mac. I'm not sure but it looks like the different charSets for each OS seems to be the problem. Anyway when I try to open made on Mac in Windows the file is not recognized as being compressed. I've tried stripping the header before decompressing with no luck. Perhaps a cross-platform compress/decompress is in the works soon? I solved these charSet OS issues in cross-platform encryption by converting to numbers within the entire encryption/decryption process. This took the relative positions of the different chars in charSets out of picture until the final rendering takes place. Mark Brownell From alex at mindlube.com Mon Dec 1 18:19:03 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 16:19:03 -0700 Subject: cross-platform compress & decompress In-Reply-To: References: Message-ID: On Dec 1, 2003, at 4:19 PM, Mark Brownell wrote: > I've read everything I can find in the archives and I'm wondering if > anyone has solved the cross-platform compress & decompress problems. I > would like to create a compressed text file on Mac X and open & > decompress it on Windows, the same goes for make on Windows & open on > Mac. I'm not sure but it looks like the different charSets for each OS > seems to be the problem. Anyway when I try to open made on Mac in > Windows the file is not recognized as being compressed. I've tried > stripping the header before decompressing with no luck. Perhaps a > cross-platform compress/decompress is in the works soon? I solved > these charSet OS issues in cross-platform encryption by converting to > numbers within the entire encryption/decryption process. This took the > relative positions of the different chars in charSets out of picture > until the final rendering takes place. Would base64 encoding the content before compressing it be a suitable workaround for the char set issues? Is there a bugzilla # I can read to get up to speed on this bug? Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From ambassador at fourthworld.com Mon Dec 1 18:22:56 2003 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 01 Dec 2003 15:22:56 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: Mark Brownell wrote: > I've read everything I can find in the archives and I'm wondering if > anyone has solved the cross-platform compress & decompress problems. I've been using base64 on the compressed data to maintain it unadulterated in user props or for transmission. It adds some bulk, but the net result is still usually much smaller than the original. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From ambassador at fourthworld.com Mon Dec 1 18:27:44 2003 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 01 Dec 2003 15:27:44 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: Alex Rice wrote: > On Dec 1, 2003, at 4:19 PM, Mark Brownell wrote: > >> I've read everything I can find in the archives and I'm wondering if >> anyone has solved the cross-platform compress & decompress problems. I >> would like to create a compressed text file on Mac X and open & >> decompress it on Windows, the same goes for make on Windows & open on >> Mac. I'm not sure but it looks like the different charSets for each OS >> seems to be the problem. Anyway when I try to open made on Mac in >> Windows the file is not recognized as being compressed. I've tried >> stripping the header before decompressing with no luck. Perhaps a >> cross-platform compress/decompress is in the works soon? I solved >> these charSet OS issues in cross-platform encryption by converting to >> numbers within the entire encryption/decryption process. This took the >> relative positions of the different chars in charSets out of picture >> until the final rendering takes place. > > Would base64 encoding the content before compressing it be a suitable > workaround for the char set issues? > > Is there a bugzilla # I can read to get up to speed on this bug? I don't think it's a bug as much as a very useful feature with unintended consequences for binary data: in old versions of the engine, folks complained that data stored in user properties did not have the automatic cross-platform conversion as text in fields enjoy. So several versions ago this was changed to allow the same for user props. The downside to the change is that for the minority of user props containing binary data this conversion will cause trouble, often making the data unusable (as is the case if the data is compressed). Maybe we need a flag to note whether a property is text or binary? Should it be a stack property? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From alex at mindlube.com Mon Dec 1 18:33:56 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 16:33:56 -0700 Subject: cross-platform compress & decompress In-Reply-To: References: Message-ID: On Dec 1, 2003, at 4:27 PM, Richard Gaskin wrote: > I don't think it's a bug as much as a very useful feature with > unintended > consequences for binary data: in old versions of the engine, folks > complained that data stored in user properties did not have the > automatic > cross-platform conversion as text in fields enjoy. So several > versions ago > this was changed to allow the same for user props. > The downside to the change is that for the minority of user props > containing > binary data this conversion will cause trouble, often making the data > unusable (as is the case if the data is compressed). When did that happen? I thought that custom properties are a place where binary data was really safe in Rev. In either case I misunderstood Mark's question. I thought he meant compressing data X on two different platforms would yield 2 different chunks of binary data. > Maybe we need a flag to note whether a property is text or binary? > Should > it be a stack property? Just as a transcript notation you mean? Sounds useful Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From gizmotron at earthlink.net Mon Dec 1 18:41:52 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Mon, 1 Dec 2003 15:41:52 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: On Monday, December 1, 2003, at 03:19 PM, Alex Rice wrote: > Would base64 encoding the content before compressing it be a suitable > workaround for the char set issues? Base64 would not help. It's not before compression that is the issue. The stuff I'm encrypting already has a less-than 127 numToChar() value restriction. If you look at the text of the compressed data you will see many ascii characters that numToChar() higher than 127. These chars read differently on different Systems. Even if you macToISO() the chars they end up changing the decompress process on different platforms. > Is there a bugzilla # I can read to get up to speed on this bug? I only found one and it said it was resolved. I think this might be a feature request kind of an issue. mb From monte at sweattechnologies.com Mon Dec 1 18:42:09 2003 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 2 Dec 2003 10:12:09 +1030 Subject: Writing PDF files from RunRev In-Reply-To: <3FCB0928.2F98A4F@Club-Internet.fr> Message-ID: > > > I haven't visited the link, but have some > > > experience writing PDF files from Metacard. > > > > Wonderful! Have you exported to pdf the full content > > of a field, a card or a whole stack? > > Take it easy... ;-) > It actually began more than 2 years ago on the MC list > when I helped Monte Goulding (sp?) generating PDF > files for one of his projects. I guess Monte also worked > a lot on exporting data as PDF, and that he might be of > some help as well (if not too busy)... Yep, JB got me started on what was not an easy journey. It took me ages to realise that even though it looks like ASCII text you need to save it as a binary file (could be a line endings issue???). Unfortunately I've been planning to build a generic PDF export library for about a year and never had the time or project to make it worth while. My application Somatotype generates PDF reports on the fly including multiple pages, complex charts, tables and text. Fonts are an issue and any library I made would be limitesd to the built in PDF fonts. My plan has been to export stacks from card 1 to n with the page the same size as the card. Currently all my code is in a Somatotype specific form so I'm reluctant to hand it around. But it would be great to have a save stack as PDF handler. So the moral of the story is it's hard to motivate yourself to build a library you don't need when you have a 6 week old baby girl, work coming out your ears and Christmas on the way ;-) Cheers Monte From ian at azurevision.co.uk Mon Dec 1 18:47:20 2003 From: ian at azurevision.co.uk (Ian Wood) Date: Mon, 1 Dec 2003 23:47:20 +0000 Subject: Rev 1.1 apps launching Classic on OS X 10.3 Message-ID: Hi folks, I'm having trouble with Rev 1.1 builds and OS X.3, the apps try to launch in Classic with no way to override this behaviour. Can anyone else confirm this? Ian Wood Panoramic photography, from web to billboard, sunrise to moonrise http://www.azurevision.co.uk P.S. Yes, I could save up and get 2.1, but at the current rate of shareware sales that would take a LONG time! From alex at mindlube.com Mon Dec 1 18:48:04 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 16:48:04 -0700 Subject: Writing PDF files from RunRev In-Reply-To: References: Message-ID: On Dec 1, 2003, at 4:42 PM, Monte Goulding wrote: > My application Somatotype > generates PDF reports on the fly including multiple pages, complex > charts, > tables and text. That's impressive though! Just curious: how much of the many-thousand page PDF Specs from Adobe did you have to study to get to this point? Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From alex at mindlube.com Mon Dec 1 18:56:37 2003 From: alex at mindlube.com (Alex Rice) Date: Mon, 1 Dec 2003 16:56:37 -0700 Subject: Trapping for Cancel Answer printer In-Reply-To: <20031130194655.3079.qmail@mahiai.aloha.net> References: <20031130194655.3079.qmail@mahiai.aloha.net> Message-ID: <0056C3CA-245A-11D8-844C-000393C4760A@mindlube.com> On Nov 30, 2003, at 12:46 PM, katir at hindu.org wrote: > This is either a bug, where for use of "answer printer" Rev should > pass the result to "it" or needs more documentation if the globally > expected engine behavior is for anything from the system to *not* be > in "it" but be passed via the result, which is also logical. Old time > xTalkers may take that for granted, newbies will stumble As Ken confirmed, the solution is to check the result, not "it". I think the docs reflect that. As a relative new xtalker I have sometimes been confused when sometimes "it" is called for, and sometimes "the result". Is there any general rule to be aware of? Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From gizmotron at earthlink.net Mon Dec 1 19:01:13 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Mon, 1 Dec 2003 16:01:13 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: I have a system that works for me, it's plain text. This example opens on all platforms and is without cross-platform issues: n/a Demo Document n/a www.demotypeX.com 1 61 173 254 201 112 131 124 144 25 151 90 58 97 202 63 89 92 6 195 93 79 163 159 77 171 228 84 228 [snip]... Dictionary InformationNo dictionary information available. Add a term later 135 157 165 249 203 64 187 98 25 182 92 175 143 130 104 126 204 151 137 247 154 167 240 68 138 168 134 37 0 10 37 131 113 108 191 14 208 46 170 95 105 30 110 123 49 72 24 246 129 148 [snip]... The snipped sets of numbers are encrypted data that exists between the tag sets. I was just looking for a way to make it smaller. mb From dcragg at lacscentre.co.uk Mon Dec 1 18:59:08 2003 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Mon, 1 Dec 2003 23:59:08 +0000 Subject: cross-platform compress & decompress In-Reply-To: References: Message-ID: At 3:27 pm -0800 1/12/03, Richard Gaskin wrote: >> On Dec 1, 2003, at 4:19 PM, Mark Brownell wrote: >> >>> I've read everything I can find in the archives and I'm wondering if >>> anyone has solved the cross-platform compress & decompress problems. I >>> would like to create a compressed text file on Mac X and open & >>> decompress it on Windows, the same goes for make on Windows & open on >>> Mac. I'm not sure but it looks like the different charSets for each OS >>> seems to be the problem. Anyway when I try to open made on Mac in >>> Windows the file is not recognized as being compressed. I've tried >>> stripping the header before decompressing with no luck. Perhaps a >>> cross-platform compress/decompress is in the works soon? I solved >>> these charSet OS issues in cross-platform encryption by converting to >>> numbers within the entire encryption/decryption process. This took the >>> relative positions of the different chars in charSets out of picture >>> until the final rendering takes place. Are you treating the files as binary data and not as text files? That is, when you save and open, you should use "binfile" and not "file". For example: When saving: put compress(field 1) into url ("binfile:" & ) When opening: put decompress(url ("binfile:" & )) into field 1 > >I don't think it's a bug as much as a very useful feature with unintended >consequences for binary data: in old versions of the engine, folks >complained that data stored in user properties did not have the automatic >cross-platform conversion as text in fields enjoy. So several versions ago >this was changed to allow the same for user props. Are you sure that's true, Richard? I use custom props for image data, audio, and a host of other binary data but haven't noticed any cross platform issues. Dave From gizmotron at earthlink.net Mon Dec 1 19:09:43 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Mon, 1 Dec 2003 16:09:43 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: On Monday, December 1, 2003, at 03:59 PM, Dave Cragg wrote: > Are you treating the files as binary data and not as text files? That > is, when you save and open, you should use "binfile" and not "file". > For example: I'm using "binfile" for all. This works fine on Win and works fine for Mac as long as I use binary files created on the same platform. From livfoss at blueyonder.co.uk Mon Dec 1 19:09:05 2003 From: livfoss at blueyonder.co.uk (Graham Samuel) Date: Tue, 2 Dec 2003 00:09:05 +0000 Subject: How do I create an unreferenced image? In-Reply-To: <20031201232637.3882093009F@mail.runrev.com> Message-ID: > On Mon, 01 Dec 2003 23:37:06 +0100, Wilhelm Sanke > >> Hello Graham, >> >>> Date: Sun, 30 Nov 2003 20:39:55 +0000 >>> From: Graham Samuel >>> Subject: How do I create an unreferenced image? >>> >>> My question is, how does the IDE do this trick of embedding and >>> getting rid of the external reference? I would like to create such >>> images myself by scripting, but I don't see how. Sorry if this is >>> obvious. >> ----------- >> Yep, it's pretty simple as far as the command goes. >> >> Look up "import" in the Transport Dictionary. >> >> [...] >> Ken and Graham, > > Lots of things to consider, aren't they? > > Excuse me, RR folks, if I mention this again: Besides a number of > really > good improvements unfortunately there is a whole bunch of > mis-improvements of Revolution vs. Metacard. > > In the Metacard IDE, when you import an image file, first thing you get > is a dialog with a checkbutton "Link Only". If you uncheck this button, > the image will be embedded. > > So my recommendation is: Switch to the Metacard IDE for a moment and > then - if you like - go back to Revolution. > Interesting point, Wilhelm, but I wanted to do this while my app was running, not in the IDE - the two Kens have now both pointed me at the 'import' command, so all is well, once I've worked out how to name the image after it's imported (don't worry, I'm sure that this is trivial although it's not mentioned in the documentation for 'import' - I guess I just have to find the last numbered image and change its name). Thanks all Graham _________________________________________ Graham Samuel / The Living Fossil Co. / UK & France From monte at sweattechnologies.com Mon Dec 1 19:09:31 2003 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 2 Dec 2003 10:39:31 +1030 Subject: Writing PDF files from RunRev In-Reply-To: Message-ID: > > My application Somatotype > > generates PDF reports on the fly including multiple pages, complex > > charts, > > tables and text. > > That's impressive though! Just curious: how much of the many-thousand > page PDF Specs from Adobe did you have to study to get to this point? Quite a bit although much of it doesn't apply to the very basic PDF documents that I export. In such a big document it's finding the one line of text that you need that's annoying. Cheers Monte From monte at sweattechnologies.com Mon Dec 1 19:15:32 2003 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 2 Dec 2003 10:45:32 +1030 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: > On Monday, December 1, 2003, at 03:59 PM, Dave Cragg wrote: > > > Are you treating the files as binary data and not as text files? That > > is, when you save and open, you should use "binfile" and not "file". > > For example: > > I'm using "binfile" for all. This works fine on Win and works fine for > Mac as long as I use binary files created on the same platform. Try compressing an decompressing the whole file to see if some stage in your parsing is corrupting the compressed data. Richard's suggestion of compress then base64Encode is also appropriate for binary data in an XML document. Cheers Monte From dcragg at lacscentre.co.uk Mon Dec 1 19:17:11 2003 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Tue, 2 Dec 2003 00:17:11 +0000 Subject: cross-platform compress & decompress In-Reply-To: References: Message-ID: At 4:01 pm -0800 1/12/03, Mark Brownell wrote: >I have a system that works for me, it's plain text. > >This example opens on all platforms and is without cross-platform issues: Mark, could you provide an example that doesn't work? I've never encountered this problem, and I open a lot of compressed files (usally stacks) across Win and Mac platforms. Are you using e-mail to transfer the files? I've come across cases of supposedly binary files being "converted" during e-mail transmission. Cheers Dave From erikhans08 at yahoo.com Mon Dec 1 19:18:48 2003 From: erikhans08 at yahoo.com (erik hansen) Date: Mon, 1 Dec 2003 16:18:48 -0800 (PST) Subject: if not OT then why off list? In-Reply-To: <20031129220412.224.qmail@mahiai.aloha.net> Message-ID: <20031202001848.80055.qmail@web20009.mail.yahoo.com> --- katir at hindu.org wrote: > Due to spiders harvesting email addresses from > our web sites, which results in a flood of > spam, we are planning to remove them all and > use a form-post-to-cgi model. I would like to > use transcript. If anyone has invented this > wheel already, email me off list. if not OT then why off list? ===== erik at erikhansen.org http://www.erikhansen.org __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ From erikhans08 at yahoo.com Mon Dec 1 19:32:11 2003 From: erikhans08 at yahoo.com (erik hansen) Date: Mon, 1 Dec 2003 16:32:11 -0800 (PST) Subject: Beginning Valentina Question In-Reply-To: Message-ID: <20031202003211.22242.qmail@web20008.mail.yahoo.com> --- Dan Shafer wrote: > Ken... > > Thanks. Success! > > Wow, there's a lot of undocumented arcania > here! Someone needs to pull > it together in one place where people can find > it! > > I'm working on a stack demonstrating the use of > the report stuff in > 2.1.2, but maybe I should first do a database > tutorial stack set. > > Hmmmmm please do. Erik ===== erik at erikhansen.org http://www.erikhansen.org __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ From gizmotron at earthlink.net Mon Dec 1 19:36:59 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Mon, 1 Dec 2003 16:36:59 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: On Monday, December 1, 2003, at 04:15 PM, Monte Goulding wrote: > Try compressing an decompressing the whole file to see if some stage > in your > parsing is corrupting the compressed data. Richard's suggestion of > compress > then base64Encode is also appropriate for binary data in an XML > document. > > Cheers > > Monte I have tried compressing and decompressing the whole file as the first test. I tried compressing the data from a variable as a second test. I've looked at the same data in a text editor on both platforms and I did a comparison of charToNum() of the compressed data on both platforms. This was the exact same problem I had with blowfish I think. I solved it by constricting cross-platform data transfers to less than ascii 127; even though the data can represent up to ascii 255. My blowfish algorithm does it all as numerical values until the final rendering. I had to drop binaryEncode() & binaryDecode() in order to get numerical only results within the process. That's why I think it's something like upper ascii character values across platforms. So can you compress this: "abcdefghijklmnopqrstuvwxyz1234567890" on a Mac, save it as binary on a Mac, and open & decompress it on a Windows machine? I need to see a basic text file that I can decompress on Mac & Windows. \ mb From gizmotron at earthlink.net Mon Dec 1 19:45:51 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Mon, 1 Dec 2003 16:45:51 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: On Monday, December 1, 2003, at 04:17 PM, Dave Cragg wrote: > Mark, could you provide an example that doesn't work? I've never > encountered this problem, and I open a lot of compressed files (usally > stacks) across Win and Mac platforms. > > Are you using e-mail to transfer the files? I've come across cases of > supposedly binary files being "converted" during e-mail transmission. I'm zipping the Mac files and then FTPing them to my website. I'm then downloading them, unzipping them on Windows. After that I can open the text files but I can't use Rev to decompress the Mac .gz files. Windows recognizes these compressed files as .gz but won't let me decompress them. \ mb From ambassador at fourthworld.com Mon Dec 1 20:01:50 2003 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 01 Dec 2003 17:01:50 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: Mark Brownell wrote: > On Monday, December 1, 2003, at 04:17 PM, Dave Cragg wrote: > >> Mark, could you provide an example that doesn't work? I've never >> encountered this problem, and I open a lot of compressed files (usally >> stacks) across Win and Mac platforms. >> >> Are you using e-mail to transfer the files? I've come across cases of >> supposedly binary files being "converted" during e-mail transmission. > > I'm zipping the Mac files and then FTPing them to my website. I'm then > downloading them, unzipping them on Windows. After that I can open the > text files but I can't use Rev to decompress the Mac .gz files. Windows > recognizes these compressed files as .gz but won't let me decompress > them. \ mb There may be something else in the mix: RevNet has a lot of gzipped files from both platforms and this has not been reported as a problem there. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From ambassador at fourthworld.com Mon Dec 1 20:11:18 2003 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 01 Dec 2003 17:11:18 -0800 Subject: Trapping for Cancel Answer printer In-Reply-To: <0056C3CA-245A-11D8-844C-000393C4760A@mindlube.com> Message-ID: Alex Rice wrote: > On Nov 30, 2003, at 12:46 PM, katir at hindu.org wrote: >> This is either a bug, where for use of "answer printer" Rev should >> pass the result to "it" or needs more documentation if the globally >> expected engine behavior is for anything from the system to *not* be >> in "it" but be passed via the result, which is also logical. Old time >> xTalkers may take that for granted, newbies will stumble > > As Ken confirmed, the solution is to check the result, not "it". I > think the docs reflect that. > As a relative new xtalker I have sometimes been confused when sometimes > "it" is called for, and sometimes "the result". Is there any general > rule to be aware of? As a very general rule, "the result" is used for error info while "it" contains data. Are there other exceptions to this? -- Richard Gaskin Fourth World Media Corporation ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From ambassador at fourthworld.com Mon Dec 1 20:22:27 2003 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 01 Dec 2003 17:22:27 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: Dave Cragg wrote: >> I don't think it's a bug as much as a very useful feature with unintended >> consequences for binary data: in old versions of the engine, folks >> complained that data stored in user properties did not have the automatic >> cross-platform conversion as text in fields enjoy. So several versions ago >> this was changed to allow the same for user props. > > Are you sure that's true, Richard? I use custom props for image data, > audio, and a host of other binary data but haven't noticed any cross > platform issues. I may be getting old and feeble, recalling merely a discussion of what would happen if the request were implemented. I can't recall a specific instance of custom props failing with binary data for me, so chalk that up to a lack of sleep until someone confirms/denies it empirically. However, i used to have issues sending compressed data over sockets until I got into the habit of using base64. But since I've never had a problem using your excellent libUrl even those may have been user error. :) I started using base64 early on in my works with sockets, so other factors may have been at play while I was getting the hang of it. But the issue seems bigger than Mark and myself: I recall a number of cases where using compress/decompress across platforms was discussed here as problematic, though I don't recall if storing them in user props or transmitting via sockets was a consistent part of the recipe. -- Richard Gaskin Fourth World Media Corporation ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From gizmotron at earthlink.net Mon Dec 1 20:47:17 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Mon, 1 Dec 2003 17:47:17 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: <75F9940D-2469-11D8-8671-000A95859272@earthlink.net> On Monday, December 1, 2003, at 05:01 PM, Richard Gaskin wrote: > There may be something else in the mix: RevNet has a lot of gzipped > files > from both platforms and this has not been reported as a problem there. I'm using this on a Mac X: put "abcdefghijklmnopqrstuvwxyz1234567890<>" into tankX ask file "Save:" with "Untitled.txt" put compress(tankX) into URL ("binfile:" & it & ".gz") I get this: ?KLJNIMK????????/(,*.)-+???2426153??4??d???& It will be fun to compare what comes through the list as ascii chars for the result... So I put this file on-line zipped and... Wouldn't you know it, it works fine! I used this on the Windows machine: answer file "this" put decompress(URL ("binfile:" & it )) into zap put zap -- returns "abcdefghijklmnopqrstuvwxyz1234567890<>" OK I've discovered a bug with me. I zipped me... It turns out I was sending header data in the first line of the compressed data. Once I dropped that it worked fine. Thanks to all, Mark From FMoyer at aol.com Mon Dec 1 21:08:54 2003 From: FMoyer at aol.com (FMoyer at aol.com) Date: Mon, 1 Dec 2003 21:08:54 EST Subject: Find and Replace Message-ID: <127.35dbbf8c.2cfd4e36@aol.com> Can anyone shed any light on the "Find and Replace..." feature in Revolution? I open a stack, and then press command-F. Up comes "Find and Replace." I type in a word to search for, and make sure only "Field Text" is checked. The results of the search are baffling -- I get the same card listed over and over. And then when I double-click on a line, instead of being led to that card, the script for the field where that text is found opens. Why would I want see the script for the field where that word exists? It seems completely illogical to me -- but maybe I'm missing something. Then if instead of searching "This Stack" I choose "Stacks in a Folder" and then choose a folder, I get a bunch of error messages and then the computer freezes and I have to force-quit Revolution. I'm using MacOS 9. Are others experiencing similar issues with Find and Replace? Thanks Fred Moyer From jacque at hyperactivesw.com Mon Dec 1 21:40:25 2003 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 01 Dec 2003 20:40:25 -0600 Subject: cross-platform compress & decompress In-Reply-To: References: Message-ID: <3FCBFB99.9000108@hyperactivesw.com> On 12/1/03 7:22 PM, Richard Gaskin wrote: > Dave Cragg wrote: > >>Are you sure that's true, Richard? I use custom props for image data, >>audio, and a host of other binary data but haven't noticed any cross >>platform issues. > > I may be getting old and feeble, recalling merely a discussion of what would > happen if the request were implemented. I made the same misstatement here six months or so ago, and maybe for the same reason you did. I am sure I remember a note in one of the "what's new" files in a version of MC a while back which said that line endings in custom props were now converted. I remember being relieved because I had some trouble with that once. Folks here corrected me, and now I don't know whether line conversion worked for a while and then was reverted later on, or whether I just dreamed the whole thing. > I can't recall a specific instance of custom props failing with binary data > for me, so chalk that up to a lack of sleep until someone confirms/denies it > empirically. The reason I brought it up six months ago was because I was storing compressed data in a custom property that would not decompress on a different platform. If I compressed it on Mac it wouldn't decompress on Windows and vice versa. I never did get it to work. I had to create two versions of the compressed data, one for each platform. The data was all just plain ascii text, and I don't think there were any high-ascii characters in it. > But the issue seems bigger than Mark and myself: I recall a number of cases > where using compress/decompress across platforms was discussed here as > problematic, though I don't recall if storing them in user props or > transmitting via sockets was a consistent part of the recipe. That was me, for at least one of the times, and it was custom props. I haven't tested it again since then. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From 3mcgrath at adelphia.net Mon Dec 1 23:06:47 2003 From: 3mcgrath at adelphia.net (Thomas J McGrath III) Date: Mon, 1 Dec 2003 23:06:47 -0500 Subject: HELP with mov FLASHING Message-ID: Help..... I put a reference movie from Keynote into my stack set as an interactive movie file. It used to play just fine. Click the mouse and it advances to the next slide with or without whatever effects you might have had in Keynote. Well now the movie flashes to white when I click on it. It does change to the next slide but the flash to white is just awful. This same movie file worked fine just a week ago. And when I open the mov file in Quicktime it works fine. The only thing that I have done since the other day was to import a bunch of graphic jpgs into another card not as references. Could this have created a memory issue? the graphics added a bit of size to the over all project but they are on another card in the main stack and the mov reference is in a sub stack...... Does anyone know what might be going on? My whole project is based on this running smoothly. Thanks for any help. Tom Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 2.1.2 Advanced Media Group Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net 220 Drake Road, Bethel Park, PA 15102 From pixelbird at interisland.net Mon Dec 1 23:06:57 2003 From: pixelbird at interisland.net (Ken Norris) Date: Mon, 01 Dec 2003 20:06:57 -0800 Subject: How do I create an unreferenced image? In-Reply-To: <20031201232634.24D849300A4@mail.runrev.com> Message-ID: Hi Wilhelm, > Date: Mon, 01 Dec 2003 23:37:06 +0100 > From: Wilhelm Sanke > Subject: Re: How do I create an unreferenced image? > In the Metacard IDE, when you import an image file, first thing you get > is a dialog with a checkbutton "Link Only". If you uncheck this button, > the image will be embedded. ----------- You can choose either one from the pulldown File menu in RR: Import As Control (embedded) ...or New Referenced Control (file reference) No waiting, no extra dialog (other than the Answer file), nothing to 'uncheck'. Howcome that's 'mis-improved'? Ken N. From pixelbird at interisland.net Mon Dec 1 23:38:39 2003 From: pixelbird at interisland.net (Ken Norris) Date: Mon, 01 Dec 2003 20:38:39 -0800 Subject: How do I create an unreferenced image? In-Reply-To: <20031202001410.90E739300B3@mail.runrev.com> Message-ID: Hi Graham, > Date: Tue, 2 Dec 2003 00:09:05 +0000 > From: Graham Samuel > Subject: Re: How do I create an unreferenced image? > once I've worked out how to name the > image after it's imported (don't worry, I'm sure that this is trivial > although it's not mentioned in the documentation for 'import' - I guess > I just have to find the last numbered image and change its name). ---------- Yes, but you could write it into the script, pretty much like you just said: get the id of the last image set the name of image id it to "MyFabulousDrawing" Are you importing a bunch of images? You might want to look at "All Images In Folder" (Import As Control submenu). That will batch import them all at once. Then just write a loop to go through them and rename them. HTH, Ken N. From scott at tactilemedia.com Tue Dec 2 00:35:56 2003 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 01 Dec 2003 21:35:56 -0800 Subject: How do I create an unreferenced image? In-Reply-To: Message-ID: On 12/1/03 8:38 PM, "Ken Norris" wrote: >> once I've worked out how to name the >> image after it's imported (don't worry, I'm sure that this is trivial >> although it's not mentioned in the documentation for 'import' - I guess >> I just have to find the last numbered image and change its name). > ---------- > Yes, but you could write it into the script, pretty much like you just said: > > get the id of the last image > set the name of image id it to "MyFabulousDrawing" You don't even need the first line: set name of last img to "MyFabulousDrawing" Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design ----- E: scott at tactilemedia.com W: http://www.tactilemedia.com From bvlahos at mac.com Tue Dec 2 01:03:30 2003 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 1 Dec 2003 22:03:30 -0800 Subject: Repeating events Message-ID: <40BACB8E-248D-11D8-A9F5-003065EC5590@mac.com> I have a script that I want to run every day at 5:00 AM and 2:30 PM and am having the hardest time figuring out how to work simply and reliably. The following script will figure out how many seconds from some arbitrary time to the next 5:00 AM. Normally the script will run automatically but it will be possible that the user might run it manually at any time. convert the short time to dateItems add 1 to item 3 of it -- tomorrow put 5 into item 4 of it -- 5 AM put 0 into item 5 of it -- :00 seconds convert it to seconds put it into vNextTime convert the time to seconds -- current time put it into vNow put vNextTime - vNow into vTimeOffset -- number of seconds until the next 5:00 AM This works OK for one repeating time per day but I want more than one (at this point it is two but it would be good to make a general case for any number of times the script is to be run). Is there a simple way to track multiple repeating events without going bonkers keeping track of multiple send in times? I think I must be trying too hard on this but I can't think of a simple way to do it. Bill From scott at tactilemedia.com Tue Dec 2 01:39:23 2003 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 01 Dec 2003 22:39:23 -0800 Subject: Repeating events In-Reply-To: <40BACB8E-248D-11D8-A9F5-003065EC5590@mac.com> Message-ID: On 12/1/03 10:03 PM, "Bill Vlahos" wrote: > I have a script that I want to run every day at 5:00 AM and 2:30 PM and > am having the hardest time figuring out how to work simply and > reliably. > ... > Is there a simple way to track multiple repeating events without going > bonkers keeping track of multiple send in times? I think I must be > trying too hard on this but I can't think of a simple way to do it. Couldn't you just check the time once a minute or so? on checkTime if the time = "5:00 AM" or the time = "2:30 PM" then doMyStuff send "checkTime" to me in 60 seconds end checkTime Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design ----- E: scott at tactilemedia.com W: http://www.tactilemedia.com From dsc at swcp.com Tue Dec 2 01:43:52 2003 From: dsc at swcp.com (Dar Scott) Date: Mon, 1 Dec 2003 23:43:52 -0700 Subject: Repeating events In-Reply-To: <40BACB8E-248D-11D8-A9F5-003065EC5590@mac.com> Message-ID: On Monday, December 1, 2003, at 11:03 PM, Bill Vlahos wrote: > Is there a simple way to track multiple repeating events without going > bonkers keeping track of multiple send in times? I think I must be > trying too hard on this but I can't think of a simple way to do it. Every half minute check the time against your list of things to do that have not been checked off (or removed). The task to do in the middle of the night is to re-initialize your list. Dar Scott From monte at sweattechnologies.com Tue Dec 2 01:50:25 2003 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 2 Dec 2003 17:20:25 +1030 Subject: Repeating events In-Reply-To: <40BACB8E-248D-11D8-A9F5-003065EC5590@mac.com> Message-ID: I suggest triggering your next event setup at the end of executing the last one (also at startup to get things going) Try this (untested): on triggerEvent local tTime,tLine,tEventTimes doEvent -- script you want to run put the seconds into tTime convert tTime to dateItems -- uEventTimes is a list of times (5:00 AM = 5,0) put the uEventTimes of the target into tEventTimes if item 4 of tTime >= item 1 of line -1 tEventTimes and \ item 5 of tTime >= item 2 of line -1 of tEventTimes then add 1 to item 3 of tTime put line -1 of tEventTimes into item 4 to 5 of tTime else repeat for each line tLine in tEventTimes if item 4 of tTime >= item 1 of tLine and \ item 5 of tTime >= item 2 of tLine then put tLine into item 4 to 5 of tTime end if end repeat end if convert tTime to seconds send triggerEvent to the target in (tTime - the long seconds) seconds end triggerEvent Tou could have this script in a library stack and have as many objects as you like triggering events all over the place ;-) Cheers Monte From jbv.silences at Club-Internet.fr Tue Dec 2 04:49:53 2003 From: jbv.silences at Club-Internet.fr (jbv) Date: Tue, 02 Dec 2003 10:49:53 +0100 Subject: Writing PDF files from RunRev References: Message-ID: <3FCC603D.3BA38012@Club-Internet.fr> > > > My application Somatotype > > > generates PDF reports on the fly including multiple pages, complex > > > charts, > > > tables and text. > > > > That's impressive though! Just curious: how much of the many-thousand > > page PDF Specs from Adobe did you have to study to get to this point? > > Quite a bit although much of it doesn't apply to the very basic PDF > documents that I export. In such a big document it's finding the one line of > text that you need that's annoying. > I would second that. Actually PDF isn't that complex : once you get the basic rules (especially for file format) you're up and going. The main problem, for coders used to transcript, is probably the lack of "readability". But if you're used to code in PostScript (or any language with the same structure), then it's a breeze... As for developping a general library for PDF export, it also crossed my mind a few times... BTW, please correct me if I'm wrong, but I vaguely recall reading somewhere (long time ago) that developping an app that can read PDF files is OK, but OTOH developping an app that generates PDF files requires to purchase a license from Adobe... Does this rule still apply ? And, if yes, would a PDF export lib for Rev require a license ? Best, JB From bob at armbase.com Tue Dec 2 07:31:26 2003 From: bob at armbase.com (Bob Hartley) Date: Tue, 02 Dec 2003 12:31:26 +0000 Subject: listing files in a directory folder and subfolders and copy Message-ID: <6.0.0.22.0.20031202121532.023ed698@udcf.gla.ac.uk> Hi all I am new to revolution. I have been impressed by the demo and after 5 days decided to buy it. :-)))) I'm creating an app for our office to copy files from one directory to another. "I" normally use total commander for this on windows, but my colleagues are still insistent on explorer. Doh!!!! The app I want to create is simple. It should be able to browse to a directory folder and list all files in the folder and subfolders that have the .pic extension. E.g. clicking on the "find folder" button in the schematic below will open the windows browse template and a colleague can navigate to their folder and by clicking OK it will list the paths to those files. eg R:\medical\dave\images or R:\medical\bobsstuff\ However the folder "images will have 20 folders in it and the .pic files will be in these. IE. It needs to list all the .pic files in the sub-folders. Then clicking on the "put in this folder"; all the files listed will be copied to the destination folder It will look like this ############################################## get image files from this directory /////////////// find folder this is a box ////////////// //////////////////////// put in this folder another box //////////////////////// //////////// COPY /////////// I checked the help files and can see how to list a files and folders in one directory. OK so far but to list all in the subfolders is not clear to me. Thanks for the help and bearing with a newbie. Cheers Bob From wouter.abraham at pi.be Tue Dec 2 07:48:35 2003 From: wouter.abraham at pi.be (Wouter) Date: Tue, 2 Dec 2003 13:48:35 +0100 Subject: cross-platform compress & decompress In-Reply-To: <20031202023854.C11269300B8@mail.runrev.com> References: <20031202023854.C11269300B8@mail.runrev.com> Message-ID: On 02 Dec 2003, at 03:38, use-revolution-request at lists.runrev.com wrote: > Message: 4 > Date: Mon, 1 Dec 2003 16:36:59 -0800 > From: Mark Brownell > Subject: Re: cross-platform compress & decompress > To: How to use Revolution > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed > snip > I have tried compressing and decompressing the whole file as the first > test. I tried compressing the data from a variable as a second test. > I've looked at the same data in a text editor on both platforms and I > did a comparison of charToNum() of the compressed data on both > platforms. This was the exact same problem I had with blowfish I think. > I solved it by constricting cross-platform data transfers to less than > ascii 127; even though the data can represent up to ascii 255. My > blowfish algorithm does it all as numerical values until the final > rendering. I had to drop binaryEncode() & binaryDecode() in order to > get numerical only results within the process. That's why I think it's > something like upper ascii character values across platforms. The < put binaryDecode("N",str,halfBlock) into numConverted > in your blowfish handler can produce an unsigned integer on the Windows platform where as on the Mac a signed integer is produced. This is probably an engine related problem. To test this try the following on both platforms and compare: on mouseUp put num2char("169,170,171,172") into x ## N - decode signed four-byte integers in network order put binaryDecode("N",x,halfBlock1) into numConverted ## I - decode unsigned four-byte integers in host order put binaryDecode("I",x,halfBlock2) into numConverted put halfblock1 && halfblock2 end mouseUp function num2char sx repeat for each item i in sx put numtochar(i) after z end repeat return z end num2char Greetings, WA From 3mcgrath at adelphia.net Tue Dec 2 07:50:51 2003 From: 3mcgrath at adelphia.net (Thomas J McGrath III) Date: Tue, 2 Dec 2003 07:50:51 -0500 Subject: revTools at startUp - again? Message-ID: <28A478D8-24C6-11D8-8A93-000A95DA60FA@adelphia.net> Hello everyone, I asked this a few days ago but did not get an answer? I added a few plugins to REV and now I have the BLUE tool bar show up - which is ok cause I like the save archives in it - but now the built-in revTools does not show up at start up. Where and how can I 'set' the revTools to show up at start up? Thanks Tom Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 2.1.2 Advanced Media Group Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net 220 Drake Road, Bethel Park, PA 15102 From kgjaqua1 at sbcglobal.net Tue Dec 2 08:23:59 2003 From: kgjaqua1 at sbcglobal.net (Kathy Jaqua) Date: Tue, 2 Dec 2003 05:23:59 -0800 (PST) Subject: Stacks 'Winking Out' or Hiding Behind BackDrop Message-ID: <20031202132359.69083.qmail@web80405.mail.yahoo.com> Re: Stacks 'winking out' or hiding behind backDrop. I am not sure if this is a bug. To keep the backDrop present; that is, set to black, one must keep in mind the message passing order. In HyperCard-remember the old days-we RESUME to the Card then the Stack. So try: In Stack Script: on openCard set the backDrop to "Black" pass openCard end openCard on suspend set the backDrop to none pass suspend end suspend on resume send "openCard" to this stack in 1 millisecond pass resume end resume I seem to remember that to avoid confusion when sending an 'on resume' or 'on resumeStack' message handler we put some 'resume' commands into a 'themOldHandlerBlues' message handler. This 'themOldHandlerBlues' handler is sent to openCard 'on resume'. So Try: on themOldHandlerBlues set the backDrop to "Black" end themOldHandlerBlues on openCard -- other openCard stuff here themOldHandlerBlues pass openCard end openCard I just discovered Revolution and find it delightful. Developing software in X-Talk languages again is a bright spot in my life. I think this will work in Revolution. (Did I mention "I Think"? I mean I Hope:) Kathy Graves Jaqua A Wildest Dream Software kgjaqua1 at sbcglobal.net From wouter.abraham at pi.be Tue Dec 2 08:27:18 2003 From: wouter.abraham at pi.be (Wouter) Date: Tue, 2 Dec 2003 14:27:18 +0100 Subject: use-revolution Digest, Vol 3, Issue 7 In-Reply-To: <20031202124709.C188A930093@mail.runrev.com> References: <20031202124709.C188A930093@mail.runrev.com> Message-ID: <40831C00-24CB-11D8-A2E0-003065CC999E@pi.be> >> Message: 4 >> Date: Mon, 1 Dec 2003 16:36:59 -0800 >> From: Mark Brownell >> Subject: Re: cross-platform compress & decompress >> To: How to use Revolution >> Message-ID: >> Content-Type: text/plain; charset=US-ASCII; format=flowed >> >> I have tried compressing and decompressing the whole file as the first >> test. I tried compressing the data from a variable as a second test. >> I've looked at the same data in a text editor on both platforms and I >> did a comparison of charToNum() of the compressed data on both >> platforms. This was the exact same problem I had with blowfish I >> think. >> I solved it by constricting cross-platform data transfers to less than >> ascii 127; even though the data can represent up to ascii 255. My >> blowfish algorithm does it all as numerical values until the final >> rendering. I had to drop binaryEncode() & binaryDecode() in order to >> get numerical only results within the process. That's why I think it's >> something like upper ascii character values across platforms. snip PS In fact with a litle adjustment your Blowfish stack is working on both platforms Greetins, WA From livfoss at blueyonder.co.uk Tue Dec 2 08:44:40 2003 From: livfoss at blueyonder.co.uk (Graham Samuel) Date: Tue, 2 Dec 2003 13:44:40 +0000 Subject: Icons, IDs and Image Library Message-ID: I sent this email just now from the apple 'Mail' client and it bounced. Possibly some of it got through - if so, apologies for the partial double posting. I've been trying to chase a very obscure bug that's something to do with setting the icon of a button to the ID of an image. During this (so far unsuccessful) activity, I've found some strange things - well, strange to me. 1. IDs are unique to a stack, but not unique to a whole stack file (the same ID can appear in different stacks), but the 'icon' property of an image is just a number - it can't be qualified by a stack name. In fact the TD says: "You can set the ID of an image. Be careful not to set an image ID to a number that's the ID of another object in the same stack: since Revolution uses IDs to keep track of objects, a conflict may prevent Revolution from being able to access one or both objects." But since you can't choose ID numbers (can you?) the possibility does exist of the icon property pointing to an unintended image (i.e. one in a different stack from the one intended). How can I make sure this doesn't happen? (BTW I think this is a rather sloppy exception to the normal scope rules, - you can imagine ID refs like 3.1055 meaning "ID 1055 in stack 3", which would be unique - but I guess there must be at least historical reasons for it). 2. If I set the icon property of a button using the IDE by clicking on the symbol next to the 'icon' field in the object's inspector, I then get a window which lists the available icons, including those in 'this stack' - but I now see that although all the images in the current stack are listed, some of then show **the wrong ID numbers** in the corresponding tooltip - the only way to find out which ID you're using. For example, one reported in its tooltip as ID 1043 turns out to have ID 1103 - 1043 was deleted from an earlier version and is not now assigned. Is this a bug? 3. I guess this is likely my fault, but it appears so far that if I set the icon of my button to an animated GIF (yes, that old thing!), for just some GIF IDs the animation doesn't show up, even though the GIF is merrily animating on its own card (not shown to the user). I'm not really asking for listers to waste any more time on this, but I admit I would be interested in any ideas about how I might attack the problem. TIA Graham -- ------------------------------------------------------------------- Graham Samuel / The Living Fossil Co. / UK & France From xbury.cs at clearstream.com Tue Dec 2 09:13:06 2003 From: xbury.cs at clearstream.com (xbury.cs at clearstream.com) Date: Tue, 2 Dec 2003 15:13:06 +0100 Subject: Icons, IDs and Image Library Message-ID: First, the nice answer: The image's name can be used as the icon reference! Of course the one thing that could be also nice to use is the AltID prop but it's another missing piece in the Props palette. And you can't use it to assign a button an icon - so you wonder why it exists right? Now regarding confusion between two similar IDs in separate stacks, I'd avoid it! It seems that the first loaded ID is the one in use which may not be your choice... These would be nice feature requests but since my last 3 concize posts to bugzilla went lost, my 2 months-old bugzilla report is still untouched and Kevin still doesn't answer an important mail I sent him 2 months ago, I gave up using Confuzilla... Anyone else having problems with bugzilla? On 02/12/2003 14:44:40 use-revolution-bounces wrote: >I sent this email just now from the apple 'Mail' client and it >bounced. Possibly some of it got through - if so, apologies for the >partial double posting. > >I've been trying to chase a very obscure bug that's something to do >with setting the icon of a button to the ID of an image. During this >(so far unsuccessful) activity, I've found some strange things - >well, strange to me. > >1. IDs are unique to a stack, but not unique to a whole stack file >(the same ID can appear in different stacks), but the 'icon' property >of an image is just a number - it can't be qualified by a stack name. >In fact the TD says: > >"You can set the ID of an image. Be careful not to set an image ID to >a number that's the ID of another object in the same stack: since >Revolution uses IDs to keep track of objects, a conflict may prevent >Revolution from being able to access one or both objects." > >But since you can't choose ID numbers (can you?) the possibility does >exist of the icon property pointing to an unintended image (i.e. one >in a different stack from the one intended). How can I make sure this >doesn't happen? (BTW I think this is a rather sloppy exception to the >normal scope rules, - you can imagine ID refs like 3.1055 meaning "ID >1055 in stack 3", which would be unique - but I guess there must be >at least historical reasons for it). > >2. If I set the icon property of a button using the IDE by clicking >on the symbol next to the 'icon' field in the object's inspector, I >then get a window which lists the available icons, including those in >'this stack' - but I now see that although all the images in the >current stack are listed, some of then show **the wrong ID numbers** >in the corresponding tooltip - the only way to find out which ID >you're using. For example, one reported in its tooltip as ID 1043 >turns out to have ID 1103 - 1043 was deleted from an earlier version >and is not now assigned. Is this a bug? > >3. I guess this is likely my fault, but it appears so far that if I >set the icon of my button to an animated GIF (yes, that old thing!), >for just some GIF IDs the animation doesn't show up, even though the >GIF is merrily animating on its own card (not shown to the user). I'm >not really asking for listers to waste any more time on this, but I >admit I would be interested in any ideas about how I might attack the >problem. > >TIA > >Graham Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER From xbury.cs at clearstream.com Tue Dec 2 09:15:23 2003 From: xbury.cs at clearstream.com (xbury.cs at clearstream.com) Date: Tue, 2 Dec 2003 15:15:23 +0100 Subject: Icons, IDs and Image Library Message-ID: Shocking! Sorry about the suggestion using the name! The name gets reverted to the image ID after a desel-reselection... Be my guest to post another zilla bug... On 02/12/2003 15:13:06 use-revolution-bounces wrote: >First, the nice answer: The image's name can be used as the icon >reference! > >Of course the one thing that could be also nice to use is the AltID prop >but >it's another missing piece in the Props palette. And you can't use it to >assign >a button an icon - so you wonder why it exists right? > >Now regarding confusion between two similar IDs in separate stacks, I'd >avoid it! >It seems that the first loaded ID is the one in use which may not be your >choice... > >These would be nice feature requests but since my last 3 concize posts to >bugzilla >went lost, my 2 months-old bugzilla report is still untouched and Kevin >still >doesn't answer an important mail I sent him 2 months ago, I gave up using >Confuzilla... > >Anyone else having problems with bugzilla? > >On 02/12/2003 14:44:40 use-revolution-bounces wrote: >>I sent this email just now from the apple 'Mail' client and it >>bounced. Possibly some of it got through - if so, apologies for the >>partial double posting. >> >>I've been trying to chase a very obscure bug that's something to do >>with setting the icon of a button to the ID of an image. During this >>(so far unsuccessful) activity, I've found some strange things - >>well, strange to me. >> >>1. IDs are unique to a stack, but not unique to a whole stack file >>(the same ID can appear in different stacks), but the 'icon' property >>of an image is just a number - it can't be qualified by a stack name. >>In fact the TD says: >> >>"You can set the ID of an image. Be careful not to set an image ID to >>a number that's the ID of another object in the same stack: since >>Revolution uses IDs to keep track of objects, a conflict may prevent >>Revolution from being able to access one or both objects." >> >>But since you can't choose ID numbers (can you?) the possibility does >>exist of the icon property pointing to an unintended image (i.e. one >>in a different stack from the one intended). How can I make sure this >>doesn't happen? (BTW I think this is a rather sloppy exception to the >>normal scope rules, - you can imagine ID refs like 3.1055 meaning "ID >>1055 in stack 3", which would be unique - but I guess there must be >>at least historical reasons for it). >> >>2. If I set the icon property of a button using the IDE by clicking >>on the symbol next to the 'icon' field in the object's inspector, I >>then get a window which lists the available icons, including those in >>'this stack' - but I now see that although all the images in the >>current stack are listed, some of then show **the wrong ID numbers** >>in the corresponding tooltip - the only way to find out which ID >>you're using. For example, one reported in its tooltip as ID 1043 >>turns out to have ID 1103 - 1043 was deleted from an earlier version >>and is not now assigned. Is this a bug? >> >>3. I guess this is likely my fault, but it appears so far that if I >>set the icon of my button to an animated GIF (yes, that old thing!), >>for just some GIF IDs the animation doesn't show up, even though the >>GIF is merrily animating on its own card (not shown to the user). I'm >>not really asking for listers to waste any more time on this, but I >>admit I would be interested in any ideas about how I might attack the >>problem. >> >>TIA >> >>Graham > >Visit us at http://www.clearstream.com > >IMPORTANT MESSAGE > >Internet communications are not secure and therefore Clearstream International >does not accept legal responsibility for the contents of this message. > >The information contained in this e-mail is confidential and may be legally >privileged. It is intended solely for the addressee. If you are not the >intended recipient, any disclosure, copying, distribution or any action taken >or omitted to be taken in reliance on it, is prohibited and may be unlawful. >Any views expressed in this e-mail are those of the individual sender, except >where the sender specifically states them to be the views of Clearstream >International or of any of its affiliates or subsidiaries. > >END OF DISCLAIMER >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER From rcozens at pon.net Tue Dec 2 09:04:35 2003 From: rcozens at pon.net (Rob Cozens) Date: Tue, 2 Dec 2003 07:04:35 -0700 Subject: Control Ids & Ordinals of Cloned Stacks Message-ID: Hi All, Yesterday I was surprised to find that the ids & ordinals of the menu buttons and other controls of a cloned stack were not the same as those in the stack it was cloned from. (At least not always, if it seems to work for you, try modifying the order of the controls in the source stack before cloning it.) Apparently, if one uses control id references in stack handlers, one must be sure never to clone the stack. I reference menu buttons by id rather than name to support application translatability. I have had to change the references from "button id [the id]" to "button [ordinal] of group "myMenubar" in stacks that can be cloned (plain "button [ordinal]" also resolves to different controls in the original & cloned stacks). It seems to me that, ideally, a cloned stack should be identical to the stack from which it was cloned. If you are expecting this behavior, be aware it isn't always so. Rob Cozens CCW, Serendipity Software Company http://www.oenolog.net/who.htm "And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee." from "The Triple Foole" by John Donne (1572-1631) From xbury.cs at clearstream.com Tue Dec 2 10:10:21 2003 From: xbury.cs at clearstream.com (xbury.cs at clearstream.com) Date: Tue, 2 Dec 2003 16:10:21 +0100 Subject: Control Ids & Ordinals of Cloned Stacks Message-ID: Rob, try the old finder duplicate file feature! Just remember that RR or MC can't handle two stacks with the same name! -- So many limits and just one lifetime to bust them! ---------------------=--------------------- Xavier Bury TNS NT LAN Server ext 6465 Rob Cozens Sent by: use-revolution-bounces at lists.runrev.com 02/12/03 15:04 Please respond to How to use Revolution To: How to use Revolution cc: Subject: Control Ids & Ordinals of Cloned Stacks . Hi All, Yesterday I was surprised to find that the ids & ordinals of the menu buttons and other controls of a cloned stack were not the same as those in the stack it was cloned from. (At least not always, if it seems to work for you, try modifying the order of the controls in the source stack before cloning it.) Apparently, if one uses control id references in stack handlers, one must be sure never to clone the stack. I reference menu buttons by id rather than name to support application translatability. I have had to change the references from "button id [the id]" to "button [ordinal] of group "myMenubar" in stacks that can be cloned (plain "button [ordinal]" also resolves to different controls in the original & cloned stacks). It seems to me that, ideally, a cloned stack should be identical to the stack from which it was cloned. If you are expecting this behavior, be aware it isn't always so. Rob Cozens CCW, Serendipity Software Company http://www.oenolog.net/who.htm "And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee." from "The Triple Foole" by John Donne (1572-1631) _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Visit us at http://www.clearstream.com IMPORTANT MESSAGE Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries. END OF DISCLAIMER From gizmotron at earthlink.net Tue Dec 2 10:48:17 2003 From: gizmotron at earthlink.net (Mark Brownell) Date: Tue, 2 Dec 2003 07:48:17 -0800 Subject: cross-platform compress & decompress In-Reply-To: Message-ID: On Tuesday, December 2, 2003, at 04:48 AM, Wouter wrote: > The < put binaryDecode("N",str,halfBlock) into numConverted > > in your blowfish handler can produce an unsigned integer on > the Windows platform where as on the Mac a signed integer is > produced. This is probably an engine related problem. > To test this try the following on both platforms and compare > [snip] > Greetings, > WA > > PS In fact with a litle adjustment your Blowfish stack is working on > both platforms I tried it with a speed test and the solution I'm using now: on mouseUp ## I added speed testing put num2char("169,170,171,172") into x ## N - decode signed four-byte integers in network order put binaryDecode("N",x,halfBlock1) into numConverted ## I - decode unsigned four-byte integers in host order put the milliseconds into zap1 repeat with i = 1 to 100000 put binaryDecode("I",x,halfBlock2) into numConverted end repeat put the milliseconds into zap2 put zap2 - zap1 into t1 ## my solution I'm using now put the milliseconds into zap6 repeat with ii = 1 to 100000 put charToNum(char 4 of x) + (charToNum(char 3 of x) * 256) + (charToNum(char 2 of x) * 65536) + (charToNum(char 1 of x) * 16777216) bitAnd 4294967295 into halfBlock3 end repeat put the milliseconds into zap7 put zap7 - zap6 into t2 put halfblock1 && halfblock2 && halfblock3 && t1 && t2 ## result = -1448432724 2846534572 2846534572 294 664 end mouseUp function num2char sx repeat for each item i in sx put numtochar(i) after z end repeat return z end num2char I'll have to see if this works with macToIso/isoToMac for delivery. I'm curently using ascii numbers that in the end take the charSet issue out of the delivery issue for decryption. The numbers also split out into an array that allows for one step to be dropped during decryption. Thank you for mentioning this. This could add at the least a 100% increase in speed to the current state of the working version. Mark Brownell From sanke at hrz.uni-kassel.de Tue Dec 2 10:41:34 2003 From: sanke at hrz.uni-kassel.de (Wilhelm Sanke) Date: Tue, 02 Dec 2003 16:41:34 +0100 Subject: How do I create an unreferenced image? Message-ID: <3FCCB2AE.9080403@hrz.uni-kassel.de> On Mon, 01 Dec 2003, Ken Norris wrote: >Hi Wilhelm, >(snip) >You can choose either one from the pulldown File menu in RR: > >Import As Control (embedded) ...or >New Referenced Control (file reference) > >No waiting, no extra dialog (other than the Answer file), nothing to >'uncheck'. > >Howcome that's 'mis-improved'? > >Ken N. > Hi Ken, You win. This happens when you are in the course of Revolution bashing because so many things are irking you. Look twice before you speak is a good rule. Best regards, Wilhelm Sanke From bvg at mac.com Tue Dec 2 10:50:02 2003 From: bvg at mac.com (=?ISO-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 2 Dec 2003 16:50:02 +0100 Subject: listing files in a directory folder and subfolders and copy In-Reply-To: <6.0.0.22.0.20031202121532.023ed698@udcf.gla.ac.uk> Message-ID: <30CAE75A-24DF-11D8-B2B1-003065AD94A4@mac.com> You need to make a directory walker. You have to loop trough all the folders and set the defaultfolder to it, then loop trough these folders etc. Watch out for the .. directory on macosx and unix systems, it might trap you in a infinite loop. for example: --WARNING script untested on lookateachfolder thefolder --thefolder is a path set the defaultfolder to thefolder repeat for each line theLine in the folders if char one of theLine <> "." then set the defaultfolder to theLine --do your file listing here using "the files" lookateachfolder (the defaultfolder & "/" & theLine) --for folders in this folder end if end repeat end lookateachfolder On Dienstag, Dez 2, 2003, at 13:31 Europe/Zurich, Bob Hartley wrote: > Hi all > > I am new to revolution. I have been impressed by the demo and after 5 > days decided to buy it. :-)))) > > I'm creating an app for our office to copy files from one directory to > another. "I" normally use total commander for this on windows, but my > colleagues are still insistent on explorer. Doh!!!! > > The app I want to create is simple. It should be able to browse to a > directory folder and list all files in the folder and subfolders that > have the .pic extension. E.g. clicking on the "find folder" button in > the schematic below will open the windows browse template and a > colleague can navigate to their folder and by clicking OK it will list > the paths to those files. > > eg R:\medical\dave\images > or R:\medical\bobsstuff\ > However the folder "images will have 20 folders in it and the .pic > files will be in these. IE. It needs to list all the .pic files in the > sub-folders. > > Then clicking on the "put in this folder"; all the files listed will > be copied to the destination folder > > > It will look like this > ############################################## > > get image files from this directory > > /////////////// > find folder this is a box > ////////////// > > //////////////////////// > put in this folder another box > //////////////////////// > > //////////// > COPY > /////////// > > I checked the help files and can see how to list a files and folders > in one directory. OK so far but to list all in the subfolders is not > clear to me. > > Thanks for the help and bearing with a newbie. > > > Cheers > Bob > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From klaus at major-k.de Tue Dec 2 11:40:51 2003 From: klaus at major-k.de (Klaus Major) Date: Tue, 2 Dec 2003 17:40:51 +0100 Subject: listing files in a directory folder and subfolders and copy In-Reply-To: <6.0.0.22.0.20031202121532.023ed698@udcf.gla.ac.uk> References: <6.0.0.22.0.20031202121532.023ed698@udcf.gla.ac.uk> Message-ID: <4A2BAD29-24E6-11D8-8303-000A27B49A96@major-k.de> Hi Bob, > Hi all > > I am new to revolution. I have been impressed by the demo and after 5 > days decided to buy it. :-)))) > ... > However the folder "images will have 20 folders in it and the .pic > files will be in these. IE. It needs to list all the .pic files in the > sub-folders. > I checked the help files and can see how to list a files and folders > in one directory. OK so far but to list all in the subfolders is not > clear to me. > Thanks for the help and bearing with a newbie. Check this: http://www.sonsothunder.com/ Click on "Develper resources" in the pag-menu, then on "Revolution" on the left side, scroll to "File/folder manipulations" and click "file007 - Providing a Complete Hierarchical File Listing (Directory Walking) " There you will find 2 smart examples... > Cheers Hope that helps... > Bob Regards Klaus Major klaus at major-k.de www.major-k.de From malte.brill at t-online.de Tue Dec 2 09:21:39 2003 From: malte.brill at t-online.de (Malte Brill) Date: Tue, 02 Dec 2003 15:21:39 +0100 Subject: specialFolderPath - Where to store Preferences Crossplattform In-Reply-To: <20031202124709.C188A930093@mail.runrev.com> Message-ID: Hi list, I hope the Win/*nix users can help me... I know this has been covered somewhere deep down in the archives, but I cannot find it with both google and alexs search engine. Has anyone written a handler to store preferences cross plattform? I need a reliable path to a folder where I can write preferences to cross plattform. On the mac specialFolderPath ("preferences") works fine for both, 9 and flavours of X. But what is the pendant on Win/*nix? Thanks a lot, Malte From alex at mindlube.com Tue Dec 2 12:09:21 2003 From: alex at mindlube.com (Alex Rice) Date: Tue, 2 Dec 2003 10:09:21 -0700 Subject: specialFolderPath - Where to store Preferences Crossplattform In-Reply-To: References: Message-ID: <45B752D6-24EA-11D8-BD67-000393C4760A@mindlube.com> On Dec 2, 2003, at 7:21 AM, Malte Brill wrote: > I need a reliable path to a folder where I can write preferences to > cross > plattform. On the mac specialFolderPath ("preferences") works fine for > both, > 9 and flavours of X. But what is the pendant on Win/*nix? In Windows, it depends if it's one of the multiuser Windows like Windows 2000, NT, XP. In those cases a good place to put it is in Documents and Settings/Username/Application Data/YourApp/xxx. For Windows 95,98,ME then I think you should store the prefs in the application folder itself: Program Files/YourApp/prefs On Unix, preferences are usually put in hidden files or folders in the user's home directory. So $HOME/.yourAppPrefs or $HOME/.yourApp/prefs Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From bvlahos at mac.com Tue Dec 2 12:22:31 2003 From: bvlahos at mac.com (Bill Vlahos) Date: Tue, 2 Dec 2003 09:22:31 -0800 Subject: specialFolderPath - Where to store Preferences Crossplattform In-Reply-To: References: Message-ID: <1C4F3F88-24EC-11D8-98A7-000393C44AE0@mac.com> The amazing Rinaldi has created just what you want. Check on the Revolution developers contribution page for PrefsBuilder. Bill Vlahos On Dec 2, 2003, at 6:21 AM, Malte Brill wrote: > Hi list, > > I hope the Win/*nix users can help me... > > I know this has been covered somewhere deep down in the archives, but I > cannot find it with both google and alexs search engine. > > Has anyone written a handler to store preferences cross plattform? > > I need a reliable path to a folder where I can write preferences to > cross > plattform. On the mac specialFolderPath ("preferences") works fine for > both, > 9 and flavours of X. But what is the pendant on Win/*nix? > > Thanks a lot, > > Malte > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From klaus at major-k.de Tue Dec 2 12:50:03 2003 From: klaus at major-k.de (Klaus Major) Date: Tue, 2 Dec 2003 18:50:03 +0100 Subject: specialFolderPath - Where to store Preferences Crossplattform In-Reply-To: References: Message-ID: Hi Malte and all, > Hi list, > > I hope the Win/*nix users can help me... > > I know this has been covered somewhere deep down in the archives, but I > cannot find it with both google and alexs search engine. > > Has anyone written a handler to store preferences cross plattform? > > I need a reliable path to a folder where I can write preferences to > cross > plattform. On the mac specialFolderPath ("preferences") works fine for > both, > 9 and flavours of X. But what is the pendant on Win/*nix? Here is a little function i wrote to get the correct, read write permissioned" folder... function safe_place_to_store_my_bloody_prefs switch the platform case "MacOS" put specialfolderpath("preferences") into spfp break case "Win32" if word 1 of the systemversion = "NT" then put specialFolderPath(35) into spfp else put specialfolderpath("system") into spfp end if break default put $HOME into spfp break end switch return spfp & "/" end safe_place_to_store_my_bloody_prefs On a mac it returns: OS > 10 -> System/Preferences/ OS X -> Your homefolder/Library/Preferences On Win: 95, 98 & ME -> the black hole a.k.a the bermuda triangle ;-) -> C:/WINDOWS/ NT, 2000 & XP -> C:/Documents and Settings/All Users/Application Data/ (Not always "C:" of course, but you get the picture... ;-) On Unix/Linux: the homefolder of the currentuser Since i have little knowledge of *NIX there might be better places to store the prefs, but i don't know them ;-) At least the current user CAN write to his homefolder... > Thanks a lot, Hope that helps... > Malte Regards Klaus Major klaus at major-k.de www.major-k.de From ropendak at comcast.net Tue Dec 2 15:50:02 2003 From: ropendak at comcast.net (Roman Opendak) Date: Tue, 2 Dec 2003 12:50:02 -0800 Subject: RunRev Message-ID: <003901c3b915$dc2d1660$b6f35144@radnor01.pa.comcast.net> Hello, I am a fairly capable programmer who started with HyperCard 1.2 in 1992 :-) I was in sixth grade then! Now totally psyched to find Runtime Revolution. To me it means that thousands of hours of my life have not gone to waste. Two handed keyboard shortcuts so far, glad to see some of apples interface guidelines retained. To see the clarity of hypercard in the abstracted world of windows is amazing. Does the runrev community need a well designed, open app. or does anyone want to work together on a free project. I am an experienced programmer, (means i know to stay away from Java and C) focused on interface design and optimization. I have many tricks up my sleve. Just need an idea. Cheers, Rome From cbrunner at edc.org Tue Dec 2 13:29:40 2003 From: cbrunner at edc.org (Cornelia Brunner) Date: Tue, 02 Dec 2003 13:29:40 -0500 Subject: Attaching OSX standalones to email Message-ID: I cannot attach a MacOSX Standalone file to email (I use Entourage, but I tried other programs, including web mail and it doesn't work there either) even though I have no difficulty attaching a MacOS9 or Windows Standalone file. What's the problem? On a PC, the standalone MACOSX file turns into a folder, which is why it can't be attached there. On the Mac, it is disabled when I try to attach it. Is there a work-around? From klaus at major-k.de Tue Dec 2 13:41:03 2003 From: klaus at major-k.de (Klaus Major) Date: Tue, 2 Dec 2003 19:41:03 +0100 Subject: Attaching OSX standalones to email In-Reply-To: References: Message-ID: <1515EA5C-24F7-11D8-8303-000A27B49A96@major-k.de> Hi Cornelia, > I cannot attach a MacOSX Standalone file to email (I use Entourage, > but I > tried other programs, including web mail and it doesn't work there > either) > even though I have no difficulty attaching a MacOS9 or Windows > Standalone > file. What's the problem? On a PC, the standalone MACOSX file turns > into a > folder, which is why it can't be attached there. On the Mac, it is > disabled > when I try to attach it. Is there a work-around? Create a Stuffit-archive from the standalone :-) Or a ZIP-archive... Works fine and is standard on the mac... Hope that helps. Regards Klaus Major klaus at major-k.de www.major-k.de P.S. OS X standalones ARE folders, actually! OS X just fools the user and makes him see an app :-D But a control-click reveals the truth... From alex at mindlube.com Tue Dec 2 13:57:27 2003 From: alex at mindlube.com (Alex Rice) Date: Tue, 2 Dec 2003 11:57:27 -0700 Subject: Attaching OSX standalones to email In-Reply-To: References: Message-ID: <5F8F68DA-24F9-11D8-BD67-000393C4760A@mindlube.com> On Dec 2, 2003, at 11:29 AM, Cornelia Brunner wrote: > I cannot attach a MacOSX Standalone file to email (I use Entourage, > but I > tried other programs, including web mail and it doesn't work there > either) > even though I have no difficulty attaching a MacOS9 or Windows > Standalone > file. What's the problem? On a PC, the standalone MACOSX file turns > into a > folder, which is why it can't be attached there. On the Mac, it is > disabled > when I try to attach it. Is there a work-around? Cornelia, an OS X a standalone is a "bundle". It's actually a folder containing special files including a manifest, icons and an executable file. That's why it doesn't work attaching it to email: the email client is not smart enough to traverse the whole bundle attaching all the pieces. I don't use .sit or .zip, as Klaus recommended, instead I use DMG. This is a disk image and will open up with Disk Copy.app automatically when the user double clicks on it. See Disk Copy.app or Disk Utility.app. Or use the good shareware product DropDMG. Alex Rice | Mindlube Software | what a waste of thumbs that are opposable to make machines that are disposable -Ani DiFranco From pixelbird at interisland.net Tue Dec 2 14:21:43 2003 From: pixelbird at interisland.net (Ken Norris) Date: Tue, 02 Dec 2003 11:21:43 -0800 Subject: How do I create an unreferenced image? In-Reply-To: <20031202124708.B781C9300A7@mail.runrev.com> Message-ID: Hi Scott, > Date: Mon, 01 Dec 2003 21:35:56 -0800 > From: Scott Rossi > Subject: Re: How do I create an unreferenced image? > On 12/1/03 8:38 PM, "Ken Norris" wrote: > >>> once I've worked out how to name the >>> image after it's imported (don't worry, I'm sure that this is trivial >>> although it's not mentioned in the documentation for 'import' - I guess >>> I just have to find the last numbered image and change its name). >> ---------- >> Yes, but you could write it into the script, pretty much like you just said: >> >> get the id of the last image >> set the name of image id it to "MyFabulousDrawing" > > > You don't even need the first line: > > set name of last img to "MyFabulousDrawing" ---------- By golly, you're right! I was just thinking he may have wanted to retrieve the id for other referencing purposes. Ken N. From pixelbird at interisland.net Tue Dec 2 14:30:21 2003 From: pixelbird at interisland.net (Ken Norris) Date: Tue, 02 Dec 2003 11:30:21 -0800 Subject: HELP with mov FLASHING In-Reply-To: <20031202124708.B781C9300A7@mail.runrev.com> Message-ID: Hi Tom, > Date: Mon, 1 Dec 2003 23:06:47 -0500 > From: Thomas J McGrath III <3mcgrath at adelphia.net> > Subject: HELP with mov FLASHING > Well now the movie flashes to white when I click on it. It does change > to the next slide but the flash to white is just awful. ---------- I had a problem like that awhile back. Try a "send in