From rev at thehairshow.co.uk Wed May 1 04:16:00 2002 From: rev at thehairshow.co.uk (Bernie) Date: Wed May 1 08:16:00 2002 Subject: Another new kid on the block Message-ID: <001901c1f112$5a2e8cb0$c600a8c0@dev> Hi Ken, >I have a bunch of VB experience, and would like to work with you on this. >There is a partial comparison of VB and Rev in a sample database stack that >I built for RunRev. You can find it at: Got it. It was one of the first things I looked at. Nicely written. >I know what you mean about assignment, and there are definitely some things >from VB that I would *love* to have in Rev (IntelliSense and direct access >to system DLLs as a couple), but there is so much that you can do with Rev, >and the cross-platform deployment benefits are awesome. Access to system DLLs would be very good and Intellisense would be nice to have though not as important. I've spent a bit more time with the documentation and it is pretty good. One thing I didn't get was Option Explicit. There is a similar thing in Rev but I couldn't find out where to set it. I have quite a few questions but most of them are probably in the docs. I haven't found anything on TWAIN yet and a lot of what I do is graphical. Is there a way of accessing cameras and scanners in an app? I think it would be great to have a site with a lot of little snippets of how-to code and mini tutorials similar to the tutorials built in. I need time to really play with Rev but right now I have three projects to get out in the next two months. One of them I'd love to do in Rev but I will need to write up all the functions first to make sure they can all be done. Bernie From Rayman at citenet.net Wed May 1 04:18:01 2002 From: Rayman at citenet.net (Raymond Manny) Date: Wed May 1 08:18:01 2002 Subject: to select multiple Fields ? Message-ID: hi, Is there a possibility to select multiple Fields (let us say Field1,Field2,Field3...) at the same time ,to copy all and to paste all to a new selection of multiple Fields (let us say Fieldx,Fieldy,Fieldz...) ? That is what one does commonly in a spread sheet . Thank you. Raymond Manny From gcanyon at inspiredlogic.com Wed May 1 06:17:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Wed May 1 10:17:01 2002 Subject: Screen Shots for WWDC Presentation Message-ID: I'm going to be presenting Revolution at the WWDC, and I'd like to include screen shots from people's Revolution-built applications. Anyone who would like to be included should send me a representative screen shot of their application. If possible, make it fit within 800x600. If you've already sent in a screen shot, then I should be getting that already (but feel free to send it to me anyway if you like). -- regards, Geoff Canyon gcanyon at inspiredlogic.com From kray at sonsothunder.com Wed May 1 06:30:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Wed May 1 10:30:01 2002 Subject: Another new kid on the block References: <001901c1f112$5a2e8cb0$c600a8c0@dev> Message-ID: <000701c1f124$2f7b4910$7c00a8c0@mckinley.dom> Bernie, > One thing I didn't get was Option Explicit. There is a similar thing in Rev > but I couldn't find out where to set it. It's called the "explicitVariables", and it is a global property that is a boolean. It defaults to 'false'. Usually it is put into a 'preOpenStack' or 'openStack' handler to get it started, and since it is a global property, it lasts for the entire session. Use it something like this: on preOpenStack set the explicitVariables to true end preOpenStack > I haven't found anything on TWAIN yet and a lot of what I do is > graphical. Is there a way of accessing cameras and scanners in an app? You can read and write directly to ports, but I don't know much about accessing or controlling cameras/scanners directly. > I think it would be great to have a site with a lot of little snippets of > how-to code and mini tutorials similar to the tutorials built in. Agreed! Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From dsc at swcp.com Wed May 1 09:03:01 2002 From: dsc at swcp.com (Dar Scott) Date: Wed May 1 13:03:01 2002 Subject: TCP/IP External for Windows 2000 In-Reply-To: <004401c1ee34$80fb56b0$88b15bd1@lanfear> Message-ID: <1D394F1D-5D2D-11D6-987B-0050E4C0B205@swcp.com> On Saturday, April 27, 2002, at 03:43 PM, Shao Sean wrote: >> for a different feature set. > mm.. considering you can write any feature that you require using > either the > TCP or UDP protocols, i'm personally confused by what you mean.. Well, my needs are a little strange. Here are some reasons I'm looking for an alternate way to do TCP/IP (say, external) for a while for Windows 2000. The last one is very important to me. 1. Revolution UDP lacks needed features to create certain kinds of UDP clients and servers, including those based on Internet standards. I got the impression from Scott Raney's comments on the MC list a couple days ago that this will be addressed in the next MC release. Since the Revolution engine will lag behind this, it may be a while before this is addressed in Revolution. Dar's priority: Useful. 2. As a generalization of #2, it would be good to be able to control or get all port data for UDP. Dar's priority: Important. 3. And #2 can be applied to TCP. Dar's priority: Useful. Those shortcomings below have been reported and I believe are still in the verification stage at Revolution. 4. If a connection is not established on W2K (refused or no computer), the open callback is called and not socketClosed (as on OS X) or socketError making it hard to know when a connection is established. For many applications that rely on a banner response this is not much of a problem, though. Dar's priority: Important. 5. An established connection to a port on the same computer does not work (33%, 100%, & 100% of the time on three computers in my lab) on W2K. Strangely, a user window operation (drag, minimize, resize) between close and the next open will fix this. The first open always works. This is characterized by no open callback and by write timeouts. If anybody can point out something dumb I might be doing or a workaround, I'd be very pleased. Dar's priority: Acutely and painfully Important. So... I'm looking for alternate TCP/IP on W2K for now. Since, I hope, this is temporary, something that works on W2K only is OK. Dar Scott From prodevm at yahoo.com Wed May 1 10:51:01 2002 From: prodevm at yahoo.com (Steve L) Date: Wed May 1 14:51:01 2002 Subject: Shortcut keys of a button Message-ID: <20020501194807.16920.qmail@web20306.mail.yahoo.com> Hi all, I am trying to set the shortcut keys of a button: First, I went into the properties setting of the button and checked the :control" key with key "h" as the shortcut keys. This would not work; it did not execute the button's mouseUp when the keys were pressed. Then I tried scripting in on preopenCard, the set accelMods and accelKey commands that did not work either. I even made sure that the insertion point was not in a field, and even tried turning off the Rev UI, but nothing works. Any help is always appreciated. Thanks Steve __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From wow at together.net Wed May 1 11:45:01 2002 From: wow at together.net (Richard D. Miller) Date: Wed May 1 15:45:01 2002 Subject: Linux and the defaultfolder In-Reply-To: <20020501194807.16920.qmail@web20306.mail.yahoo.com> Message-ID: We're running into a problem with our first Linux customer for our Rev software and haven't a clue what is going on. Our software starts up from a Rev executable. The first thing it does is look for a small text file containing a valid serial number. It looks in the same folder from which the exe file was started. There is no path defined at that point, meaning it is relying on the defaultfolder to define the path. This works fine under Windows and Mac. We have over 1,000 customers using the software with no problem. However, we've been testing the same program built for a Linux environment. When the exe starts up, it looks for the text file in the Linux HOME directory, rather than within the startup folder. This then causes a series of problems during startup, as we use the defaultfolder command to identify the location of other files, but it can't find those files...even though they are in the same startup folder. Something isn't right. Anyone have a clue as to what is happening and how best to fix it? We have no way of testing the Linux version in house. Thanks. -- Richard Miller The Wood Exchange.info http://www.thewoodexchange.info 802-238-5355 802-951-2534 fax From JAMES.G.YATES at saic.com Wed May 1 12:29:01 2002 From: JAMES.G.YATES at saic.com (Yates, Glen) Date: Wed May 1 16:29:01 2002 Subject: Linux and the defaultfolder Message-ID: <33F0B58BF432D211B72200805FEFAAD905A64F89@hun-its-exs01.saic.com> > -----Original Message----- > From: Richard D. Miller [mailto:wow at together.net] > Sent: Wednesday, May 01, 2002 3:41 PM > To: use-revolution at lists.runrev.com > Subject: Linux and the defaultfolder > > > We're running into a problem with our first Linux customer for our Rev > software and haven't a clue what is going on. > > Our software starts up from a Rev executable. The first thing > it does is > look for a small text file containing a valid serial number. > It looks in the > same folder from which the exe file was started. There is no > path defined at > that point, meaning it is relying on the defaultfolder to > define the path. Well, for starters, I wouldn't use the defaultfolder command, as it is not actually a Rev/MC command. It is included only for compatibility with HC, Supercard, etc. and is mapped to the directory property. To make sure you are where you want to be, have you tried the following code: get the effective fileName of this stack set the itemDelimiter to "/" put empty into last item of it set the directory to it set the itemDelimiter to comma Note: the above code was taken straight from the metacard stackfiles tutorial on the xworlds web site (www.xworlds.com). -Glen Yates From mdmays at airmail.net Wed May 1 14:20:01 2002 From: mdmays at airmail.net (Michael D Mays) Date: Wed May 1 18:20:01 2002 Subject: Serial Port Toolkit In-Reply-To: Message-ID: Thanks David michael David Vaughan of drvaughan55 at mac.com wrote the following on 4/30/02 5:29 PM > Michael > > A stack of communications toolbox XCMDs, my old library of externals I > have picked up and those I wrote (easier than separating out and > documenting things again) and a text document on the sPort toolkit are > travelling directly to you, since even zipped to 550KB it is a bit over > the Rev limit of 15KB. From kurtkaufman at hotmail.com Wed May 1 17:00:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Wed May 1 21:00:01 2002 Subject: MIDI & RR Message-ID: Judy Perry: "...Don't have anything *useful* to offer here (unless I look up the reference) but this has been raised several times on the Hypercard list lately (where it's less important given that Hypercard directly supports midi-like scripted musical notation), but I seem to recall Scott Raney saying that it would be almost trivial to write something for MC/Rev that would do likewise if only someone were 'intrepid' enough...." Trying to recognize different parts of a simple MIDI file in a Hex editor is far from being a trivial task- for me, but I'll keep plugging away.... -Kurt _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From mac-stacks at kagi.com Wed May 1 23:26:01 2002 From: mac-stacks at kagi.com (Bruce A. Pokras) Date: Thu May 2 03:26:01 2002 Subject: Control printing of PDF files? Message-ID: I am hoping that someone can tell me how to print PDF files on the Mac using Revolution. In HyperCard, I could print PDFs directly using the "print " command: print [full path to PDF file] with [full path to Acrobat Reader] However, in Revolution, the "print" command is only useful for printing cards. Also, Acrobat Reader is not AppleScriptable. Regards, Bruce Pokras mac-stacks at kagi.com http://www.kagi.com/mac-stacks From david.bovill at opn-technologies.com Thu May 2 00:01:01 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Thu May 2 04:01:01 2002 Subject: Cookies In-Reply-To: Message-ID: Has anyone managed to set Cookies with libURL? From david.bovill at opn-technologies.com Thu May 2 00:01:05 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Thu May 2 04:01:05 2002 Subject: MIDI & RR In-Reply-To: Message-ID: It's going back a few years - but HyperMidi by Earlevel Engineering was very good. There was an interesting cross platform open source project based in France which offered externals and a wide range of Source code: MidiShare http://www.grame.fr/MidiShare/MainFrames.html I don't think they are still suporting the Xcmnd's and dll's though? > From: "Kurt Kaufman" > Subject: Re: MIDI & RR > > Judy Perry: > "...Don't have anything *useful* to offer here (unless I look up the > reference) but this has been raised several times on the Hypercard list > lately (where it's less important given that Hypercard directly supports > midi-like scripted musical notation), but I seem to recall Scott Raney > saying that it would be almost trivial to write something for MC/Rev that > would do likewise if only someone were 'intrepid' enough...." > > Trying to recognize different parts of a simple MIDI file in a Hex editor is > far from being a trivial task- for me, but I'll keep plugging away.... > > -Kurt > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From lifepaintandpassion at mac.com Thu May 2 05:56:00 2002 From: lifepaintandpassion at mac.com (lifepaintandpassion) Date: Thu May 2 09:56:00 2002 Subject: Back after a five month break ... with a cool Rev project that needs a partner :) Message-ID: Hi group! I'm returning after a five month silence that saw me move my family back to Toronto from the San Francisco bay area. I'm also seeking a partner to help me finish a (possibly) very lucrative shareware application built in Revolution. Let me explain a bit ... About eight months ago I was creating a small (four screen) application to compliment a very popular and award winning game that's available on both PC and Macs. The game is a ground-breaking title in its genre, hailed by critics as breathing new life into the genre due to its approach and gameplay, has sold more than 300,000 copies, and won numerous awards. I emailed the three creators of the game and showed them the application I was building and they were extremely impressed and enthusiastic about my app. The main creator actually wanted the code/APIs etc and suggested that the app could be part of the upcoming version 2 of the title. APIs ... :-) **The app is a desperately needed addition to the game.** I'm hoping someone could partner with me to finish the app. It's 90% complete ... the interface and all graphic are done, as is the majority of the Rev script. I need someone to ... 1. Finish the basic client chat code (so that each client will see what others are typing (requires a simple "server" app running 24/7 on a static IP)) ... think Gameranger if you're on a Mac. 2. Finish code that will allow a user to email a small attached text file to someone from within the app (so email client code is needed). 3. Have access to a static IP for beta-testing purposes. 4. Have 30 minutes to an hour each day to help test the app. 5. Have access to a PC and a Mac. 6. Perhaps help implement a registration feature (a field with a registration code that checks when connecting to the chat server that the code in the field exists in a text file?) As I said, the interface/design/main app is *ALL DONE* already. This thing is all but ready to announce for beta testing and sell. I'm suggesting a basic 50-50 profit split. The shareware price will be US$5 (or perhaps $10). The potential is audience is 300,000 people. Anyone interested can email me at lifepaintandpassion at mac.com. Please explain your experience with Rev and confirm your ability to finish the above-mentioned tasks. Regards, David Janik-Jones lifepaintandpassion at mac.com PS. Like cool fine art backgrounds/desktops for your computer? Visit my web site at http://homepage.mac.com/artspin for the free galleries of digital fine art created using Studio Artist. From dcragg at lacscentre.co.uk Thu May 2 06:01:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Thu May 2 10:01:01 2002 Subject: Cookies In-Reply-To: References: Message-ID: At 9:49 am +0000 2/4/02, David Bovill wrote: >Has anyone managed to set Cookies with libURL? I've not done it, and don't know too much about the mechanism, but it should be possible using the httpHeaders property and the libUrlLastRHHeaders() function. libUrlLastRHHeaders() returns the headers of the reponse to the most recent http request. You should be able to parse out the cookie header from this, and store it or whatever you need to do. When sending a cookie from client to server, you can set the httpHeaders to something like: Cookie: $Version="1"; Customer="WILE_E_COYOTE"; $Path="/acme" (example from rfc 2965. ) The httpHeaders gets set to empty after each request. Cheers Dave Cragg From david.bovill at opn-technologies.com Thu May 2 07:19:01 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Thu May 2 11:19:01 2002 Subject: Cookies In-Reply-To: Message-ID: Thanks Dave, digging around a bit I figured out a couple of things: 1) You are maintaining liburl - good luck :) 2) the httpheaders property appears to be a global property of the engine not of liburl (set the httpheaders to CookieHeader) - liburl help could be updated here? 3) lastRHHeader is a custom property of liburl (put the lastRHHeaders of stack liburl...) > From: Dave Cragg > Date: Thu, 2 May 2002 15:55:02 +0100 > To: David Bovill , > > Subject: Re: Cookies > > At 9:49 am +0000 2/4/02, David Bovill wrote: >> Has anyone managed to set Cookies with libURL? > > I've not done it, and don't know too much about the mechanism, but it > should be possible using the httpHeaders property and the > libUrlLastRHHeaders() function. > > libUrlLastRHHeaders() returns the headers of the reponse to the most > recent http request. You should be able to parse out the cookie > header from this, and store it or whatever you need to do. > > When sending a cookie from client to server, you can set the > httpHeaders to something like: > > Cookie: $Version="1"; Customer="WILE_E_COYOTE"; $Path="/acme" > > (example from rfc 2965. ) > > The httpHeaders gets set to empty after each request. > > Cheers > Dave Cragg > From dsc at swcp.com Thu May 2 07:21:00 2002 From: dsc at swcp.com (Dar Scott) Date: Thu May 2 11:21:00 2002 Subject: Where do you put your scripts? Message-ID: <10812351-5DE8-11D6-8794-0050E4C0B205@swcp.com> I don't mean for this to be a how-to question. I mean for it to be a style or code-management question. If I work alone (not too alone in this case--I visit use-revolution) I easily develop strange habits and when someone looks over shoulder, I hear things like, "WHAT are you doing?" or "Why are you doing that the hard way?" I realize people on this list have lots of experience and lots of good ideas. So I wonder... Where do you put your scripts? (What kind and how much goes into controls, groups, card, mainStack, inserts, library stack and whatever I neglected to mention?) Thanks! Dar Scott Near the northern Rio Grande From kurtkaufman at hotmail.com Thu May 2 07:47:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Thu May 2 11:47:01 2002 Subject: MIDI & RR Message-ID: <0C30A078-5DEC-11D6-8E12-00039348A1E6@hotmail.com> David, Thanks for your post. My interest in MIDI is very specific and limited: I am trying to design a music compositional tool that will randomize a (weighted or non-weighted) series of pitches, "play" them back as audible MIDI events (perhaps through QT), and save the resultant sequence as a MIDI file. No "live" recording is needed or desired. It seems to me (although maybe I"m wrong) that most MIDI externals are set up to patch MIDI data streams from one hardware or software component to another. I'm interested in the static creation of MIDI files. I have much to learn, with the timing element "Variable Length Quantities" expressed in bytes being the most confusing at this point....Most of the other "events" I can now recognize in the MIDI file. Scott Raney feels I probably can do what I need using the binaryEncode and binaryDecode functions within RR/MC, so as to make an external unnecessary. However, accessing the QT instruments directly (as opposed to playing back a .mid file in a player object) might be a different matter. -Kurt From dcragg at lacscentre.co.uk Thu May 2 09:43:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Thu May 2 13:43:01 2002 Subject: Cookies In-Reply-To: References: Message-ID: At 5:12 pm +0000 2/5/02, David Bovill wrote: > 2) the httpheaders property appears to be a global property of the >engine not of liburl (set the httpheaders to CookieHeader) - liburl help >could be updated here? The httpHeaders is part of the engine, but libUrl uses it before sending any http request, and resets it to empty. I think the Revolution docs are complete on this. The dictionary entry has a lot of useful information on the httpHeaders property. > 3) lastRHHeader is a custom property of liburl (put the lastRHHeaders of >stack liburl...) My advice is to only use the publicized (in the Rev dictionary) interface for libUrl: basically the commands and functions starting with "libUrl". Don't rely on accessing the properties directly. For example, it's possible that the lastRHHeaders property could disappear if it was decided to use a script local variable instead. But the libUrlLastHttpHeaders function will always return the correct value. Cheers Dave Cragg From david.bovill at opn-technologies.com Thu May 2 10:33:01 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Thu May 2 14:33:01 2002 Subject: MIDI & RR In-Reply-To: <0C30A078-5DEC-11D6-8E12-00039348A1E6@hotmail.com> Message-ID: > From: Kurt Kaufman > Subject: Re: MIDI & RR > > David, Thanks for your post. My interest in MIDI is very specific and > limited: I am trying to design a music compositional tool that will > randomize a (weighted or non-weighted) series of pitches, "play" them > back as audible MIDI events (perhaps through QT), and save the resultant > sequence as a MIDI file. No "live" recording is needed or desired. It > seems to me (although maybe I"m wrong) that most MIDI externals are set > up to patch MIDI data streams from one hardware or software component to > another. I'm interested in the static creation of MIDI files. The Externals that I mentioned (particularly HyperMidi) are pretty sophisticated at creating and manipulating static MIDI files. They should work well with MC on a PPC Mac - the problem is if you wish to do this cross platform... MidiShare may do this for you, but I think it will be asking too much unless you go for Java. > I have > much to learn, with the timing element "Variable Length Quantities" > expressed in bytes being the most confusing at this point....Most of the > other "events" I can now recognize in the MIDI file. > > Scott Raney feels I probably can do what I need using the binaryEncode > and binaryDecode functions within RR/MC, so as to make an external > unnecessary. However, accessing the QT instruments directly (as opposed > to playing back a .mid file in a player object) might be a different > matter. > Java will do that for you as there are good QT API's for sound / MIDI. > -Kurt > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From sarahr at genesearch.com.au Thu May 2 14:51:01 2002 From: sarahr at genesearch.com.au (Sarah) Date: Thu May 2 18:51:01 2002 Subject: Where do you put your scripts? In-Reply-To: Message-ID: <8B1E53A3-5E26-11D6-AE9A-0003937A97B8@genesearch.com.au> This is an excellent question and especially relevant to people who come from an older programming environment. My advice is to put the scripts as low in the hierarchy as you can. This makes finding & debugging problems much easier. It is possible to put every function & handler in the stack script and then just have the objects call those handlers, but this makes tracking down errors extremely difficult. Here are some examples showing what I do: If you have an object with a unique purpose, put all the script in the object. If you have a group (say radio buttons), and they all do the same thing but with a parameter based on which button is hilighted, put the script in the group. If you have a series of non-grouped objects which all do the same sort of thing, put that script in the card script. If you have general utility functions and startup/shutdown stuff, put them in the stack script. If you have multiple stacks and routines that they all need, put the scripts in the mainStack. This is the scheme I use but I haven't go into using frontScripts or backScripts yet. Perhaps someone else could advise on this. Generally, start by writing in the object itself, but if you find that another object needs that code, move that script (or a sub-section of it) to the next level up the hierarchy i.e. object -> group -> card -> stack. Cheers, Sarah On Friday, May 3, 2002, at 02:29 am, Dar Scott wrote: > I don't mean for this to be a how-to question. I mean for it to be a > style or code-management question. > > If I work alone (not too alone in this case--I visit use-revolution) I > easily develop strange habits and when someone looks over shoulder, I > hear things like, "WHAT are you doing?" or "Why are you doing that the > hard way?" > > I realize people on this list have lots of experience and lots of good > ideas. So I wonder... > > Where do you put your scripts? > > (What kind and how much goes into controls, groups, card, mainStack, > inserts, library stack and whatever I neglected to mention?) > > Thanks! > > Dar Scott > Near the northern Rio Grande > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From kurtkaufman at hotmail.com Thu May 2 17:49:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Thu May 2 21:49:01 2002 Subject: binaryEncode question Message-ID: <2483CAF4-5E40-11D6-8F13-00039348A1E6@hotmail.com> When I request the binary for hex "00" like so: put binaryEncode("H2","00") -and put the result into a field, I get a non-printable ascii char which then reads "20" in my hex editor. Shouldn't that be "00"? Other entered values appear as expected, for instance "4d" appears as the ascii char "M", which will appear again as "4d" in the hex editor. Is hex "00" a special case of some sort? Thanks, Kurt From jeanne at runrev.com Thu May 2 18:52:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Thu May 2 22:52:01 2002 Subject: binaryEncode question In-Reply-To: <2483CAF4-5E40-11D6-8F13-00039348A1E6@hotmail.com> Message-ID: At 7:47 PM -0700 5/2/2002, Kurt Kaufman wrote: >When I request the binary for hex "00" like so: >put binaryEncode("H2","00") > >-and put the result into a field, >I get a non-printable ascii char which then reads "20" in my hex >editor. Shouldn't that be "00"? Other entered values appear as >expected, for instance "4d" appears as the ascii char "M", which will >appear again as "4d" in the hex editor. >Is hex "00" a special case of some sort? Putting a non-printable character into a field is going to give you unexpected results in many cases. (If you put the result of the above into a variable instead, and check the charToNum of that variable, you'll see that it's being converted to a null.) If you need to store binary data, the best place is in a custom property. This is saved with the stack, just like field contents, and you can pull the data out and display it as needed. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From anthonyk at fastq.com Thu May 2 20:58:01 2002 From: anthonyk at fastq.com (Tony) Date: Fri May 3 00:58:01 2002 Subject: Can't get the family property to hilite btns References: <200205021601.MAA13406@www.runrev.com> Message-ID: <3CD23427.7749EADC@fastq.com> I created 2 standard btns A, and B with "auto hilite" turned on and each btn hilites OK when clicked. Then I set the family of btn A to 2 and the family of btn B to 2. Afterwards, I grouped them. I wanted btn A to stay hilited after it was clicked until btn B was clicked and vice-versa. I can't get this to work and I wonder what I am doing wrong! Do I need to write a handler in the group script? Thanks for any help in advance.. Tony Kouvousis From anthonyk at fastq.com Thu May 2 21:14:01 2002 From: anthonyk at fastq.com (Tony) Date: Fri May 3 01:14:01 2002 Subject: Family of btns References: <200205021601.MAA13406@www.runrev.com> Message-ID: <3CD2380D.B2DAF289@fastq.com> When I use the "family" property on radio btns and then group them, the desired hilite effect works fine. I therefore, reach the conclusion one can use the family property only on radio btns. But, after reading the dictionary on "family property" it led me to assume that the family property can be used on other btns. It says in the first line that: "The family property coordinates a set of buttons so that only one button of a family can be highlited" The last sentence in the last paragraph says in brackets: "(This method can only be used for buttons whose style is set to radiobutton)" If the last sentence did not belong to the last paragraph, I could conclude that the family property applies only to radio buttons. Because the last sentence belongs to that last paragraph, it is unclear that the statement applies to the last paragraph or to the entire group of paragraphs. Some clarification will be appreciated as I need the family property in a group of non radio btns. I hope that there is an easy way to do it if the family property can not be set on non radio btns.... Thanks for any help.. Tony From tony.perry at numbat.com Fri May 3 01:49:01 2002 From: tony.perry at numbat.com (Digital Studio (Australia) Pty Ltd) Date: Fri May 3 05:49:01 2002 Subject: Transparent stack & card background Message-ID: <009601c1f290$17837c70$c4842dcb@goblin> Does anyone know whether the Revolution stack and card backgrounds can be made transparent so that the OS desktop shows through in selected areas. Regards, Tony Perry Digital Studio -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmajor at metascape.org Fri May 3 02:56:01 2002 From: kmajor at metascape.org (Klaus Major) Date: Fri May 3 06:56:01 2002 Subject: Transparent stack & card background In-Reply-To: <009601c1f290$17837c70$c4842dcb@goblin> Message-ID: <0D68936C-5E8C-11D6-95BB-003065D52E8E@metascape.org> Hi Tony, > Does anyone know whether the Revolution stack and card backgrounds can > be made transparent so that the OS desktop shows through in selected > areas. Not in this version, sorry. But the next version will have some cool surprise... :-) > Regards, > > Tony Perry > Digital Studio Regards Klaus Major kmajor at metascape.org From david.bovill at opn-technologies.com Fri May 3 03:05:01 2002 From: david.bovill at opn-technologies.com (David Bovill) Date: Fri May 3 07:05:01 2002 Subject: Cookies In-Reply-To: Message-ID: Problem is I'm not using RR and I want it to be portable across communities... > From: Dave Cragg > Subject: Re: Cookies > > At 5:12 pm +0000 2/5/02, David Bovill wrote: > > I think the Revolution docs are complete on this. The dictionary > entry has a lot of useful information on the httpHeaders property. > I'll have a look. >> 3) lastRHHeader is a custom property of liburl (put the lastRHHeaders of >> stack liburl...) > > My advice is to only use the publicized (in the Rev dictionary) > interface for libUrl: basically the commands and functions starting > with "libUrl". Don't rely on accessing the properties directly. For > example, it's possible that the lastRHHeaders property could > disappear if it was decided to use a script local variable instead. > But the libUrlLastHttpHeaders function will always return the correct > value. > What does this function do other than return the custom property? I'm going to have another go at Cookies today, have to buy Interarchy first my copy just ran out :) > Cheers > Dave Cragg Keep in touch... From steve at messimercomputing.com Fri May 3 04:44:00 2002 From: steve at messimercomputing.com (Steve Messimer) Date: Fri May 3 08:44:00 2002 Subject: where I put my scripts Message-ID: Hey Dar, Question: Where do I put my scripts. Short Answer: pretty much where ever it makes sense. ;-) Seriously, script placement for me is pretty much a moving target. When I am beginning a project I generally place scripts in the target object. There are some exceptions to this rule. Handlers that are fairly ubiqitous like navigation handlers can be placed somewhere up the msg path. If I have the time I will try to do this with other types of handlers as well. It saves me time and simplifies debugging. There is a trade off however. In some cases it might be faster to place the handler in the target object. It just depends. In addition to the objects that you mentioned I also store scripts in custom properties. I have found that it is very useful to have the ability to alter an object's script on the fly. If an object is in a certain state it will use script "A" when it is in another state it will use script "B". This is a very powerful technique and one of the really cool things about Rev. I used to do this with flds in HyperCard. Custom properties are superior tho because you can set them or get them with ease and the user doesn't have a way of accessing them. Steve's script placement rules ... 1. The less code the better. 2. If you can write a series of commands and functions that live at the stack level and can be called from any object in the stack, do so, because it will save you time in the end. ex. Button does all the work. Every next nav btn needs this script on mouseup statement... statement... go next end mouseUp alternantive: btn sends a msg to the "g" handler at the stack level on mouseUp send g to stack yourStack end mouseUp Script at stack level traps g msg sent from any btn. on g statement... statement... go next end g This is the way I learned to do it. I would also be interested to hear how others approach this. Steve From rcozens at pon.net Fri May 3 05:51:00 2002 From: rcozens at pon.net (Rob Cozens) Date: Fri May 3 09:51:00 2002 Subject: Behavior Disturbing to the Uninitiated In-Reply-To: References: <3CC6427A.6030500@hyperactivesw.com> Message-ID: Hi All, After spending most of yesterday afternoon trying to: A. Determine why one card in my stack was displaying a smaller window than the remaining cards, and B. How to get one field on an existing card onto one other card, I would suggest the Menu Manager tutorial be beefed up to-- 1. show the intricacies of working with groups 2. make the point that, in Mac O/S, cards that have a menu group will display a smaller window than cards that do not. Specifically, when the menu is created, the tutorial should discuss setting the background property so the menu will appear on all cards created in the stack and mention that if that isn't done different size windows will result on Mac systems.. Also, the tutorial should proceed to the Application Overview, show the user the menu group that was created, and explain how to create & edit groups. (I spent hours looking at half the App Overview screen before I realized the info I need was displayed only after I hit a tiny show/hide detail button.) FWIW, I'm not crazy about the Menu Manager's approach to menus. Is there not some way (eg: make the controls invisible or position them off screen) to do this without messing up window size? Unless you place menus first, all control positioning will be off on every screen menus are added to after-the-fact. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 rcozens at pon.net Fri May 3 06:41:03 2002 From: rcozens at pon.net (Rob Cozens) Date: Fri May 3 10:41:03 2002 Subject: Where do you put your scripts? In-Reply-To: <8B1E53A3-5E26-11D6-AE9A-0003937A97B8@genesearch.com.au> References: <8B1E53A3-5E26-11D6-AE9A-0003937A97B8@genesearch.com.au> Message-ID: >If you have multiple stacks and routines that they all need, put the >scripts in the mainStack. Hi Dar, Steve & Sarah covered the subject very well, except for one option alluded to above: If you have handlers that are referenced by multiple stacks and multiple applications, place them in the stack script of a library stack and "start using stack 'myLibrary'" when you open or preopen the stacks that call the handlers. One can create and start using multiple libraries and reorder the libraries in the message hierarchy during runtime. One can also send users updated libraries that will be referenced at runtime without recompiling or linking your application. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 dan at clearvisiontech.com Fri May 3 06:54:01 2002 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri May 3 10:54:01 2002 Subject: Answer location Message-ID: Has anyone experience a problem with the location of the "answer" command? On my Windows98 machine, the dialog that is displayed from using "answer" is sometimes displayed off-screen. I think it's being shown to high... Sometimes I can see the bottom few pixels at the top of the screen. Anyone experienced this, or know how to resolve this issue? Thanks Dan From bvlahos at jpl.nasa.gov Fri May 3 07:06:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Fri May 3 11:06:01 2002 Subject: Is there a faster way... Message-ID: <41DFD303-5EAF-11D6-B826-000393853DBC@jpl.nasa.gov> I want to analyze a text log file. The following script works but takes a long time (45 seconds to go through 2500 lines). The first 2 items in the TAB delimited field are "Group" then "Task". All I really want to do is gather the list of groups coupled with names and put them in a popup button. This way I can chart items in the log. The sorts are instantaneous. Locking the screen doesn't make it go faster. on mouseUp set the itemDelimiter to tab sort lines of field "Directory" by item 4 of each -- time of day sort lines of field "Directory" by item 2 of each -- Task Name sort lines of field "Directory" by item 1 of each -- Group Name put empty into button "names" put empty into vName repeat with i = 1 to the number of lines in field "Directory" if item 1 of line i of field "Directory" & " " & item 2 of line i of field "Directory" <> vName then put item 1 of line i of field "Directory" & " " & item 2 of line i of field "Directory" into tName put tName & return after button "names" -- populate a popup button for navigation later put tName into vName -- new Group/Task name end if put i into field "Records" -- show progress end repeat end mouseUp I'm eventually going to have a hugh number of lines to process. This way will be too slow even though it only needs to go through the repeat loop once as the Group and Task names will already be sorted. Is there a faster way? Bill Vlahos From lifepaintandpassion at mac.com Fri May 3 07:13:03 2002 From: lifepaintandpassion at mac.com (lifepaintandpassion) Date: Fri May 3 11:13:03 2002 Subject: HTML links within text fields? In-Reply-To: <200205021601.MAA13406@www.runrev.com> Message-ID: How do you create HTML and mailto: links within the text of a text field again? Do you need to import an HTML file to that field or can you format it so that it's in the text within a field. David From kray at sonsothunder.com Fri May 3 08:28:00 2002 From: kray at sonsothunder.com (Ken Ray) Date: Fri May 3 12:28:00 2002 Subject: Is there a faster way... References: <41DFD303-5EAF-11D6-B826-000393853DBC@jpl.nasa.gov> Message-ID: <008401c1f2c6$f484b9f0$7c00a8c0@mckinley.dom> Bill, Two quick "speed-up" suggestions: (1) Use "repeat for each" instead for "repeat with" - it is a lot faster, if you make Rev increment a counter: put 0 into tCounter repeat for each line tLine in field "Directory" add 1 to tCounter if (item 1 of tLine) & " " & (item 2 of tLine) <> vName then (etc.) (2) Don't put the progress into a field (or if you do, don't do it for each loop - do it every 10 or 100 loops) - this slows things down quite a bit. To do things every 100 loops, you can use the 'mod' function: if (tCounter mod 100) = 0 then put tCounter into field "Records" Hope this helps, Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Bill Vlahos" To: Sent: Friday, May 03, 2002 11:03 AM Subject: Is there a faster way... > I want to analyze a text log file. The following script works but takes > a long time (45 seconds to go through 2500 lines). > > The first 2 items in the TAB delimited field are "Group" then "Task". > All I really want to do is gather the list of groups coupled with names > and put them in a popup button. This way I can chart items in the log. > The sorts are instantaneous. Locking the screen doesn't make it go > faster. > > on mouseUp > set the itemDelimiter to tab > sort lines of field "Directory" by item 4 of each -- time of day > sort lines of field "Directory" by item 2 of each -- Task Name > sort lines of field "Directory" by item 1 of each -- Group Name > put empty into button "names" > put empty into vName > repeat with i = 1 to the number of lines in field "Directory" > if item 1 of line i of field "Directory" & " " & item 2 of line i of > field "Directory" <> vName then > put item 1 of line i of field "Directory" & " " & item 2 of line i > of field "Directory" into tName > put tName & return after button "names" -- populate a popup button > for navigation later > put tName into vName -- new Group/Task name > end if > put i into field "Records" -- show progress > end repeat > end mouseUp > > I'm eventually going to have a hugh number of lines to process. This way > will be too slow even though it only needs to go through the repeat loop > once as the Group and Task names will already be sorted. > > Is there a faster way? > > Bill Vlahos > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From dsc at swcp.com Fri May 3 08:47:01 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 3 12:47:01 2002 Subject: Is there a faster way... In-Reply-To: <008401c1f2c6$f484b9f0$7c00a8c0@mckinley.dom> Message-ID: <22ADCE44-5EBD-11D6-8794-0050E4C0B205@swcp.com> On Friday, May 3, 2002, at 11:21 AM, Ken Ray wrote: > Two quick "speed-up" suggestions: > > (1) Use "repeat for each" instead for "repeat with" - it is a lot > faster, if > you make Rev increment a counter: > > put 0 into tCounter > repeat for each line tLine in field "Directory" > add 1 to tCounter > if (item 1 of tLine) & " " & (item 2 of tLine) <> vName then > (etc.) Does this access the field each time through the loop? Or is a hidden temporary variable used for the value of field "Directory"? > > (2) Don't put the progress into a field (or if you do, don't do it > for each > loop - do it every 10 or 100 loops) - this slows things down quite > a bit. To > do things every 100 loops, you can use the 'mod' function: > (3) Build up your menu in a variable and set it after the loop. Dar Scott From davidahn at mac.com Fri May 3 09:42:01 2002 From: davidahn at mac.com (S. David Ahn) Date: Fri May 3 13:42:01 2002 Subject: Electronic Medical Record In-Reply-To: <200205021601.MAA13406@www.runrev.com> Message-ID: Is anyone aware of any electronic medical record (EMR) software with practice management features developed in Revolution? I'm interested in an EMR that runs on Macs, is customizable to my particular needs, and extensible with features I may need to add. I was considering writing it myself in Revolution, but realized what a daunting task this will be, and didn't want to reinvent the wheel. Anyone? :) If not, any guidance would be appreciated in setting up the basic structure of this project. I was thinking of using MySQL as a back end (it does need to be networkable, multiuser), but don't know exactly how to integrate all of the features I need. An electronic medical record contains a myriad of diverse data types: formatted text (history of present illness, past medical history, physical exam), structured text (diagnoses, medications), numbers (laboratory values, vital signs, etc.), images (patient's photo, rashes, scanned/faxed documents, etc.). All of these need to be date-stamped, and most need to be electronically signed. Many pieces of information are tied together (progress notes includes history, vital signs, physical exam, possibly a photo, diagnoses, plan, etc.), others are not (medication list, diagnosis list, demographics). I was thinking of using a demographics table, a separate medical summary table with static and semi-static info (diagnoses, medications, etc.), but I wasn't sure how to do the progress notes due to the long text strings needed, etc. Also, it all needs to be password protected. One other puzzle is how to show family relationships. Many illnesses are hereditary, and others are communicable, so it would be nice to query family or household members' charts for illnesses. But it's important to distinguish blood relatives from unrelated housemates. I was thinking of a scheme involving 3 digits: 1st digit is generation (1 is parent, 0 is sibling), 2nd digit is gender (1 is male, 2 is female), 3rd is legal (1 is biological full, 2 is half-biological, 3 is step, 4 is adoptive, 5 is foster, 6 is legal guardian, etc.). Or a whole table of predefined relations (1=father, 2=mother, 3=stepfather, 4=stepmother, etc.). Any input would be appreciated, and helpful input would be even more appreciated. :) Thank you all in advance. David From rcozens at pon.net Fri May 3 09:45:00 2002 From: rcozens at pon.net (Rob Cozens) Date: Fri May 3 13:45:00 2002 Subject: Where do you put your scripts? In-Reply-To: <10812351-5DE8-11D6-8794-0050E4C0B205@swcp.com> References: <10812351-5DE8-11D6-8794-0050E4C0B205@swcp.com> Message-ID: >Where do you put your scripts? Dar, The crux of the issue is what objects one wants to respond to a handler, and what objects one doesn't want to respond that handler. A nuance I neglected to mention the first time around: If one creates a library stack as I described in my previous post, and that stack includes a handler that sets up the user interface on openStack, place the openStack handler in the script of the first card (if the first card is always the first card opened) or in the script of a group that appears on all cards. If you leave the openStack handler in the stack script, it will run every time any stack that passes openStack is opened while the library is in use. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 dsc at swcp.com Fri May 3 10:56:00 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 3 14:56:00 2002 Subject: Where do you put your scripts? In-Reply-To: Message-ID: <2DF99E2F-5ECF-11D6-8794-0050E4C0B205@swcp.com> On Friday, May 3, 2002, at 12:40 PM, Rob Cozens wrote: > A nuance I neglected to mention the first time around: > > If one creates a library stack as I described in my previous post, > and that stack includes a handler that sets up the user interface > on openStack, place the openStack handler in the script of the > first card (if the first card is always the first card opened) or > in the script of a group that appears on all cards. If you leave > the openStack handler in the stack script, it will run every time > any stack that passes openStack is opened while the library is in > use. Uh. I think I see. The doc says (in About... messages and the message path), " Messages sent to a substack are passed next to the substack's main stack." I have been putting library-like scripts in groups. I'd like to consider library stacks. Would these be substacks if I want to include them in the same file? Or am I looking that the organization wrong? Would the main stack be in the message path twice? That is, both before the library stacks and after? I appreciate everybody's comments. Concerning controls and groups with scripts... Should reusable controls and groups go in the Revolution object library? Should those associated with a library stack be put on a card in that stack for easy copying? Dar Scott From rcozens at pon.net Fri May 3 12:29:00 2002 From: rcozens at pon.net (Rob Cozens) Date: Fri May 3 16:29:00 2002 Subject: Where do you put your scripts? In-Reply-To: <2DF99E2F-5ECF-11D6-8794-0050E4C0B205@swcp.com> References: <2DF99E2F-5ECF-11D6-8794-0050E4C0B205@swcp.com> Message-ID: >Concerning controls and groups with scripts... Should reusable >controls and groups go in the Revolution object library? Should >those associated with a library stack be put on a card in that stack >for easy copying? It certainly can be done, Dar. The question is whether it makes sense in your runtime environment. For example, I'm in the process of converting those handlers I still intend to use from my HyperTalk library to a Transcript library stack. This includes general-purpose handlers that can be used by any of my other stacks/applications for database access, date & time functions, input editing & formatting, list & table handling, etc. Included is a simple printReport function that lays out a header and data in a stack the size of a printed page. That layout stack can be a substack within the library stack and referenced as such by printReport. Likewise for the basic empty database stack used as a template to create a new database. Ideally, one should only have to maintain one instance of any control or handler, if that instance is placed in the right spot in the message hierarchy. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 drvaughan55 at mac.com Fri May 3 13:11:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Fri May 3 17:11:01 2002 Subject: where I put my scripts In-Reply-To: Message-ID: <2C7665C0-5EE2-11D6-A721-000393598038@mac.com> On Friday, May 3, 2002, at 11:41 , Steve Messimer wrote: > Hey Dar, > > Question: Where do I put my scripts. > > Short Answer: pretty much where ever it makes sense. ;-) > snip > This is the way I learned to do it. I would also be interested to hear > how > others approach this. Dar Sarah stated my practices as well as I could so I'll just condense it a little further into a couple of basic principles which seem to cover my needs and result in code to which I can return: Looking at the message path, place each script in the lowest-ranked object in which it can be placed once to achieve its end. Have one script call another only to provide a common or higher function or information to the existing script, or to break down a task into modular components, applying the first rule to each such component. Reasons: - Ease of understanding scope - Ease of debugging and modification - Speed (trivial in RR) - Flexibility to overload functions based on context, without interminable switches - Modularity and information hiding - Portability of objects and stacks to new projects or as the base for them regards David > > Steve > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From dsc at swcp.com Fri May 3 13:37:01 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 3 17:37:01 2002 Subject: Where do you put your scripts? In-Reply-To: Message-ID: On Friday, May 3, 2002, at 03:24 PM, Rob Cozens wrote: > Ideally, one should only have to maintain one instance of any > control or handler, if that instance is placed in the right spot > in the message hierarchy. I'm not sure how to do that in many cases. Suppose I have cards as maps of several buildings. Suppose I have thermostat "controls" spread all over the maps. It would be nice to be able to maintain one group for all, but I don't know of an easy way. I don't think that placing groups as a background would work; I might want several per card and they would have different locations. And have different names or something else that makes them unique. I might have one thermostat control library and it might be good to keep a master thermostat group on a card there. But what if thermostats are used by a variety of control libraries. Suppose a couple of those thermostats are modified for controlling ovens or for controlling humidity. Suppose I use thermostats in several standalones. If it would help in bringing this home, think department-selection control/group (or NPC if you make games). The department-selection group might start out as a field. Then become a labeled field with syntax checking. Then become a pair of popup menus. Then become a map region selection menu, a graphic menu and a text popup menu with size and shape adaption. And then all that is thrown a way and a simple read-only text field and a standard edit button to bring up a dialog box is used. And then a labeled field again with right click to get a helper dialog box. In all cases, the control should generate consistent department codes. Dar Scott Albuquerque From dsc at swcp.com Fri May 3 13:46:01 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 3 17:46:01 2002 Subject: where I put my scripts In-Reply-To: <2C7665C0-5EE2-11D6-A721-000393598038@mac.com> Message-ID: On Friday, May 3, 2002, at 04:07 PM, David Vaughan wrote: > Looking at the message path, place each script in the > lowest-ranked object in which it can be placed once to achieve its > end. Uh. I don't understand what lowest means? Do you mean libraries before buttons? Dar Scott From scott at tactilemedia.com Fri May 3 14:11:01 2002 From: scott at tactilemedia.com (Scott Rossi) Date: Fri May 3 18:11:01 2002 Subject: Where do you put your scripts? In-Reply-To: Message-ID: >> Ideally, one should only have to maintain one instance of any >> control or handler, if that instance is placed in the right spot >> in the message hierarchy. > > I'm not sure how to do that in many cases. > > Suppose I have cards as maps of several buildings. Suppose I have > thermostat "controls" spread all over the maps. It would be nice > to be able to maintain one group for all, but I don't know of an > easy way. If the same thermostat is present across multiple cards, place the thermostat in a group with background behavior set to true. If the readout of the thermostat is different across multiple cards but the controls that affect the thermostat are the same, setup the controls as previously described, but use a card-local readout for each card. > I might have one thermostat control library and it might be good to > keep a master thermostat group on a card there. But what if > thermostats are used by a variety of control libraries. Separate what can be used commonly across multiple applications and what needs to be localized for a specific instance. > Suppose a couple of those thermostats are modified for controlling > ovens or for controlling humidity. Use a general thermostat routine that has subroutines for different applications (ovens, humidity, etc). > Suppose I use thermostats in several standalones. The keep your thermostat routine in an external stack and access it as needed. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design ----- E: scott at tactilemedia.com W: http://www.tactilemedia.com From rcozens at pon.net Fri May 3 15:26:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Fri May 3 19:26:01 2002 Subject: Problems With Grouped Buttons Message-ID: Hi All, I have a simple stack with seven buttons, each set to arm on mouseEnter. With seven ungrouped buttons, everything works fine; however in a second copy of the stack where I have grouped the same seven buttons the behavior is much different, especially when the mouse passes out of a button into the rectangle of the group. In those cases the buttons seem to act like radio buttons: a button hilited on mouseEnter wont unhilite until another button in the group receives mouseEnter. In addition, the button image changes (a border is drawn around it?) until it is unhilited. What am I missing? Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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) -------------- next part -------------- An HTML attachment was scrubbed... URL: From rcozens at pon.net Fri May 3 15:26:13 2002 From: rcozens at pon.net (Rob Cozens) Date: Fri May 3 19:26:13 2002 Subject: where I put my scripts In-Reply-To: References: Message-ID: >Uh. I don't understand what lowest means? Do you mean libraries >before buttons? If I may reply for David, he means lowest in the message passing hierarchy. An event, eg: clicking the mouse, sends a mouseUp message up the message hierarchy. MouseUp is sent first to the control under the mouse (or the card if the click is outside all controls). If there is no mouseUp handler in the control's script, mouseUp is passed to the card. If there is no mouseUp handler in the card's script, mouseUp is passed to (I believe) the group, then the stack, then each stack in use, and finally to the MetaCard engine. Each message passes up the chain until it finds an object with the appropriate handler. That handler can terminate the message, or pass it or a new message on up the message chain after it's done whatever else it's doing; so one message can trigger handlers in multiple objects: on terminateMessage doWhatever end terminateMessage on passMessage doWhatever pass passMessage end passMessage on changeMessage doWhatever send anotherMessage end changeMessage In other words, and I'm probably paraphrasing Sarah & Steve, if you have a handler that is specific to a control, put it in the control's script. If you have a handler that is general to multiple controls on one, and only one, card, put a single copy of it in the card's script instead of putting a copy in each control. If it's general to a stack, put it in the stack script. If it is shared by multiple stacks in the same application, put it in the mainstack script or a library stack. If it is used by multiple stacks in multiple applications, put it in a library stack. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 drvaughan55 at mac.com Fri May 3 16:16:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Fri May 3 20:16:01 2002 Subject: where I put my scripts In-Reply-To: Message-ID: <1CB97754-5EFC-11D6-A721-000393598038@mac.com> On Saturday, May 4, 2002, at 10:22 , Rob Cozens wrote: >> Uh. I don't understand what lowest means? Do you mean libraries >> before buttons? > > If I may reply for David, Yep. :-) David > -- > Rob Cozens > CCW, Serendipity Software Company > http://www.oenolog.com/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 > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 698 bytes Desc: not available URL: From shaosean at unitz.ca Fri May 3 16:25:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri May 3 20:25:01 2002 Subject: sockets - opening and closing References: Message-ID: <004a01c1f309$919411e0$88b15bd1@lanfear> i've noticed that when creating a TCP socket that opening and closing it a few times in a row causes it not to work anymore.. open close open <-- stops here most of the time if you wait a little between the first close and the second open, it will sometimes re-connect.. anyone else notice this, or am i the only one hammering? ;-) [this "feature" was noticed in my code as well as the 'simple server/client' available for download on the runrev website] running - windows 2000 sp2 another user has seen the same problem on macos9 From jacque at hyperactivesw.com Fri May 3 16:54:01 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri May 3 20:54:01 2002 Subject: use-revolution digest, Vol 1 #380 - 12 msgs References: <200205032327.TAA06966@www.runrev.com> Message-ID: <3CD33E7B.3070901@hyperactivesw.com> Dar Scott wrote: > I have been putting library-like scripts in groups. I'd like to > consider library stacks. Would these be substacks if I want to > include them in the same file? Or am I looking that the > organization wrong? > > Would the main stack be in the message path twice? That is, both > before the library stacks and after? No, the main stack would only receive the message once, just after the substack gets it (assuming the substack has been put in use.) Another method that's ideal for library scripts is the "insert" command, which places a script into the message hierarchy without needing to use a separate stack. You can write a whole library of handlers and store it in any available object's script. When you want to put the script into use, you insert it: insert script of into front or: insert script of into back The object can be anything that's handy and is simply used as a storage place. Once inserted, the script acts as a layer in the message hierarchy until you remove it or Rev quits. If a script is inserted into the front, it gets all messages before anything else. For example, clicking a button usually sends "mouseup" to the button first, and then on through the hierarchy until the message reaches the Rev engine. If a script is inserted into the front, the frontscript will receive the "mouseup" message *before* the button does. This is a good technique for something like painting tools, where you want to change the normal behavior of a mouse event or some other action. Scripts inserted into the back are similar to the scripts of stacks put "in use" -- the script is inserted behind everything else, and doesn't receive messages until almost the whole hierarchy has been traversed. The difference between "insert into back" and "start using stack" is that stacks in use receive messages before the Home stack gets them, and scripts inserted into the back receive the message after the Home stack gets them. In a standalone where there is no Home stack, both methods are pretty much equivalent. For library scripts, insertion is a good technique because it doesn't require that you have a separate stack to store the script into. You can store scripts intended for insertion inside hidden objects, properties, unused cards, whatever. On the other hand, if you develop a spiffy library and you want to distribute it to others, then putting it into a stack that you can send to people is a good technique. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From prodevm at yahoo.com Fri May 3 17:31:01 2002 From: prodevm at yahoo.com (Steve L) Date: Fri May 3 21:31:01 2002 Subject: Repost--Hot keys of a button Message-ID: <20020504022757.54024.qmail@web20308.mail.yahoo.com> Hi all, I am trying to set the shortcut keys of a button: First, I went into the properties setting of the button and checked the :control" key with key "h" as the shortcut keys. This would not work; it did not execute the button's mouseUp when the keys were pressed. Then I tried scripting in on preopenCard, the set accelMods and accelKey commands that did not work either. I even made sure that the insertion point was not in a field, and even tried turning off the Rev UI, but nothing works. Any help is always appreciated. Thanks Steve __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From dsc at swcp.com Fri May 3 17:34:00 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 3 21:34:00 2002 Subject: sockets - opening and closing In-Reply-To: <004a01c1f309$919411e0$88b15bd1@lanfear> Message-ID: On Friday, May 3, 2002, at 07:18 PM, Shao Sean wrote: > i've noticed that when creating a TCP socket that opening and > closing it a > few times in a row causes it not to work anymore.. > > open > close > open <-- stops here most of the time I've seen this kind of thing when the server is the same computer. (In that case, the connection is "established", but the Revolution app doesn't know and can't use it.) I can't be sure of other cases. Could the server have put you on a black list? Are you sure you are closing? Maybe you have hit the max number of connections for that server. > if you wait a little between the first close and the second open, > it will > sometimes re-connect.. For what I have seen with the same-computer problem, just dragging the window, resizing it, or even minimizing and opening it will "fix" it. But not waiting. Could we be looking at the same problem? > anyone else notice this, or am i the only one > hammering? ;-) I was wondering the same. I've been doing some tests on basic TCP sockets. > [this "feature" was noticed in my code as well as the > 'simple server/client' available for download on the runrev website] I'll look at that. Or do you have a better stack for demonstrating what you have seen? I have some stacks and some pointers to some tools, should you be interested. > running - windows 2000 sp2 That is where I have seen problems. It is not consistent machine to machine. > another user has seen the same problem on macos9 > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From shaosean at unitz.ca Fri May 3 17:41:00 2002 From: shaosean at unitz.ca (Shao Sean) Date: Fri May 3 21:41:00 2002 Subject: sockets - opening and closing References: Message-ID: <007901c1f314$245cc6c0$88b15bd1@lanfear> > I've seen this kind of thing when the server is the same computer. i'm on the server machine (server and client same machine) and another client in australia (can't physically get further away from me then that ;-) -- > Could the server have put you on a black list? i don't have any such feature... yet =) -- > Are you sure you are closing? Maybe you have hit the max number of closing yes, there's only myself and matt on the server, plus there's no internally coded limit to the number of users available to connect -- > For what I have seen with the same-computer problem, just dragging maybe i'll just throw in a dummy handler before calling the open socket..? -- > I'll look at that. Or do you have a better stack for demonstrating we had both used tuviah's excellent client/server while we were developing our own (which hasn't been released) and now we use our client/server.. -- > That is where I have seen problems. > It is not consistent machine to machine. is anything? ;-) From dsc at swcp.com Fri May 3 18:06:01 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 3 22:06:01 2002 Subject: sockets - opening and closing In-Reply-To: <007901c1f314$245cc6c0$88b15bd1@lanfear> Message-ID: <43C4F0EE-5F0B-11D6-8794-0050E4C0B205@swcp.com> On Friday, May 3, 2002, at 08:33 PM, Shao Sean wrote: >> I've seen this kind of thing when the server is the same computer. > i'm on the server machine (server and client same machine) and another > client in australia (can't physically get further away from me > then that ;-) I noticed that a Revolution TCP client on W2K will time out in 21 seconds. Even Australia to Canada should connect in less than that, I think. In my situation, the connection is actually established. You might try checking with repeated netstat -p TCP. Or use TCPmon to watch connections come and go. Or, if your server is relatively quiet, look at traffic with Ethereal or a similar tool. > > -- >> Could the server have put you on a black list? > i don't have any such feature... yet =) A stab in the dark. > > -- >> Are you sure you are closing? Maybe you have hit the max number of > closing yes, there's only myself and matt on the server, plus > there's no > internally coded limit to the number of users available to connect I had to say that; we are on the use-revolution list. > > -- >> For what I have seen with the same-computer problem, just dragging > maybe i'll just throw in a dummy handler before calling the open > socket..? I tried doing all the same things by script and it did not work. (Assuming we are seeing the same thing.) The behavior on W2K is not the same as on OS X, the only other platform I checked. On OS X, an open will get a socket open callback upon establishment, a socketClosed upon refusal, or a socketClosed in 75 seconds otherwise. On Windows 2000, an open will get a socket open callback upon establishment (except for your and my situations ;-), a socket open callback if refused (delayed .9 seconds), and an open callback in 21 seconds if nobody is home. Dar Scott From kurtkaufman at hotmail.com Fri May 3 18:13:00 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Fri May 3 22:13:00 2002 Subject: binaryEncode question Message-ID: <9024E603-5F0C-11D6-A556-00039348A1E6@hotmail.com> Thanks to Jeanne DeVoto for her suggestion. Which brings me to my next question (I hope I'm not asking too many!) as to why the following script leaves me with an empty (0 bytes) new file (global gBinData contains binary data converted from entered Hex bytes using the binaryEncode function, but I can't get this to work with plain text, either): on mouseup global gBinData ask file "enter name of file" put it into newFile open file newFile for binary write write gBinData to file newFile end mouseup None of the other permutations I tried have worked. I'm sure I need a dope slap, here. :-) Any help appreciated! -Kurt From dsc at swcp.com Fri May 3 18:20:00 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 3 22:20:00 2002 Subject: binaryEncode question In-Reply-To: <9024E603-5F0C-11D6-A556-00039348A1E6@hotmail.com> Message-ID: <28C9F62C-5F0D-11D6-8794-0050E4C0B205@swcp.com> On Friday, May 3, 2002, at 09:11 PM, Kurt Kaufman wrote: > on mouseup > global gBinData > ask file "enter name of file" > put it into newFile > open file newFile for binary write > write gBinData to file newFile > end mouseup > Uh. Close the file? > > None of the other permutations I tried have worked. I'm sure I > need a dope slap, here. :-) I mean, "Close the file, you dope!" Was that what you needed? Dar Scott From kurtkaufman at hotmail.com Fri May 3 18:30:00 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Fri May 3 22:30:00 2002 Subject: open-write-then CLOSE! Message-ID: <0521DFB1-5F0F-11D6-B4BC-00039348A1E6@hotmail.com> Dar Scott wrote: >Uh. Close the file? >> None of the other permutations I tried have worked. I'm sure I >> need a dope slap, here. :-) >I mean, "Close the file, you dope!" >Was that what you needed? Certainly was; Thank you! Maybe something about closing the file ought to be in the documentation as a note in the "open file" and "write to file" entries, if only for novices like myself. Thanks again, Dar. -Kurt From kray at sonsothunder.com Fri May 3 21:35:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Sat May 4 01:35:01 2002 Subject: Problems With Grouped Buttons References: Message-ID: <002a01c1f335$02859650$d20e48a6@mckinley.dom> Problems With Grouped ButtonsRob, Set the radioBehavior of the group to false and that should take care of your problem. Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: Rob Cozens To: use-revolution at lists.runrev.com Sent: Friday, May 03, 2002 7:21 PM Subject: Problems With Grouped Buttons Hi All, I have a simple stack with seven buttons, each set to arm on mouseEnter. With seven ungrouped buttons, everything works fine; however in a second copy of the stack where I have grouped the same seven buttons the behavior is much different, especially when the mouse passes out of a button into the rectangle of the group. In those cases the buttons seem to act like radio buttons: a button hilited on mouseEnter wont unhilite until another button in the group receives mouseEnter. In addition, the button image changes (a border is drawn around it?) until it is unhilited. What am I missing? Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeanne at runrev.com Fri May 3 23:14:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sat May 4 03:14:01 2002 Subject: arrays In-Reply-To: Message-ID: At 8:33 AM -0700 4/26/2002, Steve Messimer wrote: Not sure whether anyone has already answered this, but... > repeat with i = 1 to the number of keys in answerCk ...the above is where the problem is. The keys is a function which returns multiple lines, so you need to phrase it: repeat with i = 1 to the number of lines in the keys of answerCk -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Fri May 3 23:14:15 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sat May 4 03:14:15 2002 Subject: arrowkey In-Reply-To: <20020420214420.3153CA%00000000@laposte.net> References: <6150F6099DBED111852E0008C7241464049B37E0@NTSRV-CRD04> <6150F6099DBED111852E0008C7241464049B37E0@NTSRV-CRD04> Message-ID: At 12:44 PM -0700 4/20/2002, Ludovic Thbault wrote: >Ivers, Doug E wrote: >>Why isn't the arrowKey message implemented on Macs? Will it be in the >>future? As a fall-back solution, I tried the keyDown message, but it >>isn't sent when I hit the arrow keys, at least on my PowerBook G3 running >>OSX. > >I've the same problem last hour ! but i found the solution : It ought to work. (Works here.) Is anyone else having this problem? -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Fri May 3 23:15:03 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sat May 4 03:15:03 2002 Subject: Family of btns In-Reply-To: <3CD2380D.B2DAF289@fastq.com> References: <200205021601.MAA13406@www.runrev.com> Message-ID: At 12:11 AM -0700 5/3/2002, Tony wrote: >Some clarification will be appreciated as I need >the family property in a group of non radio btns. >I hope that there is an easy way to do it if the >family property can not be set on non radio >btns.... It looks like you've discovered a bug. The workaround for now is to script the hilite. If you group the buttons in question, a handler like the following in the group script will do it: on mouseDown if the owner of the target is not me then pass mouseDown repeat with x = 1 to the number of buttons if the owner of button x is me then set the hilite of button x to false end repeat set the hilite of the target to true end mouseDown -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Fri May 3 23:18:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sat May 4 03:18:01 2002 Subject: Focus color In-Reply-To: <68132D94-5B1B-11D6-AE9A-0003937A97B8@genesearch.com.au> References: Message-ID: At 7:47 PM -0700 4/28/2002, Sarah wrote: >I'm trying to change the thick border that appears around the field if >you have "Show Focus Border" turned on. I have tried changing >focusColor, hiliteColor and all the other colors as well, but I never >get anything other than grey for that particular part of the field. > >I'm running OS X 10.1.4 and I always have the system hilite color set to >yellow. The border ought to be the focusColor, for whatever it's worth. It is for me under Mac OS (haven't tried it on OS X). -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Fri May 3 23:18:05 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sat May 4 03:18:05 2002 Subject: HTML links within text fields? In-Reply-To: References: <200205021601.MAA13406@www.runrev.com> Message-ID: At 9:03 AM -0700 5/3/2002, lifepaintandpassion wrote: >How do you create HTML and mailto: links within the text of a text field >again? Do you need to import an HTML file to that field or can you format it >so that it's in the text within a field. One way is to set the linkText of the link to the appropriate URL, then use a linkClicked handler to use the revGoURL command: on linkClicked theLinkText revGoURL theLinkText end linkClicked You'll also need to set the text style of each link to "link". -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From psahores at easynet.fr Fri May 3 23:48:01 2002 From: psahores at easynet.fr (Pierre Sahores) Date: Sat May 4 03:48:01 2002 Subject: use-revolution digest, Vol 1 #381 - 13 msgs References: <200205040717.DAA14276@www.runrev.com> Message-ID: <3CD3AC73.D7B9435E@easynet.fr> use-revolution-request at lists.runrev.com a crit : > > > Message: 7 > Date: Fri, 3 May 2002 21:01:43 -0600 > Subject: Re: sockets - opening and closing > From: Dar Scott > To: use-revolution at lists.runrev.com > Reply-To: use-revolution at lists.runrev.com > > On Friday, May 3, 2002, at 08:33 PM, Shao Sean wrote: > > >> I've seen this kind of thing when the server is the same computer. > > i'm on the server machine (server and client same machine) and another > > client in australia (can't physically get further away from me > > then that ;-) > > I noticed that a Revolution TCP client on W2K will time out in 21 > seconds. Even Australia to Canada should connect in less than > that, I think. > > In my situation, the connection is actually established. You might > try checking with repeated netstat -p TCP. Or use TCPmon to watch > connections come and go. Or, if your server is relatively quiet, > look at traffic with Ethereal or a similar tool. > > > > > -- > >> Could the server have put you on a black list? > > i don't have any such feature... yet =) > > A stab in the dark. > > > > -- > >> Are you sure you are closing? Maybe you have hit the max number of > > closing yes, there's only myself and matt on the server, plus > > there's no > > internally coded limit to the number of users available to connect > > I had to say that; we are on the use-revolution list. > > > > -- > >> For what I have seen with the same-computer problem, just dragging > > maybe i'll just throw in a dummy handler before calling the open > > socket..? > > I tried doing all the same things by script and it did not work. > (Assuming we are seeing the same thing.) > > The behavior on W2K is not the same as on OS X, the only other > platform I checked. On OS X, an open will get a socket open > callback upon establishment, a socketClosed upon refusal, or a > socketClosed in 75 seconds otherwise. On Windows 2000, an open > will get a socket open callback upon establishment (except for your > and my situations ;-), a socket open callback if refused (delayed > .9 seconds), and an open callback in 21 seconds if nobody is home. > > Dar Scott > > --__--__-- > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > > End of use-revolution Digest Hi, Did you try in adding the line below to your preopenstack script : > set the socketTimeoutInterval to "10" This solved there the problem on both the WinNT and Linux x86 platforms. Regards, Pierre Sahores WEB & VPN applications & databases servers Inspection acadmique de Seine-Saint-Denis Qualifier & produire l'avantage comptitif From psahores at easynet.fr Fri May 3 23:49:01 2002 From: psahores at easynet.fr (Pierre Sahores) Date: Sat May 4 03:49:01 2002 Subject: sockets - opening and closing References: <200205040717.DAA14276@www.runrev.com> Message-ID: <3CD3AC96.65D68984@easynet.fr> use-revolution-request at lists.runrev.com a crit : > > > Message: 7 > Date: Fri, 3 May 2002 21:01:43 -0600 > Subject: Re: sockets - opening and closing > From: Dar Scott > To: use-revolution at lists.runrev.com > Reply-To: use-revolution at lists.runrev.com > > On Friday, May 3, 2002, at 08:33 PM, Shao Sean wrote: > > >> I've seen this kind of thing when the server is the same computer. > > i'm on the server machine (server and client same machine) and another > > client in australia (can't physically get further away from me > > then that ;-) > > I noticed that a Revolution TCP client on W2K will time out in 21 > seconds. Even Australia to Canada should connect in less than > that, I think. > > In my situation, the connection is actually established. You might > try checking with repeated netstat -p TCP. Or use TCPmon to watch > connections come and go. Or, if your server is relatively quiet, > look at traffic with Ethereal or a similar tool. > > > > > -- > >> Could the server have put you on a black list? > > i don't have any such feature... yet =) > > A stab in the dark. > > > > -- > >> Are you sure you are closing? Maybe you have hit the max number of > > closing yes, there's only myself and matt on the server, plus > > there's no > > internally coded limit to the number of users available to connect > > I had to say that; we are on the use-revolution list. > > > > -- > >> For what I have seen with the same-computer problem, just dragging > > maybe i'll just throw in a dummy handler before calling the open > > socket..? > > I tried doing all the same things by script and it did not work. > (Assuming we are seeing the same thing.) > > The behavior on W2K is not the same as on OS X, the only other > platform I checked. On OS X, an open will get a socket open > callback upon establishment, a socketClosed upon refusal, or a > socketClosed in 75 seconds otherwise. On Windows 2000, an open > will get a socket open callback upon establishment (except for your > and my situations ;-), a socket open callback if refused (delayed > .9 seconds), and an open callback in 21 seconds if nobody is home. > > Dar Scott > > --__--__-- > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > > End of use-revolution Digest Hi, Did you try in adding the line below to your preopenstack script : > set the socketTimeoutInterval to "10" This solved there the problem on both the WinNT and Linux x86 platforms. Regards, Pierre Sahores WEB & VPN applications & databases servers Inspection acadmique de Seine-Saint-Denis Qualifier & produire l'avantage comptitif From k_major at osnabrueck.netsurf.de Sat May 4 03:09:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sat May 4 07:09:01 2002 Subject: binaryEncode question In-Reply-To: <9024E603-5F0C-11D6-A556-00039348A1E6@hotmail.com> Message-ID: <76668034-5F57-11D6-8348-000A27B49A96@osnabrueck.netsurf.de> Hi Kurt and Dar and all :-) > Thanks to Jeanne DeVoto for her suggestion. Which brings me to my next > question (I hope I'm not asking too many!) as to why the following > script leaves me with an empty (0 bytes) new file (global gBinData > contains binary data converted from entered Hex bytes using the > binaryEncode function, but I can't get this to work with plain text, > either): > > on mouseup > global gBinData > ask file "enter name of file" > put it into newFile > open file newFile for binary write > write gBinData to file newFile > end mouseup > > None of the other permutations I tried have worked. I'm sure I need a > dope slap, here. :-) > > Any help appreciated! > -Kurt there is an even shorter way to write somthing to a file. ...and there is no way to forget to close that file ;-) on mouseup global gBinData ask file "enter name of file" put it into newFile put gBinData into url("binfile:" & newFile) end mouseup or use "file:" if it is (ascii-) text-data. Regards Klaus Major k_major at osnabrueck.netsurf.de From kurtkaufman at hotmail.com Sat May 4 04:57:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Sat May 4 08:57:01 2002 Subject: binaryEncode question Message-ID: <88D260D2-5F66-11D6-BA5B-00039348A1E6@hotmail.com> Klaus Major wrote: >>> there is an even shorter way to write somthing to a file. [...] put gBinData into url("binfile:" & newFile) <<< Thank you; since I can use "before url" and "after url" as well with this syntax, it works for me. -Kurt From xslaugh at hotmail.com Sat May 4 05:31:01 2002 From: xslaugh at hotmail.com (Scott Slaugh) Date: Sat May 4 09:31:01 2002 Subject: Message Watcher Message-ID: I would like to make a message watcher, like HyperCard had. Does anyone have any ideas of how I could do this? Scott Slaugh From kurtkaufman at hotmail.com Sat May 4 05:57:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Sat May 4 09:57:01 2002 Subject: stack customProps cause sudden quits? Message-ID: Recipe: Create new Mainstack, enter new stack custom property, close properties wd, save stack.... RR quits unexpectedly. Happens every time- -even with a brand new stack with nothing in it. Do I have to initialize the custom property (with data) immediately after its creation, perhaps? (Mac OS 10.1.4, 384 MB RAM) -Kurt From kurtkaufman at hotmail.com Sat May 4 06:21:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Sat May 4 10:21:01 2002 Subject: stack customProps cause sudden quits? Message-ID: <47705C52-5F72-11D6-8D2A-00039348A1E6@hotmail.com> Same problem(?) in Win95: http://homepage.mac.com/kurtkaufman/Win_RR_error.jpg -KK From rcozens at pon.net Sat May 4 06:28:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Sat May 4 10:28:01 2002 Subject: Problems With Grouped Buttons In-Reply-To: <002a01c1f335$02859650$d20e48a6@mckinley.dom> References: <002a01c1f335$02859650$d20e48a6@mckinley.dom> Message-ID: >Set the radioBehavior of the group to false and that should take >care of your problem. Thanks Ken, But I did & it didn't. I went to the App Overview, selected the group & clicked on Properties, then on Group. The "Allow Hiliting Only One Radio Button At A Time" box is dim (perhaps because none of my buttons are radio buttons); so I set radioBehavior via the message box. I'm still getting the same behavior...I'll try to find some time to test this further and report more details. It doesn't seem to make a difference whether the group layer is above or below the individual button layers. As an aside, I noticed I can set a button's style to opaque via the message box, but if I pull down on the button's style popup opaque is not an option. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 dsc at swcp.com Sat May 4 07:22:01 2002 From: dsc at swcp.com (Dar Scott) Date: Sat May 4 11:22:01 2002 Subject: arrowkey In-Reply-To: Message-ID: <5D720B40-5F7A-11D6-B421-0050E4C0B205@swcp.com> On Friday, May 3, 2002, at 09:59 PM, Jeanne A. E. DeVoto wrote: > At 12:44 PM -0700 4/20/2002, Ludovic Thbault wrote: >> Ivers, Doug E wrote: >>> Why isn't the arrowKey message implemented on Macs? Will it be >>> in the >>> future? As a fall-back solution, I tried the keyDown message, but it >>> isn't sent when I hit the arrow keys, at least on my PowerBook G3 >>> running >>> OSX. >> >> I've the same problem last hour ! but i found the solution : > > It ought to work. (Works here.) Is anyone else having this problem? It works on my stacks but comes and goes on the TD. This may have started in 1.1.1.B2, but I'm not sure. OS X. Dar Scott From kurtkaufman at hotmail.com Sat May 4 08:54:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Sat May 4 12:54:01 2002 Subject: customProps quits? -never mind Message-ID: I'm very sorry; I stupidly was entering a customprop on the "Sets" side of the properties instead of the "Keys" side. No problems *correctly* setting custom props or recalling their data. -Kurt From ludovic.thebault at laposte.net Sat May 4 09:24:00 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Sat May 4 13:24:00 2002 Subject: arrowkey In-Reply-To: References: <6150F6099DBED111852E0008C7241464049B37E0@NTSRV-CRD04> Message-ID: <20020504201933.8EE841%00000000@laposte.net> Jeanne A. E. DeVoto wrote: >It ought to work. (Works here.) Is anyone else having this problem? I retry with the last build of Rev, i've this problem. MacOS X 10.1.4 (french keyboard), Rev 1.1.1r2 and iMac 600. -- Ludovic THEBAULT (Sorry for my poooor english :-) From ludovic.thebault at laposte.net Sat May 4 09:25:00 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Sat May 4 13:25:00 2002 Subject: Display an image, bun without import it ? Message-ID: <20020504201929.8EE742%00000000@laposte.net> In the Transcript Dictionary we could read this : Use the import command to place a sound, movie, or image in a stack, instead of creating a referenced control that uses an external file. I want create a referenced control that uses an external file. But how ? Thanks -- Ludovic THEBAULT (Sorry for my poooor english :-) From JohnRule at aol.com Sat May 4 09:48:01 2002 From: JohnRule at aol.com (JohnRule at aol.com) Date: Sat May 4 13:48:01 2002 Subject: Tool tips disable? Message-ID: <183.7daf858.2a05861f@aol.com> Is there a way to disable/enable the tool tips? Thanks, JR From niklas_almesjo at yahoo.com Sat May 4 11:31:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesj) Date: Sat May 4 15:31:01 2002 Subject: setprops, which property? In-Reply-To: <200205041601.MAA22142@www.runrev.com> Message-ID: <20020504202820.51708.qmail@web12302.mail.yahoo.com> Just started looking into customproperties, so I'd appreciate a hand.. The setprops message seems interesting, but I don't get how you see which property that has changed. The parameters that are sent to the setProp are the name of the customproperty-array, the new value, and "". How do I know which element in the array that has been modified? __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From drvaughan55 at mac.com Sat May 4 11:42:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sat May 4 15:42:01 2002 Subject: Message Watcher In-Reply-To: Message-ID: Scott You do it with frontscripts to catch and pass the messages. Umbrellaman probably already does what you want, and it was provided to me by um... um... it doesn't appear to say in the stack and that e-mail is gone. Anyway, I can send a copy or the original excellent author will identify himself shortly. regards David On Sunday, May 5, 2002, at 12:26 , Scott Slaugh wrote: > I would like to make a message watcher, like HyperCard had. Does anyone > have any ideas of how I could do this? > > Scott Slaugh > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From drvaughan55 at mac.com Sat May 4 11:49:00 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sat May 4 15:49:00 2002 Subject: Message Watcher In-Reply-To: Message-ID: On Sunday, May 5, 2002, at 06:39 , David Vaughan wrote: > Scott > > You do it with frontscripts to catch and pass the messages. > > Umbrellaman probably already does what you want, and it was provided to > me by um... um... Richard Gaskin of FourthWorld Media if I recall aright. > Anyway, I can send a copy or the original excellent author will > identify himself shortly. > > regards > David > > On Sunday, May 5, 2002, at 12:26 , Scott Slaugh wrote: > >> I would like to make a message watcher, like HyperCard had. Does >> anyone >> have any ideas of how I could do this? >> >> Scott Slaugh >> _______________________________________________ >> 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 > From jeanne at runrev.com Sat May 4 12:03:04 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sat May 4 16:03:04 2002 Subject: Display an image, bun without import it ? In-Reply-To: <20020504201929.8EE742%00000000@laposte.net> Message-ID: At 11:19 AM -0700 5/4/2002, Ludovic Thbault wrote: >In the Transcript Dictionary we could read this : > >Use the import command to place a sound, movie, or image in a stack, >instead of creating a referenced control that uses an external file. > >I want create a referenced control that uses an external file. But how ? There are two ways: - In the File menu, choose New Referenced Control > Image File and select a picture file. - Create a new image and set its fileName property to the pathname of the picture file you want to show. (This does the same thing as using the New Referenced Control submenu - but this is how you do it in a script.) For a movie or sound, use File > New Referenced Control > QuickTime-Supported File instead (or create a new player and set its fileName property). -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Sat May 4 12:03:11 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sat May 4 16:03:11 2002 Subject: Tool tips disable? In-Reply-To: <183.7daf858.2a05861f@aol.com> Message-ID: At 11:44 AM -0700 5/4/2002, JohnRule at aol.com wrote: >Is there a way to disable/enable the tool tips? Setting the tooltipDelay to zero prevents them from showing. (If you want to do this just in the development environment, there's a preference setting for it under "Documentation".) -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Sat May 4 21:17:01 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun May 5 01:17:01 2002 Subject: setprops, which property? In-Reply-To: <20020504202820.51708.qmail@web12302.mail.yahoo.com> References: <200205041601.MAA22142@www.runrev.com> Message-ID: At 1:28 PM -0700 5/4/2002, Niklas "Almesj" wrote: >Just started looking into customproperties, so I'd appreciate a hand.. The >setprops message seems interesting, but I don't get how you see which >property that has changed. It's the name of the handler: setprop myCustomProperty beep end myCustomProperty The above beeps when you try to set myCustomProperty to a new value. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Sat May 4 21:18:03 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun May 5 01:18:03 2002 Subject: tab order In-Reply-To: <379B89CA-5B1C-11D6-AE9A-0003937A97B8@genesearch.com.au> References: Message-ID: At 7:53 PM -0700 4/28/2002, Sarah wrote: >In the Message box, click on Global Properties (3rd button), type "rel" >into the filter box and you will see "relayerGroupedControls". This is >always set to true, but click on false and you will be able to do what >you like. Careful, however: with relayerGroupedControls set to true, you can take a control out of a group by setting its layer too high or too low. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Sat May 4 22:50:00 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun May 5 02:50:00 2002 Subject: arrowkey In-Reply-To: <20020504201933.8EE841%00000000@laposte.net> References: <6150F6099DBED111852E0008C7241464049B37E0@NTSRV-CRD04> Message-ID: At 11:19 AM -0700 5/4/2002, Ludovic Thbault wrote: >Jeanne A. E. DeVoto wrote: >>It ought to work. (Works here.) Is anyone else having this problem? > >I retry with the last build of Rev, i've this problem. MacOS X 10.1.4 >(french keyboard), Rev 1.1.1r2 and iMac 600. Which object are you putting the arrowKey handler into? It's not in a grouped field, is it? (If a group's tabGroupBehavior is true, the arrowKey message doesn't get sent to fields in the group.) -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From jeanne at runrev.com Sat May 4 22:50:09 2002 From: jeanne at runrev.com (Jeanne A. E. DeVoto) Date: Sun May 5 02:50:09 2002 Subject: testing whether the value of a variable is an array In-Reply-To: References: Message-ID: At 2:56 PM -0700 4/18/2002, Ian Summerfield wrote: >This "@v" business is new to me. I'm presuming the @ is similar to using >VAR in PASCAL for parameters: > > function test(var v:integer); > >Compared to > > function test(v:integer); > >A pointer to the variable is passed rather than the content? Right: it's a pass by reference. >Is there anything else hidden away like using ^ or ^^ to reference >pointers and handles? Nope (although you can use "do" to dereference, if you need to. For example, if the variable "foo" holds "bar", you can reference the contents of the variable "bar" with the structure do "get" && foo >Which give better performace, using @ for parameters or no @? Is there a >point whereby you'd use @, e.g. Variable is larger than 500 bytes? I'm honestly not sure. The only times I've used it have been when I need to return more than one value from a handler. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From sims at ezpzapps.com Sun May 5 01:17:01 2002 From: sims at ezpzapps.com (sims) Date: Sun May 5 05:17:01 2002 Subject: Open at Startup In-Reply-To: References: Message-ID: If I want to have an app open when I turn on a Mac I can make an alias (shortcut) to the app and write it to the "Startup Items" folder. When the Mac is turned on, the Rev app then automatically opens. put specialFolderPath("System") & "/Startup Items" into prefsLocation create alias prefsLocation & "/newApp Shortcut" to file tFile How does (or can) one do this for Windows? sims From sims at ezpzapps.com Sun May 5 03:23:00 2002 From: sims at ezpzapps.com (sims) Date: Sun May 5 07:23:00 2002 Subject: Open at Startup - rephrased Message-ID: Maybe I should rephrase the question... Can I do the following with Windows - if so, how? WITH A MAC: If I want to have an app open when I turn on a Mac I can make an alias (shortcut) to the app and write it to the "Startup Items" folder. When the Mac is turned on, the Rev app then automatically opens. example: put specialFolderPath("System") & "/Startup Items" into prefsLocation create alias prefsLocation & "/newApp Shortcut" to file tFile Can I do the above with Windows - if so, how? sims From yvescoppe at skynet.be Sun May 5 06:08:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun May 5 10:08:01 2002 Subject: Array Message-ID: Hello, A few weeks ago, I posted a message without answer. So I come again : I have a custom Property Set which contains an array. the name of thz set is "cName" the keys content : student,1 prof,1 Student,2 prof,2 each line gives a name : example : student,1 ===> John prof,1 ===> Tom I'd like to add some data on the existing custom set so I start with a new handler I have to call the custom property, know how much lines are stored in the custom and add one line for example : Peter = student,3 How to proceed ? thanks. -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From kray at sonsothunder.com Sun May 5 07:03:00 2002 From: kray at sonsothunder.com (Ken Ray) Date: Sun May 5 11:03:00 2002 Subject: Open at Startup - rephrased References: Message-ID: <006e01c1f44d$8579b690$2c0e48a6@mckinley.dom> Sims, For windows, do this: put specialFolderPath(7) into prefsLocation When you make your alias on Windows, make sure it has a ".lnk" extension, as in: create alias prefsLocation & "/newApp Shortcut.lnk" to file tFile Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "sims" To: Sent: Sunday, May 05, 2002 7:27 AM Subject: Open at Startup - rephrased > Maybe I should rephrase the question... > > Can I do the following with Windows - if so, how? > > WITH A MAC: > > If I want to have an app open when I turn on a Mac I can > make an alias (shortcut) to the app and write it to the > "Startup Items" folder. When the Mac is turned on, the Rev > app then automatically opens. > > > > example: > put specialFolderPath("System") & "/Startup Items" into prefsLocation > > create alias prefsLocation & "/newApp Shortcut" to file tFile > > > Can I do the above with Windows - if so, how? > > > sims > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From kray at sonsothunder.com Sun May 5 07:15:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Sun May 5 11:15:01 2002 Subject: Array References: Message-ID: <007c01c1f44f$15376470$2c0e48a6@mckinley.dom> ArrayYves, To know how many lines are stored in the custom propery you can reference the keys() function and get a line count, as in put the number of lines of keys(cName) into numKeys Assuming you have two keys per "index" (one is "student" and one is "prof"), you would divide 'numKeys' by 2, and then add 1 for the next index number: put (numKeys/2)+1 into nextIndexNum Then, set your array to the next element: set the cName[student,nextIndexNum] of to "Peter" Note that variables can be used inside the array definition (nextIndexNum), but if you mistype it, it will use the string as part of the array. For example: put 2 into Fred set the cName[student,Fred] of this stack to "Ken" 'Fred' will be recognized as a variable and will be resolved to '2', which will set the cName[student,2] of this stack. However, if I do this: put 2 into Fred set the cName[student,Fredd] of this stack to "Ken" -- Mistyped 'Fred' 'Fredd' will not be recognized as a variable and will therefore not be resolved and will be used directly, setting the cName[student,Fredd] of this stack. Hope this helps, Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: yves COPPE To: use-revolution at lists.runrev.com Sent: Sunday, May 05, 2002 10:04 AM Subject: Array Hello, A few weeks ago, I posted a message without answer. So I come again : I have a custom Property Set which contains an array. the name of thz set is "cName" the keys content : student,1 prof,1 Student,2 prof,2 each line gives a name : example : student,1 ===> John prof,1 ===> Tom I'd like to add some data on the existing custom set so I start with a new handler I have to call the custom property, know how much lines are stored in the custom and add one line for example : Peter = student,3 How to proceed ? thanks. -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvescoppe at skynet.be Sun May 5 07:39:01 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Sun May 5 11:39:01 2002 Subject: Array In-Reply-To: <007c01c1f44f$15376470$2c0e48a6@mckinley.dom> References: <007c01c1f44f$15376470$2c0e48a6@mckinley.dom> Message-ID: >Yves, > >Assuming you have two keys per "index" (one is "student" and one is >"prof"), you would divide 'numKeys' by 2, and then add 1 for the >next index number: > > put (numKeys/2)+1 into nextIndexNum > >Then, set your array to the next element: > > set the cName[student,nextIndexNum] of to "Peter" > This assumes the number of entries in student and prof are equal If I have 4 entries for student and 1 for prof and I don't know how much entries because this is variable ? How to proceed ? -- From k_major at osnabrueck.netsurf.de Sun May 5 07:40:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun May 5 11:40:01 2002 Subject: Open at Startup - rephrased In-Reply-To: Message-ID: <701B99CE-6046-11D6-92D5-000A27B49A96@osnabrueck.netsurf.de> Hi Sims, > Maybe I should rephrase the question... Oh, sorry for the delay ;-) > Can I do the following with Windows - if so, how? > > WITH A MAC: > > If I want to have an app open when I turn on a Mac I can > make an alias (shortcut) to the app and write it to the > "Startup Items" folder. When the Mac is turned on, the Rev > app then automatically opens. > > example: > put specialFolderPath("System") & "/Startup Items" into prefsLocation > > create alias prefsLocation & "/newApp Shortcut" to file tFile > > Can I do the above with Windows - if so, how? > > sims there are 2 ways. The first is to set an entry in the windows-registry, which will cause "YourApp" to launch after windows is started. (Everytime !) Advantage: When you place an alias of your app in the windows-startup-item-folder (there is one, but i have no PC at hand to tell you the exact name of that folder, which would be solution number 2 tehn ;-) you can prevent the launching of your app by holding the shift-key while windows is starting. (Yes, the same shortcut as on a mac, funny, isn't it ;-) With this registry-entry you cannot prevent your app to launch, except by setting this reg-entry to empty :-) The following script is ONLY tested on Win98, so no guarantees for other windows-versions !!! But should work anyway... on xxx ##put the path to "YourApp.exe" into the_app replace "/" with "\" in the_app ### we have to speak "windows" get setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVersion\ Run\YourApp", the_app) end xxx To delete that entry again, set the entry to empty. on xxx get setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVersion\ Run\YourApp", "") end xxx "YourApp" is in this case the name of the registry-entry, which you can set to "" (empty). This way the entry will be deleted. From sims at ezpzapps.com Sun May 5 07:47:00 2002 From: sims at ezpzapps.com (sims) Date: Sun May 5 11:47:00 2002 Subject: Open at Startup - rephrased In-Reply-To: <701B99CE-6046-11D6-92D5-000A27B49A96@osnabrueck.netsurf.de> References: <701B99CE-6046-11D6-92D5-000A27B49A96@osnabrueck.netsurf.de> Message-ID: Thanks Klaus! This makes me appreciate my mac even more.. ;-) sims >on xxx > ##put the path to "YourApp.exe" into the_app > replace "/" with "\" in the_app ### we have to speak "windows" > get >setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers >ion\ >Run\YourApp", the_app) >end xxx > >To delete that entry again, set the entry to empty. > >on xxx > get >setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers >ion\ >Run\YourApp", "") >end xxx > >"YourApp" is in this case the name of the registry-entry, which you >can set to "" (empty). >This way the entry will be deleted. > >_ From JohnRule at aol.com Sun May 5 08:00:01 2002 From: JohnRule at aol.com (JohnRule at aol.com) Date: Sun May 5 12:00:01 2002 Subject: background behavior questions Message-ID: <199.67f2d18.2a06be32@aol.com> I have some questions about background behavior: Can I apply background behavior to anything (i.e. a field, a button, etc.)? This works very well on a group, but I could not seem to apply this to a text field or button. If I delete a group (or object) that was 'common' to all cards, and then I want to put it back, is there a way to get it to 'sync' up with the other cards? Thanks, JR From k_major at osnabrueck.netsurf.de Sun May 5 08:54:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun May 5 12:54:01 2002 Subject: Open at Startup - rephrased In-Reply-To: Message-ID: Hi Sims, > Thanks Klaus! > > This makes me appreciate my mac even more.. ;-) > > sims > >> on xxx >> ##put the path to "YourApp.exe" into the_app >> replace "/" with "\" in the_app ### we have to speak "windows" >> get >> setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers >> ion\ >> Run\YourApp", the_app) >> end xxx >> >> To delete that entry again, set the entry to empty. >> >> on xxx >> get >> setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers >> ion\ >> Run\YourApp", "") >> end xxx >> >> "YourApp" is in this case the name of the registry-entry, which you >> can set to "" (empty). >> This way the entry will be deleted. Yeah, that's ugly, isn't it ;-) Best Klaus From k_major at osnabrueck.netsurf.de Sun May 5 09:00:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Sun May 5 13:00:01 2002 Subject: background behavior questions In-Reply-To: <199.67f2d18.2a06be32@aol.com> Message-ID: <925F597F-6051-11D6-92D5-000A27B49A96@osnabrueck.netsurf.de> Hi John, > I have some questions about background behavior: > > Can I apply background behavior to anything (i.e. a field, a button, > etc.)? > This works very well on a group, but I could not seem to apply this to > a text > field or button. No, sorry, just groups. BUT, you can group single objects, if you like :-) > If I delete a group (or object) that was 'common' to all cards, and > then I > want to put it back, is there a way to get it to 'sync' up with the > other > cards? Attention, if you delete a group, then it is gone forever. Better use this syntax to place and remove groups ... place bg "name here" onto card "name of card here" ... or ... remove bg "name here" from card "cardname here" ... But sorry, i don't understand what you mean by "'sync' up with the other cards?" Anyway, hope this helps... Regards Klaus Major k_major at osnabrueck.netsurf.de From niklas_almesjo at yahoo.com Sun May 5 09:06:00 2002 From: niklas_almesjo at yahoo.com (Niklas Almesj) Date: Sun May 5 13:06:00 2002 Subject: setprops, which property? In-Reply-To: <200205051516.LAA09435@www.runrev.com> Message-ID: <20020505180232.11064.qmail@web12305.mail.yahoo.com> If I set the customPropertySet to an array, then it seems like setProps only works with the name of this set (not the keyname but the name of the array).. so how do you know which property that was set? Message: 10 Date: Sat, 4 May 2002 20:06:17 -0700 To: use-revolution at lists.runrev.com From: "Jeanne A. E. DeVoto" Subject: Re: setprops, which property? Reply-To: use-revolution at lists.runrev.com At 1:28 PM -0700 5/4/2002, Niklas "Almesj" wrote: >Just started looking into customproperties, so I'd appreciate a hand.. The >setprops message seems interesting, but I don't get how you see which >property that has changed. It's the name of the handler: setprop myCustomProperty beep end myCustomProperty The above beeps when you try to set myCustomProperty to a new value. -- Jeanne A. E. DeVoto ~ jeanne at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From kurtkaufman at hotmail.com Sun May 5 09:08:00 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Sun May 5 13:08:00 2002 Subject: option-command pref not "sticking" Message-ID: I noticed that the "option-command" shortcut for editing an object's script was suddenly no longer functioning, so I checked the Revolution preferences. This shortcut was enabled, but apparently was not "sticking", so I reset all the prefs to the default, and it is working again. Anyone else notice this behavior? -KK _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From rcozens at pon.net Sun May 5 11:52:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Sun May 5 15:52:01 2002 Subject: Problems With Grouped Buttons In-Reply-To: References: Message-ID: >I have a simple stack with seven buttons, each set to arm on >mouseEnter. With seven ungrouped buttons, everything works fine; >however in a second copy of the stack where I have grouped the same >seven buttons the behavior is much different I have done some further testing, and report the following: 1. If the button's 3D property is not checked, a border is drawn around the button on mouseLeave. That border remains until another button in the group receives mouseEnter. 2. If a button's Show Border box is checked, the button will not arm on enter. 3. Without this handler in the group script: on mouseLeave if "button" is not word 1 of the target then exit mouseLeave set the arm of the target to false end mouseLeave An armed button remains armed until another button in the group receives mouseEnter. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 kray at sonsothunder.com Sun May 5 11:58:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Sun May 5 15:58:01 2002 Subject: Array References: <007c01c1f44f$15376470$2c0e48a6@mckinley.dom> Message-ID: <00ca01c1f476$a4727f90$2c0e48a6@mckinley.dom> Yves, I was assuming that you were having an equal number based on the example you submitted. If there are going to be unequal divisions, I would recommend storing your index value in another custom property (like 'cName[index]') and then increment that with each "record". So instead of this: put the number of lines of keys(cName) into numKeys put (numKeys/2)+1 into nextIndexNum set the cName[student,nextIndexNum] of to "Peter" You'd do this: put the cName[index] of +1 into nextIndexNum set the sName[student,nextIndexNum] of to "Peter" set the cName[index] of to nextIndexNum Just my $0.02, Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "yves COPPE" To: Sent: Sunday, May 05, 2002 11:34 AM Subject: Re: Array > >Yves, > > > >Assuming you have two keys per "index" (one is "student" and one is > >"prof"), you would divide 'numKeys' by 2, and then add 1 for the > >next index number: > > > > put (numKeys/2)+1 into nextIndexNum > > > >Then, set your array to the next element: > > > > set the cName[student,nextIndexNum] of to "Peter" > > > > > This assumes the number of entries in student and prof are equal > If I have 4 entries for student and 1 for prof and I don't know how > much entries because this is variable ? > How to proceed ? > -- > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From kray at sonsothunder.com Sun May 5 12:03:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Sun May 5 16:03:01 2002 Subject: setprops, which property? References: <20020505180232.11064.qmail@web12305.mail.yahoo.com> Message-ID: <00d801c1f477$71003890$2c0e48a6@mckinley.dom> Niklas, I don't think there is currently a way to do that. If you have: setProp myArray theValue -- stuff here pass myArray end myArray ... and you execute "set the myArray[10] of this stack to 100", you will trigger the setProp handler, and 'theValue' will contain '100', but you won't be able to retrieve the '10' key. Am I wrong? I'd love it if I were... Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Niklas Almesj" To: Sent: Sunday, May 05, 2002 1:02 PM Subject: Re: setprops, which property? > If I set the customPropertySet to an array, then it seems like setProps > only works with the name of this set (not the keyname but the name of the > array).. so how do you know which property that was set? > > > Message: 10 > Date: Sat, 4 May 2002 20:06:17 -0700 > To: use-revolution at lists.runrev.com > From: "Jeanne A. E. DeVoto" > Subject: Re: setprops, which property? > Reply-To: use-revolution at lists.runrev.com > > At 1:28 PM -0700 5/4/2002, Niklas "Almesj-" wrote: > >Just started looking into customproperties, so I'd appreciate a hand.. > The > >setprops message seems interesting, but I don't get how you see which > >property that has changed. > > It's the name of the handler: > > setprop myCustomProperty > beep > end myCustomProperty > > The above beeps when you try to set myCustomProperty to a new value. > > -- > Jeanne A. E. DeVoto ~ jeanne at runrev.com > Runtime Revolution Limited - The Solution for Software Development > http://www.runrev.com/ > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From bvg at mac.com Sun May 5 12:37:01 2002 From: bvg at mac.com (=?ISO-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Sun May 5 16:37:01 2002 Subject: Hooking into Scripteditor Message-ID: I was asking myself of how one could replace the scripteditor, and what messages one would have to send/recieve for it to function. now bevore I look myself into the Rev-development stacks, I would like to know if someone did that already (maybe with another stack in the development enviroment). I would also like to know if that would be easier to make with a plugin. Or any other related hint/comment From ambassador at FourthWorld.com Sun May 5 12:53:01 2002 From: ambassador at FourthWorld.com (Richard Gaskin) Date: Sun May 5 16:53:01 2002 Subject: Display an image, bun without import it ? In-Reply-To: <200205051516.LAA09435@www.runrev.com> Message-ID: > In the Transcript Dictionary we could read this : > > Use the import command to place a sound, movie, or image in a stack, > instead of creating a referenced control that uses an external file. > > I want create a referenced control that uses an external file. But how ? Use the create command to create a new player object, then set the player's filename property to the desired path. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From ambassador at FourthWorld.com Sun May 5 12:57:01 2002 From: ambassador at FourthWorld.com (Richard Gaskin) Date: Sun May 5 16:57:01 2002 Subject: Message Watcher In-Reply-To: <200205051516.LAA09435@www.runrev.com> Message-ID: David Vaughan writes: >>> I would like to make a message watcher, like HyperCard had. Does >>> anyone >>> have any ideas of how I could do this? >>> >>> Scott Slaugh > >> You do it with frontscripts to catch and pass the messages. >> >> Umbrellaman probably already does what you want, and it was provided to >> me by um... um... > > Richard Gaskin of FourthWorld Media if I recall aright. > >> Anyway, I can send a copy or the original excellent author will >> identify himself shortly. Thanks for the generous words. UmbrellaMan can be downloaded via anonymous FTP at: -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site ___________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc From drvaughan55 at mac.com Sun May 5 13:56:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sun May 5 17:56:01 2002 Subject: Array In-Reply-To: <00ca01c1f476$a4727f90$2c0e48a6@mckinley.dom> Message-ID: On Monday, May 6, 2002, at 06:51 , Ken Ray wrote: > Yves, > > I was assuming that you were having an equal number based on the > example you > submitted. > > If there are going to be unequal divisions, I would recommend storing > your > index value in another custom property (like 'cName[index]') and then > increment that with each "record". So instead of this: > > put the number of lines of keys(cName) into numKeys > put (numKeys/2)+1 into nextIndexNum > set the cName[student,nextIndexNum] of to "Peter" > > You'd do this: > > put the cName[index] of +1 into nextIndexNum > set the sName[student,nextIndexNum] of to "Peter" > set the cName[index] of to nextIndexNum Yves I do not know enough about your application to be sure this will work for you but have you considered reversing the index and content? Provided the names were unique, you could enter set the cname["Peter"] of to "student" That is, you address by name rather than by Prof/student with the content being their title. This way you do not need to know which is the next index for an entry but you are still able to recover the title for any student or in a loop the list or count of Professors or students. I thought this was one of the features of content-addressable arrays. regards David > > Just my $0.02, > > Ken Ray > Sons of Thunder Software > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > > ----- Original Message ----- > From: "yves COPPE" > To: > Sent: Sunday, May 05, 2002 11:34 AM > Subject: Re: Array > > >>> Yves, >>> >>> Assuming you have two keys per "index" (one is "student" and one is >>> "prof"), you would divide 'numKeys' by 2, and then add 1 for the >>> next index number: >>> >>> put (numKeys/2)+1 into nextIndexNum >>> >>> Then, set your array to the next element: >>> >>> set the cName[student,nextIndexNum] of to "Peter" >>> >> >> >> This assumes the number of entries in student and prof are equal >> If I have 4 entries for student and 1 for prof and I don't know how >> much entries because this is variable ? >> How to proceed ? >> -- >> _______________________________________________ >> 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 > From benr at cogapp.com Sun May 5 14:01:01 2002 From: benr at cogapp.com (Ben Rubinstein) Date: Sun May 5 18:01:01 2002 Subject: Is there a faster way... In-Reply-To: <41DFD303-5EAF-11D6-B826-000393853DBC@jpl.nasa.gov> Message-ID: on 3/5/02 5:03 PM, Bill Vlahos at bvlahos at jpl.nasa.gov wrote: > repeat with i = 1 to the number of lines in field "Directory" > if item 1 of line i of field "Directory" & " " & item 2 of line i of > field "Directory" <> vName then > put item 1 of line i of field "Directory" & " " & item 2 of line i > of field "Directory" into tName > put tName & return after button "names" -- populate a popup button > for navigation later > put tName into vName -- new Group/Task name > end if > put i into field "Records" -- show progress > end repeat > > I'm eventually going to have a hugh number of lines to process. This way > will be too slow even though it only needs to go through the repeat loop > once as the Group and Task names will already be sorted. > > Is there a faster way? In the loop, you have the expression (line i of field "Directory") four times. Each time, Rev must retrieve the text of the field (much slower than retrieving contents of a variable), and walk through it counting line breaks until it finds the "i'th" line. So in the days of HyperCard, you would have found a considerable speedup by doing this: put empty into button "names" put empty into vName put field "Directory" into theData -- only retrieve this once repeat with i = 1 to the number of lines in theData put line i of theData into oneLine -- find the line once if item 1 of oneLine & " " & item 2 of oneLine <> vName then put item 1 of oneLine & " " & item 2 of oneLine into tName put tName & return after button "names" put tName into vName end if put i into field "Records" end repeat Actually you don't even need to access the line four times, as you calculate the same expression twice: put empty into button "names" put empty into vName put field "Directory" into theData repeat with i = 1 to the number of lines in theData put line i of theData into oneLine put item 1 of oneLine & " " & item 2 of oneLine into tName if tName <> vName then put tName & return after button "names" put tName into vName end if put i into field "Records" end repeat (that would have made a considerable difference, but now that the expression is only parsing the single line, it probably doesn't do much.) Because putting data into a button or field is even slower than getting it out, depending on whether you expect to find a lot of unique names, it may also be worth assembling this in a variable in the loop, so that it only gets assigned to the button once: put empty into allNames put empty into vName put field "Directory" into theData repeat with i = 1 to the number of lines in theData put line i of theData into oneLine put item 1 of oneLine & " " & item 2 of oneLine into tName if tName <> vName then put tName & return after allNames -- accumulate put tName into vName end if put i into field "Records" end repeat put allNames into button "names" Finally, Rev has a brilliant speed-up available: replace the counting loop which requires Rev to locate the "i'th" line each time with a "for each" loop, which allows Rev to just move a couple of pointers through the data: put empty into allNames put empty into vName put field "Directory" into theData put 1 into i -- now have to maintain progress counter explicitly repeat for each line oneLine in theData put item 1 of oneLine & " " & item 2 of oneLine into tName if tName <> vName then put tName & return after allNames put tName into vName end if put i into field "Records" add 1 to i -- now have to maintain progress counter explicitly end repeat put allNames into button "names" My guess is that by the time you've done all that, you'll be down to a second or so. If not - then remove the probably redundant progress indicator (remember that putting text into fields is quite slow) and it will be. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From jhj at jhj.com Sun May 5 15:28:01 2002 From: jhj at jhj.com (Jerry J) Date: Sun May 5 19:28:01 2002 Subject: Message Watcher (David Vaughan) References: <200205051516.LAA09435@www.runrev.com> Message-ID: <3CD5CD4C.8571517C@jhj.com> I looked at the fourthworld web site and didn't see anything about umbrellaman. I am also interested in a message-watcher type setup. Cheer, Jerry > From: David Vaughan > To: use-revolution at lists.runrev.com > Reply-To: use-revolution at lists.runrev.com > > On Sunday, May 5, 2002, at 06:39 , David Vaughan wrote: > > > Scott > > > > You do it with frontscripts to catch and pass the messages. > > > > Umbrellaman probably already does what you want, and it was provided to > > me by um... um... > > Richard Gaskin of FourthWorld Media if I recall aright. > > > Anyway, I can send a copy or the original excellent author will > > identify himself shortly. > > > > regards > > David > > > > On Sunday, May 5, 2002, at 12:26 , Scott Slaugh wrote: > > > >> I would like to make a message watcher, like HyperCard had. Does > >> anyone > >> have any ideas of how I could do this? > >> > >> Scott Slaugh -- Cheer, Jerry J http://www.jhj.com/pbooks/ From lifepaintandpassion at mac.com Sun May 5 15:32:00 2002 From: lifepaintandpassion at mac.com (lifepaintandpassion) Date: Sun May 5 19:32:00 2002 Subject: Two questions ... In-Reply-To: <200205021601.MAA13406@www.runrev.com> Message-ID: Jeanne, I didn't follow you instructions for adding HTML and email links to textwithin a field. There are a number of these links in a single field. I can make a certain word/etc a link using the style pallete but how do you code that specific link to work? How do you specify that those words link to a web site when you can't script individual words just the field? Does this make sense? And does this apply to links of the mailto:yourname at server.com as well? All... I have a button that will need to save the content of six single line fields to a text file called "saved_prefs" in the same directory as the app. When the user later opens that card again the openCard script will need to read that info back in to those six fields if a text file named "saved_prefs" exists. Help please. Is this possible using the starter edition (e.g., the 10 line limit -- I'd but the full version but I've been out of work since November 9th with a family to support so food is more important right now than software :)). David From drvaughan55 at mac.com Sun May 5 18:04:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sun May 5 22:04:01 2002 Subject: Message Watcher (David Vaughan) In-Reply-To: <3CD5CD4C.8571517C@jhj.com> Message-ID: <80A2ECD3-609D-11D6-A721-000393598038@mac.com> Jerry Richard has posted the correct address of the stack and I quote him here: UmbrellaMan can be downloaded via anonymous FTP at: -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site regards David On Monday, May 6, 2002, at 10:24 , Jerry J wrote: > I looked at the fourthworld web site and didn't see anything about > umbrellaman. I am also interested in a message-watcher type setup. > > Cheer, > Jerry > >> From: David Vaughan >> To: use-revolution at lists.runrev.com >> Reply-To: use-revolution at lists.runrev.com >> >> On Sunday, May 5, 2002, at 06:39 , David Vaughan wrote: >> >>> Scott >>> >>> You do it with frontscripts to catch and pass the messages. >>> >>> Umbrellaman probably already does what you want, and it was provided >>> to >>> me by um... um... >> >> Richard Gaskin of FourthWorld Media if I recall aright. >> >>> Anyway, I can send a copy or the original excellent author will >>> identify himself shortly. >>> >>> regards >>> David >>> >>> On Sunday, May 5, 2002, at 12:26 , Scott Slaugh wrote: >>> >>>> I would like to make a message watcher, like HyperCard had. Does >>>> anyone >>>> have any ideas of how I could do this? >>>> >>>> Scott Slaugh > > -- > > Cheer, > Jerry J > http://www.jhj.com/pbooks/ > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1669 bytes Desc: not available URL: From drvaughan55 at mac.com Sun May 5 18:13:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Sun May 5 22:13:01 2002 Subject: Two questions ... In-Reply-To: Message-ID: On Monday, May 6, 2002, at 10:21 , lifepaintandpassion wrote: > > All... > > I have a button that will need to save the content of six single line > fields > to a text file called "saved_prefs" in the same directory as the app. > When > the user later opens that card again the openCard script will need to > read > that info back in to those six fields if a text file named "saved_prefs" > exists. Help please. Is this possible using the starter edition (e.g., > the > 10 line limit -- I'd but the full version but I've been out of work > since > November 9th with a family to support so food is more important right > now > than software :)). David I do not use the limited version so my ideas are untested against a ten line limit. A couple of ways you can limit your script lines and accomplish the task are: You know where the data is so no dialog is required (just a warning if the get fails, if it fits) Read in the data with "get url" rather than open, read and close. Code the six field IDs as a literal item string ("1001,1007..."etc) and then use a repeat loop to put the data lines into the corresponding fields. See how that goes. regards Another David > > David > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From gwills at ozemail.com.au Sun May 5 18:54:01 2002 From: gwills at ozemail.com.au (Greg Wills) Date: Sun May 5 22:54:01 2002 Subject: Playing players in sequence In-Reply-To: <200205051601.MAA12031@www.runrev.com> References: <200205051601.MAA12031@www.runrev.com> Message-ID: Hi All This should not be difficult, but I can't just get it to work. I want to play a series of sound files (xxx.aiff) one after another. I am using Quicktime player objects (as I may need to use MP3's later on). The problem is I can't get them to play one after the other. They all want to play at once. I have tried "wait until the sound is done", but this has no effect. I have found playstopped, but cannot see if and how this could assist. Any help will be greatly appreciated. regards Greg From harrison at all-auctions.com Sun May 5 19:01:01 2002 From: harrison at all-auctions.com (Richard Harrison) Date: Sun May 5 23:01:01 2002 Subject: Playing players in sequence In-Reply-To: Message-ID: on 5/5/2002 11:48 PM, Greg Wills at gwills at ozemail.com.au wrote: > Hi All > This should not be difficult, but I can't just get it to work. > > I want to play a series of sound files (xxx.aiff) one after another. > I am using Quicktime player objects (as I may need to use MP3's later > on). The problem is I can't get them to play one after the other. > They all want to play at once. I have tried "wait until the sound is > done", but this has no effect. I have found playstopped, but cannot > see if and how this could assist. > > Any help will be greatly appreciated. > > regards > Greg > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution Greg, There may be a better way than this, but it should work. Time how many seconds each movie is. Use the seconds function as a timer to figure out when to stop each movie and when to start the next. Good Luck! Rick Harrison From lifepaintandpassion at mac.com Sun May 5 19:23:00 2002 From: lifepaintandpassion at mac.com (lifepaintandpassion) Date: Sun May 5 23:23:00 2002 Subject: Screen resolution on startup? In-Reply-To: <200205021601.MAA13406@www.runrev.com> Message-ID: Can you actually on openStack find out the users screen resolution (screenRect?) and if it's less than 1024x768 not open the stack (or give a warning them close it)? Thanks. david From drvaughan55 at mac.com Sun May 5 20:52:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Mon May 6 00:52:01 2002 Subject: Screen resolution on startup? In-Reply-To: Message-ID: <2B598F7B-60AA-11D6-A721-000393598038@mac.com> On Monday, May 6, 2002, at 02:12 , lifepaintandpassion wrote: > Can you actually on openStack find out the users screen resolution > (screenRect?) Yes... you can use the screenRect() function... > and if it's less than 1024x768 which returns the screen width as item 3 and height as item 4 (e.g. 0,0,1024,768) > not open the stack (or give a > warning them close it)? after which you can scale the window to suit or, if you prefer, prevent its use. I discovered this information by entering "screenRect" in the Transcript Dictionary, as one does :-) cheers David > > Thanks. > > david > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From shaosean at unitz.ca Mon May 6 01:03:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Mon May 6 05:03:01 2002 Subject: sockets - opening and closing References: <200205040717.DAA14276@www.runrev.com> <3CD3AC96.65D68984@easynet.fr> Message-ID: <007901c1f4e4$3c93bb00$88b15bd1@lanfear> > Did you try in adding the line below to your preopenstack script : > > set the socketTimeoutInterval to "10" thanks for the tip, i'll give it a try in the next revision of my project From dcragg at lacscentre.co.uk Mon May 6 01:32:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Mon May 6 05:32:01 2002 Subject: sockets - opening and closing In-Reply-To: <007901c1f4e4$3c93bb00$88b15bd1@lanfear> References: <200205040717.DAA14276@www.runrev.com> <3CD3AC96.65D68984@easynet.fr> <007901c1f4e4$3c93bb00$88b15bd1@lanfear> Message-ID: Hi Although not directly relevant to the problems discussed, it's probably a good idea to check the result after an open socket statement. It seems that if the connection fails to open due to a name resolution problem, the error is found in the result, not a socketError message. Cheers Dave Cragg From Doug_Ivers at lord.com Mon May 6 02:39:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Mon May 6 06:39:01 2002 Subject: custom prop Message-ID: <6150F6099DBED111852E0008C7241464049B3834@NTSRV-CRD04> I don't really understand this yet, but apparently there is a unique relationship between custom properties and arrays. It seems that I can't, then, store an array in a custom property. Here's what I tried, but it causes a runtime error: on mouseUp put "A" into myArray[1] put "B" into myArray[2] set the testAry of this card to myArray answer "myArray has been created." end mouseUp I'm not trying to switch between different property sets. I just want to store in a custom property an array like any other variable. Is this possible? On 1/29/02 3:56 PM, "Kevin Miller" wrote: > On 29/1/02 3:46 pm, Devin Asay wrote: > >> This is great stuff, the first time I've understood what custom >> property sets are for. But how do you make one set or the other >> active? > > put the myArrayName["myKeyName"] of btn 1 > > Or: > > put the customProperties[myArrayName] of btn 1 into tMyArray > > Or: > > set the customPropertySet of btn 1 to "myArrayName" > > -- further references will refer to properties in a particular set: > > put the myKeyName of btn 1 --from set myArrayName > > Kind regards, > > Kevin > > Kevin Miller > Runtime Revolution Limited - Power to the Developer! > Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From kurtkaufman at hotmail.com Mon May 6 03:32:01 2002 From: kurtkaufman at hotmail.com (Kurt Kaufman) Date: Mon May 6 07:32:01 2002 Subject: Playing players in sequence Message-ID: <07C698C0-60ED-11D6-96FB-00039348A1E6@hotmail.com> > I want to play a series of sound files (xxx.aiff) one after another. > I am using Quicktime player objects (as I may need to use MP3's later > on). The problem is I can't get them to play one after the other. > They all want to play at once. I have tried "wait until the sound is > done", but this has no effect. I have found playstopped, but cannot > see if and how this could assist. initial script: play videoclip "sound1" (Use the following handler in sound1 player's script) on playstopped play videoclip "sound2" end playstopped (Use the following handler in sound2 player's script) on playstopped play videoclip "sound3" end playstopped etc. Note that I have sounds linked to QT players here, and call "videoclips". Maybe there's a better way to write this so that you could use a single script, but I'm not sure of the syntax. HTH, Kurt From dcragg at lacscentre.co.uk Mon May 6 03:42:00 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Mon May 6 07:42:00 2002 Subject: custom prop In-Reply-To: <6150F6099DBED111852E0008C7241464049B3834@NTSRV-CRD04> References: <6150F6099DBED111852E0008C7241464049B3834@NTSRV-CRD04> Message-ID: At 7:34 am -0400 6/5/02, Ivers, Doug E wrote: >I don't really understand this yet, but apparently there is a unique >relationship between custom properties and arrays. > >It seems that I can't, then, store an array in a custom property. >Here's what I tried, but it causes a runtime error: > >on mouseUp > put "A" into myArray[1] > put "B" into myArray[2] > set the testAry of this card to myArray > answer "myArray has been created." >end mouseUp > >I'm not trying to switch between different property sets. I just >want to store in a custom property an array like any other variable. >Is this possible? Try this: on mouseUp put "A" into myArray[1] put "B" into myArray[2] set the customProperties["testAry"] of this card to myArray answer "myArray has been created." end mouseUp Cheers Dave Cragg From kmajor at metascape.org Mon May 6 03:55:01 2002 From: kmajor at metascape.org (Klaus Major) Date: Mon May 6 07:55:01 2002 Subject: Playing players in sequence In-Reply-To: <07C698C0-60ED-11D6-96FB-00039348A1E6@hotmail.com> Message-ID: Hi Kurt and Greg, > > I want to play a series of sound files (xxx.aiff) one after another. > > I am using Quicktime player objects (as I may need to use MP3's later > > on). The problem is I can't get them to play one after the other. > > They all want to play at once. I have tried "wait until the sound is > > done", but this has no effect. I have found playstopped, but cannot > > see if and how this could assist. > > initial script: > play videoclip "sound1" i am not sure, if this will work. As i remember well, the "play" command will create a temporary player to play the audio/video and that player will be deleted after the audio/video is finished. So maybe it should read: start player "sound1" If your players are on one card, then you could put something like this in the card-script. on playstopped the_player ##the short name of the player that has stopped is an argument to this function switch the_player case "sound1" start player "sound2" break case "sound2" start player "sound3" break ....... end switch end playstopped Not tested, but should work ;-) Hope this helps. Regards Klaus Major kmajor at metascape.org From bvg at mac.com Mon May 6 07:00:01 2002 From: bvg at mac.com (=?ISO-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon May 6 11:00:01 2002 Subject: Replacing stacks in the development environment Message-ID: I was asking myself of how one could replace the script editor, especially what messages one would have to send/ receive for it to function. now before I look into the Rev-development stacks, I would like to know if someone did that already (maybe with another stack ?). I would also like to know if that would be easier to make with a plugin. (as I just don't understand how they work) Any other related hint/comment would be greatly appreciated! From prodevm at yahoo.com Mon May 6 07:28:01 2002 From: prodevm at yahoo.com (Steve L) Date: Mon May 6 11:28:01 2002 Subject: Please Help Message-ID: <20020506162449.52789.qmail@web20309.mail.yahoo.com> Hello, I have posted this question three times, and have yet to get a response, I am starting to get a complex. Either this is an extremely stupid question, or no one understands it, or just that I am very much disliked. If it is just that no one has an answer, then maybe someone from Rev can help. Here it goes again: I am trying to set the shortcut keys of a button: First, I went into the properties setting of the button and checked the :control" key with key "h" as the shortcut keys. This would not work; it did not execute the button's mouseUp when the keys were pressed. Then I tried scripting in on preopenCard, the set accelMods and accelKey commands that did not work either. I even made sure that the insertion point was not in a field, and even tried turning off the Rev UI, but nothing works. Any help is always appreciated. Thanks Steve __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From kray at sonsothunder.com Mon May 6 07:47:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Mon May 6 11:47:01 2002 Subject: Please Help References: <20020506162449.52789.qmail@web20309.mail.yahoo.com> Message-ID: <01a501c1f51c$c04ac6e0$2c0e48a6@mckinley.dom> Steve, I just tried this in Rev 1.1 on Windows 2000: 1) Create a button 2) Set its script to "on mouseUp;answer "Hello";end mouseUp" 3) In the properties palette I checked off Control (^) and the with key is "h" (lower case). 4) Chose the browse tool 5) Typed Control-H ... and the answer box came up just fine. What version of Rev are you using? Are you trying to run this inside Rev's development environment or as a standalone? If in Rev's environment, don't forget that you have to choose the browse tool, otherwise the script won't be executed. I'm assuming this is PC, right? Or is this Mac? Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Steve L" To: Sent: Monday, May 06, 2002 11:24 AM Subject: Please Help > Hello, > > I have posted this question three times, and have yet > to get a response, I am starting to get a complex. > > Either this is an extremely stupid question, or no one > understands it, or just that I am very much disliked. > > If it is just that no one has an answer, then maybe > someone from Rev can help. > > Here it goes again: > > I am trying to set the shortcut keys of a button: > > First, I went into the properties setting of the > button and checked the :control" key with key "h" as > the shortcut keys. This would not work; it did not > execute the button's mouseUp when the keys were > pressed. > > Then I tried scripting in on preopenCard, the set > accelMods and accelKey commands that did not work > either. > > I even made sure that the insertion point was not in a > field, and even tried turning off the Rev UI, but > nothing works. > > Any help is always appreciated. > > Thanks > > Steve > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From sims at ezpzapps.com Mon May 6 07:52:01 2002 From: sims at ezpzapps.com (sims) Date: Mon May 6 11:52:01 2002 Subject: Please Help In-Reply-To: <20020506162449.52789.qmail@web20309.mail.yahoo.com> References: <20020506162449.52789.qmail@web20309.mail.yahoo.com> Message-ID: > >I am trying to set the shortcut keys of a button: Try this: 1. make a button 2. in the script of the button place: on mouseUp put "Help" end mouseUp 3. try the button and see if "Help" pops up. 4. click on a checkbox for the keyboard shortcut & input a letter (I just tried command y here on my Mac) 5. try the key combo and see if "Help" pops up. Does that help you? atb sims From Doug_Ivers at lord.com Mon May 6 10:06:03 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Mon May 6 14:06:03 2002 Subject: Where do you put your scripts? Message-ID: <6150F6099DBED111852E0008C7241464049B3840@NTSRV-CRD04> On 5/3/02 11:12 AM, "Rob Cozens" wrote: >> If you have multiple stacks and routines that they all need, put the >> scripts in the mainStack. > > Hi Dar, > > Steve & Sarah covered the subject very well, except for one option > alluded to above: > > If you have handlers that are referenced by multiple stacks and > multiple applications, place them in the stack script of a library > stack and "start using stack 'myLibrary'" when you open or preopen > the stacks that call the handlers. > > One can create and start using multiple libraries and reorder the > libraries in the message hierarchy during runtime. One can also send > users updated libraries that will be referenced at runtime without > recompiling or linking your application. Based on this advice, I want to set up a stack that centralizes all my most useful functions. What's the best way to include these in the standalone when I'm ready to build it? Is there an easy way to include only the functions that the stand-alone will need? -- D From prodevm at yahoo.com Mon May 6 10:09:01 2002 From: prodevm at yahoo.com (Steve L) Date: Mon May 6 14:09:01 2002 Subject: Please Help Message-ID: <20020506190536.43412.qmail@web20306.mail.yahoo.com> Hello, I added the on mouseUp--answer "hello" script to my existing button, works fine when clicked but when the ctrl and h key are pressed it does nothing. So, I created a new button and set it up the exact same way and it works fine when the ctrl and h keys a re pressed. I compared the two buttons and all settings are exactly the same; figure that one out. It works fine now, so thanks for the help. Steve __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From niklas_almesjo at yahoo.com Mon May 6 11:09:01 2002 From: niklas_almesjo at yahoo.com (Niklas Almesj) Date: Mon May 6 15:09:01 2002 Subject: setprops, which property? In-Reply-To: <200205052330.TAA20542@www.runrev.com> Message-ID: <20020506200556.22830.qmail@web12308.mail.yahoo.com> Thanks Ken, That is my experience aswell.. Which makes me wonder how I can use setProps with a custompropertyset (since I can't get setprops to work with the name of the either, once a custompropertyset has been assigned)? cheers, /Niklas From: "Ken Ray" To: Subject: Re: setprops, which property? Date: Sun, 5 May 2002 15:57:14 -0500 Organization: Sons of Thunder Software Reply-To: use-revolution at lists.runrev.com Niklas, I don't think there is currently a way to do that. If you have: setProp myArray theValue -- stuff here pass myArray end myArray ... and you execute "set the myArray[10] of this stack to 100", you will trigger the setProp handler, and 'theValue' will contain '100', but you won't be able to retrieve the '10' key. Am I wrong? I'd love it if I were... Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Niklas Almesj" To: Sent: Sunday, May 05, 2002 1:02 PM Subject: Re: setprops, which property? > If I set the customPropertySet to an array, then it seems like setProps > only works with the name of this set (not the keyname but the name of the > array).. so how do you know which property that was set? > > > Message: 10 > Date: Sat, 4 May 2002 20:06:17 -0700 > To: use-revolution at lists.runrev.com > From: "Jeanne A. E. DeVoto" > Subject: Re: setprops, which property? > Reply-To: use-revolution at lists.runrev.com > > At 1:28 PM -0700 5/4/2002, Niklas "Almesj-" wrote: > >Just started looking into customproperties, so I'd appreciate a hand.. > The > >setprops message seems interesting, but I don't get how you see which > >property that has changed. > > It's the name of the handler: > > setprop myCustomProperty > beep > end myCustomProperty > > The above beeps when you try to set myCustomProperty to a new value. __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From jplam at netrin.com Mon May 6 11:10:01 2002 From: jplam at netrin.com (Jim Lambert) Date: Mon May 6 15:10:01 2002 Subject: token delimiter In-Reply-To: <200205061601.MAA00732@www.runrev.com> Message-ID: put token 1 of "12:37:03 PM" 12 put token 2 of "12:37:03 PM" :37:03 Colon is supposedly not a token delimiter yet the first command returns 12 as if it were. Why? jim lambert From dcragg at lacscentre.co.uk Mon May 6 12:20:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Mon May 6 16:20:01 2002 Subject: setprops, which property? In-Reply-To: <20020506200556.22830.qmail@web12308.mail.yahoo.com> References: <20020506200556.22830.qmail@web12308.mail.yahoo.com> Message-ID: At 1:05 pm -0700 6/5/02, Niklas "Almesj" wrote: >Thanks Ken, >That is my experience aswell.. Which makes me wonder how I can use >setProps with a custompropertyset (since I can't get setprops to work with >the name of the either, once a custompropertyset has been assigned)? > >cheers, >/Niklas > >From: "Ken Ray" >To: >Subject: Re: setprops, which property? >Date: Sun, 5 May 2002 15:57:14 -0500 >Organization: Sons of Thunder Software >Reply-To: use-revolution at lists.runrev.com > >Niklas, > >I don't think there is currently a way to do that. If you have: > >setProp myArray theValue > -- stuff here > pass myArray >end myArray > >... and you execute "set the myArray[10] of this stack to 100", you will >trigger the setProp handler, and 'theValue' will contain '100', but you >won't be able to retrieve the '10' key. > >Am I wrong? I'd love it if I were... Sorry. I missed the beginning of this. Is this what you need? on mouseUp set the myArray["age"] of me to "very old" end mouseUp setprop myArray[whichKey] pValue switch whichKey case "name" answer "Your name is" && pValue break case "age" answer "You are" && pValue break end switch end myArray Cheers Dave Cragg From rcozens at pon.net Mon May 6 15:47:01 2002 From: rcozens at pon.net (Rob Cozens) Date: Mon May 6 19:47:01 2002 Subject: Where do you put your scripts? In-Reply-To: <6150F6099DBED111852E0008C7241464049B3840@NTSRV-CRD04> References: <6150F6099DBED111852E0008C7241464049B3840@NTSRV-CRD04> Message-ID: >I want to set up a stack that centralizes all my most >useful functions. What's the best way to include these in the standalone >when I'm ready to build it? Is there an easy way to include only the >functions that the stand-alone will need? Hi Doug, A. You can distribute the library as a separate stack, which allows you to update the library in the future without having to build a new distribution, or B. You can include the library as a substack within the stand-alone, which means the library can't get separated from the rest of the app or be viewed by the user. If it's a general-purpose library of Transcript handlers, I wouldn't worry about optimizing a different library for each application. OTOH, if it's a library of .jpeg images, sounds, or other memory hogs, I would consider creating an optimized library sans unnecessary objects. You may also work the other direction: create a clone of your general library and add to it resources specific to each standalone you create. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/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 katir at hindu.org Mon May 6 16:05:01 2002 From: katir at hindu.org (Sivakatirswami) Date: Mon May 6 20:05:01 2002 Subject: RFC/Setting Permissions via Rev or Metacard Message-ID: Aloha all from beautiful Kauai (where it is raining hard today, helping us keep our reputation for the most rainfall in the world)... Here's the simple question: ======= Is there a way to read permissions and set permissions of a remote text file over a LAN to files served from volumes on a MACOSX server, from within Metacard or Revolution. The goal, is obviously, to implement some kind of RFC, revision file control. ======= THE CONTEXT/PROJECT: To create an interface where people who are listening to audio or watching a video file can also collaboratively contribute to cataloging, transcribing, adding key words to some kind of "record" that is "tied" (by file name) to the media being screened/studied. I already have the interface for the user to listen to files with facile directory/navigation tools, and controls for moving back and forth easily as well as timers etc. to transcribe into a field below the controls...all of which is complete...actually it started in Supercard and we have been using it for about 5 years for all kinds of things.. and I just ported it to Metacard/Revolution recently (would this be useful to anyone else?). Now we would like to expand this for multi-user collaboration as follows: a) have the user open an audio-video file (usually a lecture, or discourse of some kind, an interview sent from one of our magazine correspondents in another country, raw video footage etc.) then at the same time b) the interface transparently loads a "record" from the remote server (actually a MAC OSX server on our LAN, but, in the future a SPARC SOLARIS in Honolulu which will allow for international collaboration on such projects) This "record" is presently conceived of very simply as a simple text file with delimiters ("|") for fields, one file per audio. When the user opens the audio the text file is loaded into the fields giving the appearance of a dbase record. c) as they listen to the file they can make notes, pause the audio, transcribe, add keywords, enter a new topic, the interface can record the time on the "tape" where references are made to a newly entered topic, then later, others can access this topic instantly by clicking on the topic and it will take them to that point in the sound file. d) The only problem is two people listening to the same file at the same time --then ones needs to be able to set a lock on the text file that represents that the "record is in use," And dim the edit buttons, but allow for read only. And, ideally, poll the file so that when it was unlocked the buttons would go undimmed... doable with a send in 1 second with msg . So, back to the original question...how can you read and set permissions? I could do this with a raw FTP socket and use standard RFC FTP controls, but, was hoping for a simpler method if one existed... especially for local files on a Mac OSX network, with some clients running MAC OS9.2.2... Applescript? But that won' be portable to team players in India or Malaysia were PC rule. Ideas? Am also open to other strategies... ideally one could have a "multi-user stack/server" on the server... but at this point I don't think MC allows for that.... Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml From extensor at cybonix.com Mon May 6 16:25:01 2002 From: extensor at cybonix.com (Extensor) Date: Mon May 6 20:25:01 2002 Subject: Please Help References: <20020506190536.43412.qmail@web20306.mail.yahoo.com> Message-ID: <003001c1f566$3773f4a0$3c383fd1@kooky> I have been coding using authoring systems for 10 years and have seen this. An invisible character gets into the code and is their causing the error but it can't be seen. ----- Original Message ----- From: "Steve L" To: Sent: Monday, May 06, 2002 12:05 PM Subject: Please Help > Hello, > > I added the on mouseUp--answer "hello" script to my > existing button, works fine when clicked but when the > ctrl and h key are pressed it does nothing. > > So, I created a new button and set it up the exact > same way and it works fine when the ctrl and h keys a > re pressed. > > I compared the two buttons and all settings are > exactly the same; figure that one out. > > It works fine now, so thanks for the help. > > Steve > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From kray at sonsothunder.com Mon May 6 16:51:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Mon May 6 20:51:01 2002 Subject: setprops, which property? References: <20020506200556.22830.qmail@web12308.mail.yahoo.com> Message-ID: <021b01c1f568$d7312290$2c0e48a6@mckinley.dom> Dave, This is wonderful! Great catch on this... just goes to show you can learn something new every day. ;-) Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Dave Cragg" To: Sent: Monday, May 06, 2002 4:16 PM Subject: Re: setprops, which property? > At 1:05 pm -0700 6/5/02, Niklas "Almesj-" wrote: > >Thanks Ken, > >That is my experience aswell.. Which makes me wonder how I can use > >setProps with a custompropertyset (since I can't get setprops to work with > >the name of the either, once a custompropertyset has been assigned)? > > > >cheers, > >/Niklas > > > >From: "Ken Ray" > >To: > >Subject: Re: setprops, which property? > >Date: Sun, 5 May 2002 15:57:14 -0500 > >Organization: Sons of Thunder Software > >Reply-To: use-revolution at lists.runrev.com > > > >Niklas, > > > >I don't think there is currently a way to do that. If you have: > > > >setProp myArray theValue > > -- stuff here > > pass myArray > >end myArray > > > >... and you execute "set the myArray[10] of this stack to 100", you will > >trigger the setProp handler, and 'theValue' will contain '100', but you > >won't be able to retrieve the '10' key. > > > >Am I wrong? I'd love it if I were... > > > Sorry. I missed the beginning of this. Is this what you need? > > on mouseUp > set the myArray["age"] of me to "very old" > end mouseUp > > setprop myArray[whichKey] pValue > switch whichKey > case "name" > answer "Your name is" && pValue > break > case "age" > answer "You are" && pValue > break > end switch > end myArray > > Cheers > Dave Cragg > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From jcuccio at pacbell.net Mon May 6 19:47:00 2002 From: jcuccio at pacbell.net (John Cuccio) Date: Mon May 6 23:47:00 2002 Subject: How to make standalone smaller Message-ID: I have a very simple standalone. the stack has 6 fields and 1 button. Total of around 100 lines of code. Very small screen size. I am building this for mac. I checked PPC. The only other stuff checked is Answer dialog remove UI The smallest is 1.9 MB. What is the smallest a standalone can be. Thank you John Cuccio From lists at retiariusenterprises.com Mon May 6 20:11:01 2002 From: lists at retiariusenterprises.com (Dave) Date: Tue May 7 00:11:01 2002 Subject: Structuring an Application Message-ID: What's the best way to structure an Application in Rev? Should the main stack be the "about" window? Since it's first to display. Should the main stack be hidden so you can control the rest of your substacks as windows? Should the main stack be the most used window in the app? I'm not quite sure how to proceed. Many Thanks. -- Dave Retiarius Enterprises From sarahr at genesearch.com.au Mon May 6 22:03:01 2002 From: sarahr at genesearch.com.au (Sarah) Date: Tue May 7 02:03:01 2002 Subject: Structuring an Application In-Reply-To: Message-ID: It depends whether you want to be able to save data to stacks or whether your app will save it's data elsewhere. If you are saving stacks, you need to build the application with separate sub-stack files. In this case, the easiest way is probably to make the main stack your splash screen. It will contain the engine and the rest of the stacks will be writable and editable. There is an article about this on the Rev site in the Tip of the Week section. If you don't need to make your stacks writable, then you can build the app as a single file. The main stack will be the first one opened but it can then open other stacks as required. Scripts in your main stack are available to the other stacks, but that works even if the main stack is no longer an open window. Apart from this, there is nothing special about a main stack so it doesn't have to be always open or even the most used. It can be closed or left visible - you can control the substacks either way. One further point - it is easy to move stacks around and designate the main stack at any stage so you can design your stacks as you go and then add a splash screen and make it the main when you are finished. Cheers, Sarah On Tuesday, May 7, 2002, at 04:05 pm, Dave wrote: > What's the best way to structure an Application in Rev? > > Should the main stack be the "about" window? Since it's first to > display. > > Should the main stack be hidden so you can control the rest of your > substacks as windows? > > Should the main stack be the most used window in the app? > > I'm not quite sure how to proceed. > > Many Thanks. > > > -- Dave > Retiarius Enterprises > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From gcanyon at inspiredlogic.com Mon May 6 22:08:01 2002 From: gcanyon at inspiredlogic.com (Geoff Canyon) Date: Tue May 7 02:08:01 2002 Subject: Revolution applications to show off at WWDC. In-Reply-To: References: <20020506162449.52789.qmail@web20309.mail.yahoo.com> Message-ID: To those who have created OS X applications with Revolution. We'd love to be able to have your apps running on the iMac in the RunRev booth. The benefit/consequence is that many people (including Apple people) will see your application. If you would like this kind of exposure, email me with instructions on how to get a copy of your application, contact information for yourself or your company, a brief description of the application and what to show off in it, and instructions on how to get and set up your application. Thanks to all for the screen shots. They're going to be useful on Friday. -- regards, Geoff Canyon gcanyon at inspiredlogic.com From dropboxforspam at yahoo.com Tue May 7 00:59:01 2002 From: dropboxforspam at yahoo.com (DropBox ForSpam) Date: Tue May 7 04:59:01 2002 Subject: Recursion and getting folder's complete contents In-Reply-To: <200205061601.MAA00732@www.runrev.com> Message-ID: <20020507095602.92951.qmail@web9407.mail.yahoo.com> Hi all! I've never been able to get a handle on recursion, does anyone have a script to get the complete contents of a folder? What I want is to be able to select a folder through the answer dialog, and then get a list of every file (with it's path) no matter how many folders deep they are within that selected folder. Can anyone help? DB __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From drvaughan55 at mac.com Tue May 7 02:22:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Tue May 7 06:22:01 2002 Subject: Recursion and getting folder's complete contents In-Reply-To: <20020507095602.92951.qmail@web9407.mail.yahoo.com> Message-ID: <38B1669C-61AC-11D6-A6A4-000393598038@mac.com> DB This question is a favourite with a variety of responses if you look in the archives. Here is an example: -- This recursive function expects a folder path. -- It returns a file list for that folder and for each -- sub-folder it contains (pre-order search) -- Invisible files are excluded. function walkDir dirPath put empty into tList set defaultFolder to dirPath put the long files into fList repeat for each line fLine in fList if char 1 of fLine <> "." then put item 1 of fLine & comma & last item of fLine into fData put dirPath & "/" & fData & return after tList end if end repeat get the folders repeat for each line x in it if char 1 of x <> "." then put walkDir(dirPath & "/" & x) after tList end if end repeat return tList end walkDir regards David On Tuesday, May 7, 2002, at 07:56 , DropBox ForSpam wrote: > Hi all! > > I've never been able to get a handle on recursion, > does anyone have a script to get the complete contents > of a folder? > > What I want is to be able to select a folder through > the answer dialog, and then get a list of every file > (with it's path) no matter how many folders deep they > are within that selected folder. Can anyone help? > > DB > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From benr_mc at cogapp.com Tue May 7 08:30:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue May 7 12:30:01 2002 Subject: Recursion and getting folder's complete contents In-Reply-To: <38B1669C-61AC-11D6-A6A4-000393598038@mac.com> Message-ID: Also note that while this is a classic case for a recursive function, if you're not comfortable with recursion (or concerned about the lack of tail recursion optimisation, etc...) it's not too yukky to do this in a non-recursive way. Adapting David's code: function walkDir dirPath put empty into tList put return into folders2do repeat until folders2do = empty put line 1 of folders2do into subPath delete line 1 of folders2do set defaultFolder to dirPath & subPath put the long files into fList repeat for each line fLine in fList if char 1 of fLine <> "." then put item 1 of fLine & comma & last item of fLine into fData put dirPath & subPath & "/" & fData & return after tList end if end repeat get the folders repeat for each line x in it if char 1 of x <> "." then put ("/" & subPath) & return after folders2do end if end repeat end repeat return tList end walkDir PS David noted that the function would exclude invisible files - I think this is probably true only on Unix systems? If you want to use this function on MacOS preX or Windows systems, you might want to comment out the tests for filename not starting with ".", to avoid confusion. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From bvg at mac.com Tue May 7 20:54:01 2002 From: bvg at mac.com (=?ISO-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed May 8 00:54:01 2002 Subject: replacing a stack in revolution Message-ID: <3E13A73C-613B-11D6-87CF-003065AD94A4@mac.com> I was asking myself of how one could replace the scripteditor, and what messages one would have to send/recieve for it to function. now bevore I look into the Rev-development stacks, I would like to know if someone did that already (maybe with another stack in the development enviroment). I would also like to know if it would be easier to make with a plugin. Any related hint/comment would be appreciated From shaosean at unitz.ca Tue May 7 20:59:01 2002 From: shaosean at unitz.ca (Shao Sean) Date: Wed May 8 00:59:01 2002 Subject: replacing a stack in revolution References: <3E13A73C-613B-11D6-87CF-003065AD94A4@mac.com> Message-ID: <000701c1f654$6213e000$88b15bd1@lanfear> create the window to look like how you want it.. you'll need to devise your own way to over-ride the default script editor (perhaps hacking the pop-up menu).. now you'll need to get the script of the object you're editing and when you're done set the script of the object to the code that was typed into the text field of your new script editor.. From drvaughan55 at mac.com Tue May 7 21:57:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Wed May 8 01:57:01 2002 Subject: Lists as array elements Message-ID: <6AB7FAA3-6250-11D6-A6A4-000393598038@mac.com> From a test on a three-line list I gather that there is no problem making a list an element in an array. For example, I did this in the message box: put "Matilda" & return & "or" & return & "Maud" & return into aList put aList into someArray[1] put someArray[1] which ran to produce the output: Matilda or Maud So far, so good. The idea is to be able to build multiple lists where I do not know beforehand how many lists there will be or what will be their identity. As each list completes I will write it to a separate file. Before I base my program on stuffing multiple 2000-line lists into an array as single elements, does anyone have experience or theoretical knowledge that this will collapse? thanks David From ludovic.thebault at laposte.net Wed May 8 00:56:01 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Wed May 8 04:56:01 2002 Subject: Make a "Drawer" on MacOS X stack ? Message-ID: <20020508115109.24B9FE%00000000@laposte.net> I want to make a stack with an drawer (as bookmarks or History on Omniweb...) I created a substack (without decorations), make a button to drag it, that's Ok, but how let this stack in background even if i drag it without change the mainstack to palette ? Thanks -- Ludovic THEBAULT (Sorry for my poooor english :-) From P.Jimmieson at csc.liv.ac.uk Wed May 8 03:23:01 2002 From: P.Jimmieson at csc.liv.ac.uk (Phil Jimmieson) Date: Wed May 8 07:23:01 2002 Subject: Setting a web proxy in the preferences dialog Message-ID: Hi, I'm new to Revolution, though I've been watching the mailing list for a while, and trying to save all the useful snippets. I'm finally trying to build my first (small) cross platform application, but my iMac is behind a web proxy, and I cannot get those details to be retained in the preferences dialog in Rev. I can enter the proxy details but they're not there when I reopen the dialog, and so the distribution builder fails to download the windows engine - I suspect because it doesn't know about the proxy! This is under OSX 10.1.4. Is there something I'm missing, or is this a bug in the preferences? Can I download the engines myself? I've tried resetting the prefs and then re-entering the details but it doesn't make any difference. -- Phil Jimmieson phil at csc.liv.ac.uk (UK) 0151 794 3689 (Mobile) 07976 983164 Computer Science Dept., Liverpool University, Chadwick Building, Peach Street Liverpool L69 7ZF http://www.csc.liv.ac.uk/~phil/ Did anyone ever tell you you had beautiful eyes? Yes, once. But I managed to shake him off near Earl's Court... From Doug_Ivers at lord.com Wed May 8 04:13:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Wed May 8 08:13:01 2002 Subject: Getting all the fields/buttons Message-ID: <6150F6099DBED111852E0008C7241464049B3851@NTSRV-CRD04> Is this the best way to "get" all the fields of a stack once and only once? (Ultimately, I want to be able to change the font of all the fields in a stack, but for now this just lists them.) on listAllFields theStackName put empty into theFieldList -- bg fields repeat with i = 1 to the number of backgrounds of stack theStackName repeat with j = 1 to the number of fields of background i of stack theStackName get the long name of field j of background i of stack theStackName put it&return after theFieldList end repeat end repeat -- cd fields repeat with i = 1 to the number of cards of stack theStackName repeat with j = 1 to the number of fields of card i of stack theStackName get the owner of field j of card i of stack theStackName if (word 1 of it is "group") then next repeat get the long name of field j of card i of stack theStackName put it&return after theFieldList end repeat end repeat -- output put theFieldList end listAllFields From themacguy at mac.com Wed May 8 05:27:01 2002 From: themacguy at mac.com (Barry Levine) Date: Wed May 8 09:27:01 2002 Subject: Converted Help Docs available? Message-ID: <025B7B1C-628F-11D6-9E22-000502E12568@mac.com> I've tried that stack that allegedly converts the Rev Help over to rtf/html/text but it doesn't seem to do anything. Has anyone successfully done this conversion and, if so, would you like to share the resulting docs? Are they posted anywhere I can download them? Thanks, Barry -------------------------------------------------------- Barry Jay Levine "The Mac Guy" Macintosh Troubleshooting, System Engineering, Training, AppleShare/OSX Server Setup, System Upgrades and Enhancements From kray at sonsothunder.com Wed May 8 05:35:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Wed May 8 09:35:01 2002 Subject: Lists as array elements References: <6AB7FAA3-6250-11D6-A6A4-000393598038@mac.com> Message-ID: <030c01c1f69c$a37af540$2c0e48a6@mckinley.dom> David, Not that I'm aware of. I've stuffed over a million characters into an array, and Rev didn't blink, so I don't think you'll have any problems. Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "David Vaughan" To: Sent: Wednesday, May 08, 2002 1:54 AM Subject: Lists as array elements > From a test on a three-line list I gather that there is no problem > making a list an element in an array. For example, I did this in the > message box: > > put "Matilda" & return & "or" & return & "Maud" & return into aList > put aList into someArray[1] > put someArray[1] > > which ran to produce the output: > > Matilda > or > Maud > > So far, so good. The idea is to be able to build multiple lists where I > do not know beforehand how many lists there will be or what will be > their identity. As each list completes I will write it to a separate > file. > > Before I base my program on stuffing multiple 2000-line lists into an > array as single elements, does anyone have experience or theoretical > knowledge that this will collapse? > > thanks > David > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From kray at sonsothunder.com Wed May 8 05:41:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Wed May 8 09:41:01 2002 Subject: Getting all the fields/buttons References: <6150F6099DBED111852E0008C7241464049B3851@NTSRV-CRD04> Message-ID: <031601c1f69d$75187500$2c0e48a6@mckinley.dom> Doug, In Rev, all fields can be retrieved at once... there technically aren't any "card fields" or "background fields" (although you can use those references to retain older HyperCard/SuperCard scripting techniques). You can get all the fields this way: on listAllFields theStackName put empty into theFieldList -- Note this is not necessary as all first-used variables are empty by default repeat with i = 1 to the number of fields put (the long name of field i) &cr after theFieldList end repeat put theFieldList end listAllFields BTW: Unless you really need the names, I would recommend using "long id" rather than "long name" - it is more accurate and less prone to confusion (for example, if you have two fields named "Test", they would both have the same long name). Hope this helps, Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Ivers, Doug E" To: Sent: Wednesday, May 08, 2002 8:09 AM Subject: Getting all the fields/buttons > Is this the best way to "get" all the fields of a stack once and only once? > (Ultimately, I want to be able to change the font of all the fields in a > stack, but for now this just lists them.) > > > on listAllFields theStackName > put empty into theFieldList > -- bg fields > repeat with i = 1 to the number of backgrounds of stack theStackName > repeat with j = 1 to the number of fields of background i of stack theStackName > get the long name of field j of background i of stack theStackName > put it&return after theFieldList > end repeat > end repeat > -- cd fields > repeat with i = 1 to the number of cards of stack theStackName > repeat with j = 1 to the number of fields of card i of stack theStackName > get the owner of field j of card i of stack theStackName > if (word 1 of it is "group") then next repeat > get the long name of field j of card i of stack theStackName > put it&return after theFieldList > end repeat > end repeat > -- output > put theFieldList > end listAllFields > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From Doug_Ivers at lord.com Wed May 8 06:06:00 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Wed May 8 10:06:00 2002 Subject: Getting all the fields/buttons Message-ID: <6150F6099DBED111852E0008C7241464049B3855@NTSRV-CRD04> Ok, first I added "of stack theStackName" back in... on listAllFields theStackName put empty into theFieldList repeat with i = 1 to the number of fields of stack theStackName put (the long name of field i of stack theStackName) &cr after theFieldList end repeat put theFieldList end listAllFields ... but this doesn't seem to get all the fields in my testing. -- D > -----Original Message----- > From: Ken Ray [mailto:kray at sonsothunder.com] > Sent: Wednesday, May 08, 2002 10:34 AM > To: use-revolution at lists.runrev.com > Subject: Re: Getting all the fields/buttons > > > Doug, > > In Rev, all fields can be retrieved at once... there > technically aren't any > "card fields" or "background fields" (although you can use > those references > to retain older HyperCard/SuperCard scripting techniques). > You can get all > the fields this way: > > on listAllFields theStackName > put empty into theFieldList -- Note this is not necessary as all > first-used variables are empty by default > repeat with i = 1 to the number of fields > put (the long name of field i) &cr after theFieldList > end repeat > put theFieldList > end listAllFields > > BTW: Unless you really need the names, I would recommend > using "long id" > rather than "long name" - it is more accurate and less prone > to confusion > (for example, if you have two fields named "Test", they would > both have the > same long name). > > Hope this helps, > > Ken Ray > Sons of Thunder Software > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > ----- Original Message ----- > From: "Ivers, Doug E" > To: > Sent: Wednesday, May 08, 2002 8:09 AM > Subject: Getting all the fields/buttons > > > > Is this the best way to "get" all the fields of a stack > once and only > once? > > (Ultimately, I want to be able to change the font of all > the fields in a > > stack, but for now this just lists them.) > > > > > > on listAllFields theStackName > > put empty into theFieldList > > -- bg fields > > repeat with i = 1 to the number of backgrounds of stack > theStackName > > repeat with j = 1 to the number of fields of background > i of stack > theStackName > > get the long name of field j of background i of stack > theStackName > > put it&return after theFieldList > > end repeat > > end repeat > > -- cd fields > > repeat with i = 1 to the number of cards of stack theStackName > > repeat with j = 1 to the number of fields of card i of stack > theStackName > > get the owner of field j of card i of stack theStackName > > if (word 1 of it is "group") then next repeat > > get the long name of field j of card i of stack theStackName > > put it&return after theFieldList > > end repeat > > end repeat > > -- output > > put theFieldList > > end listAllFields > > _______________________________________________ > > 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 > From dan at clearvisiontech.com Wed May 8 06:37:01 2002 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed May 8 10:37:01 2002 Subject: Email from Revolution Message-ID: Greetings! Does anyone know how (if it's possible) to have Revolution send an eMail? Thanks! Dan Friedman From bvlahos at jpl.nasa.gov Wed May 8 06:56:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Wed May 8 10:56:01 2002 Subject: Email from Revolution In-Reply-To: Message-ID: <97BA6A62-629B-11D6-8F2B-000393853DBC@jpl.nasa.gov> Dan, There is a very nice sample stack on the Revolution web site in the user contributions area. Bill On Wednesday, May 8, 2002, at 08:32 AM, Dan Friedman wrote: > Greetings! > > Does anyone know how (if it's possible) to have Revolution send an > eMail? > > Thanks! > Dan Friedman > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From kray at sonsothunder.com Wed May 8 08:28:01 2002 From: kray at sonsothunder.com (Ken Ray) Date: Wed May 8 12:28:01 2002 Subject: Getting all the fields/buttons References: <6150F6099DBED111852E0008C7241464049B3855@NTSRV-CRD04> Message-ID: <035d01c1f6b4$e0cb71a0$2c0e48a6@mckinley.dom> Doug, Sorry... I forgot you needed all the fields *across all the cards* in the stack. My code just gives you all the fields (both in groups and not in groups) ona single card. One approach you can do is to note the ID of the field (store a list in a variable), and when you go to the next card and get the next set of fields, check to see if the field has already been "tagged" (i.e. its ID is already stored in the list). Don't know if this is better or worse than your original version... it seems a bit better to me. on listAllFields theStackName put empty into theFieldList put empty into IDtracker set the wholeMatches to true repeat with i = 1 to the number of cards of stack theStackName repeat with j = 1 to the number of fields of card i of stack theStackName if lineOffset ((the short id of field j of card i of stack theStackName),IDTracker) <> 0 then next repeat put (the long id of field j of card i of stack theStackName) & cr after theFieldList put (the short id of field j of card i of stack theStackName) & cr after IDTracker end repeat end repeat put theFieldList end listAllFields Ken Ray Sons of Thunder Software Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: "Ivers, Doug E" To: Sent: Wednesday, May 08, 2002 10:01 AM Subject: RE: Getting all the fields/buttons > Ok, first I added "of stack theStackName" back in... > > on listAllFields theStackName > put empty into theFieldList > repeat with i = 1 to the number of fields of stack theStackName > put (the long name of field i of stack theStackName) &cr after theFieldList > end repeat > put theFieldList > end listAllFields > > ... but this doesn't seem to get all the fields in my testing. > > > -- D > > > > -----Original Message----- > > From: Ken Ray [mailto:kray at sonsothunder.com] > > Sent: Wednesday, May 08, 2002 10:34 AM > > To: use-revolution at lists.runrev.com > > Subject: Re: Getting all the fields/buttons > > > > > > Doug, > > > > In Rev, all fields can be retrieved at once... there > > technically aren't any > > "card fields" or "background fields" (although you can use > > those references > > to retain older HyperCard/SuperCard scripting techniques). > > You can get all > > the fields this way: > > > > on listAllFields theStackName > > put empty into theFieldList -- Note this is not necessary as all > > first-used variables are empty by default > > repeat with i = 1 to the number of fields > > put (the long name of field i) &cr after theFieldList > > end repeat > > put theFieldList > > end listAllFields > > > > BTW: Unless you really need the names, I would recommend > > using "long id" > > rather than "long name" - it is more accurate and less prone > > to confusion > > (for example, if you have two fields named "Test", they would > > both have the > > same long name). > > > > Hope this helps, > > > > Ken Ray > > Sons of Thunder Software > > Email: kray at sonsothunder.com > > Web Site: http://www.sonsothunder.com/ > > > > ----- Original Message ----- > > From: "Ivers, Doug E" > > To: > > Sent: Wednesday, May 08, 2002 8:09 AM > > Subject: Getting all the fields/buttons > > > > > > > Is this the best way to "get" all the fields of a stack > > once and only > > once? > > > (Ultimately, I want to be able to change the font of all > > the fields in a > > > stack, but for now this just lists them.) > > > > > > > > > on listAllFields theStackName > > > put empty into theFieldList > > > -- bg fields > > > repeat with i = 1 to the number of backgrounds of stack > > theStackName > > > repeat with j = 1 to the number of fields of background > > i of stack > > theStackName > > > get the long name of field j of background i of stack > > theStackName > > > put it&return after theFieldList > > > end repeat > > > end repeat > > > -- cd fields > > > repeat with i = 1 to the number of cards of stack theStackName > > > repeat with j = 1 to the number of fields of card i of stack > > theStackName > > > get the owner of field j of card i of stack theStackName > > > if (word 1 of it is "group") then next repeat > > > get the long name of field j of card i of stack theStackName > > > put it&return after theFieldList > > > end repeat > > > end repeat > > > -- output > > > put theFieldList > > > end listAllFields > > > _______________________________________________ > > > 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 > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From jacque at hyperactivesw.com Wed May 8 08:45:03 2002 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed May 8 12:45:03 2002 Subject: Getting all the fields/buttons References: <200205081602.MAA00728@www.runrev.com> Message-ID: <3CD96358.1020607@hyperactivesw.com> "Ivers, Doug E" wrote: > ... but this doesn't seem to get all the fields in my testing. Ken's right if your stack was originally created in Rev. But if the stack has been imported from HyperCard, or if the "HCAddressing" of the stack has been set to true, then Rev retains the bg/cd specifications and you'll have to do it your original way, by gathering all the bg fields first and then each card field next. Alternately, you can "set the HCAddressing of this stack to false" before doing the field search, use Ken's way, and then set the HCAddressing back to true afterwards. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jburtt at earthlink.net Wed May 8 09:16:01 2002 From: jburtt at earthlink.net (John) Date: Wed May 8 13:16:01 2002 Subject: Correct extension use... In-Reply-To: <200205081601.MAA00702@www.runrev.com> References: <200205081601.MAA00702@www.runrev.com> Message-ID: I don't know much about Windows. When making a stand-alone, the splash stack will have an (.exe) extension. Must I keep using the (.rev) extension with the data stacks? From k_major at osnabrueck.netsurf.de Wed May 8 09:33:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Wed May 8 13:33:01 2002 Subject: Correct extension use... In-Reply-To: Message-ID: Hi John, > I don't know much about Windows. Noone does ;-) > When making a stand-alone, the splash stack will have an (.exe) > extension. Must I keep using the (.rev) extension with the data stacks? No, the engine will open them anyway. Just take care to call these stacks without the extension in your scripts. ... go stack "the_stack" ... and not ... go stack "the_stack.rev" ... Hope that helps. Regards Klaus Major k_major at osnabrueck.netsurf.de From lifepaintandpassion at mac.com Wed May 8 10:36:00 2002 From: lifepaintandpassion at mac.com (lifepaintandpassion) Date: Wed May 8 14:36:00 2002 Subject: URLs in text ... Jeanne? In-Reply-To: <200205021601.MAA13406@www.runrev.com> Message-ID: on linkClicked theLinkText revGoURL theLinkText end linkClicked Does this only work for one link in a field? What if you have URLs in one field? Do this 15 times? David From shaosean at unitz.ca Wed May 8 11:41:00 2002 From: shaosean at unitz.ca (Shao Sean) Date: Wed May 8 15:41:00 2002 Subject: URLs in text ... Jeanne? References: Message-ID: <001d01c1f6cf$b4f569d0$88b15bd1@lanfear> > on linkClicked theLinkText if the text clicked is a url, then like this is just fine.. if you're using a word as a hyperlink (like on a webpage) change your code to something like this on linkClicked theLinkText switch (theLinkText) case "Homepage" revGoURL " http://www.example.org/ " -- (no spaces in quotes, my email client just sucks) break case "Some Other Website" revGoURL " http://www.example.org/moo/ " -- (again, no spaces in quotes) break end switch end linkClicked From warren at floripa.com.br Wed May 8 12:35:01 2002 From: warren at floripa.com.br (Robert John Warren) Date: Wed May 8 16:35:01 2002 Subject: Converted Revolution Docs Message-ID: <005f01c1f6d0$bf83c940$f241c1c8@bob> I had no trouble using the stack that converts the Rev Help over to rtf/html/text. I have therefore created a temporary page at www.howsoft.com/revolution/ so that anyone needing them can download the converted Revolution documents for version 1.1.1r2. The self-extracting zip file for download occupies about 3.37 MB. However, please note that this file was created for the PC and not specifically for the MAC. -------------- next part -------------- An HTML attachment was scrubbed... URL: From drvaughan55 at mac.com Wed May 8 13:01:00 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Wed May 8 17:01:00 2002 Subject: Lists as array elements In-Reply-To: <030c01c1f69c$a37af540$2c0e48a6@mckinley.dom> Message-ID: Ken Thanks for that. It was not the size as such that made me wonder, it was the fact of making a list an element of an array, or an array as the content of each element of an array. Anyway, I've just finished the prototype, it works (and fast!) and I'm very pleased to have a general solution to a problem of uncounted simultaneous input streams. Had I done this in HC I would have resorted to an XCMD to code a linked list with each node the head of another list. Using Rev is much faster to do, easier to maintain, and portable. regards David On Thursday, May 9, 2002, at 12:28 , Ken Ray wrote: > David, > > Not that I'm aware of. I've stuffed over a million characters into an > array, > and Rev didn't blink, so I don't think you'll have any problems. > > Ken Ray > Sons of Thunder Software > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > ----- Original Message ----- > From: "David Vaughan" > To: > Sent: Wednesday, May 08, 2002 1:54 AM > Subject: Lists as array elements > > >> From a test on a three-line list I gather that there is no problem >> making a list an element in an array. For example, I did this in the >> message box: >> >> put "Matilda" & return & "or" & return & "Maud" & return into aList >> put aList into someArray[1] >> put someArray[1] >> >> which ran to produce the output: >> >> Matilda >> or >> Maud >> >> So far, so good. The idea is to be able to build multiple lists where I >> do not know beforehand how many lists there will be or what will be >> their identity. As each list completes I will write it to a separate >> file. >> >> Before I base my program on stuffing multiple 2000-line lists into an >> array as single elements, does anyone have experience or theoretical >> knowledge that this will collapse? >> >> thanks >> David >> >> _______________________________________________ >> 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 > From sarahr at genesearch.com.au Wed May 8 13:01:31 2002 From: sarahr at genesearch.com.au (Sarah) Date: Wed May 8 17:01:31 2002 Subject: Getting all the fields/buttons In-Reply-To: Message-ID: Do you really need to list all the fields? Unless the font has already been explicitly set, you can change the textFont of the stack (or the card) and all the objects will then use that new font. Sarah On Wednesday, May 8, 2002, at 11:12 pm, Ivers, Doug E wrote: > Is this the best way to "get" all the fields of a stack once and only > once? > (Ultimately, I want to be able to change the font of all the fields in a > stack, but for now this just lists them.) From sarahr at genesearch.com.au Wed May 8 13:16:01 2002 From: sarahr at genesearch.com.au (Sarah) Date: Wed May 8 17:16:01 2002 Subject: Setting a web proxy in the preferences dialog In-Reply-To: Message-ID: I haven't tried this myself, but there was a problem with downloading engines in the beta versions of Rev 1.1 so check you have the latest version of Rev. You only need to get the engine once and then it will be in your Revolution folder for future use. If the Distribution Builder doesn't want to do this automatically, you could try downloading the Windows version manually. The script in the Distribution Builder points to: http://www.runrev.com/revolution/engines11/ so I guess you could download the engine directly from there, decompress it and put it in your Revolution -> components -> engines folder. Sarah On Wednesday, May 8, 2002, at 10:23 pm, Phil Jimmieson wrote: > Hi, > I'm new to Revolution, though I've been watching the mailing list for a > while, and trying to save all the useful snippets. I'm finally trying > to build my first (small) cross platform application, but my iMac is > behind a web proxy, and I cannot get those details to be retained in > the preferences dialog in Rev. I can enter the proxy details but > they're not there when I reopen the dialog, and so the distribution > builder fails to download the windows engine - I suspect because it > doesn't know about the proxy! This is under OSX 10.1.4. Is there > something I'm missing, or is this a bug in the preferences? Can I > download the engines myself? > I've tried resetting the prefs and then re-entering the details but it > doesn't make any difference. > -- Phil Jimmieson phil at csc.liv.ac.uk (UK) 0151 794 3689 (Mobile) > 07976 983164 > Computer Science Dept., Liverpool University, Chadwick Building, Peach > Street > Liverpool L69 7ZF http://www.csc.liv.ac.uk/~phil/ > Did anyone ever tell you you had beautiful eyes? > Yes, once. But I managed to shake him off near Earl's Court... > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From themacguy at mac.com Wed May 8 15:40:01 2002 From: themacguy at mac.com (Barry Levine) Date: Wed May 8 19:40:01 2002 Subject: Rev Language Ref now available in pdf Message-ID: A lista was kind enough to make available to me the converted docs in html, text, and rtf format. I took the liberty of converting the language reference from rtf into a pdf file. You may download it from my public folder at: The file name is "revdocs.pdf"; you'll see it listed there. It's 3.5MB and is, of course, compatible with any platform that can run Acrobat Reader. Barry -------------------------------------------------------- Barry Jay Levine "The Mac Guy" Macintosh Troubleshooting, System Engineering, Training, AppleShare/OSX Server Setup, System Upgrades and Enhancements From katir at hindu.org Wed May 8 20:45:15 2002 From: katir at hindu.org (Sivakatirswami) Date: Thu May 9 00:45:15 2002 Subject: Recursive Directory Walker for really huge numbers of files Message-ID: The scripts so far given as examples setting a directory and recursively digging all sub directories (.to return a list of all files with a full path for each one) do work, but, as soon as the number of subdirectories rises and file counts go up... things slow down to an unworkable crawl. Context is: a web site mirror on a local server on the LAN with nearly 6,000 folders and files... I need to get a path listing for all those files and then filter with "*.html" Pretty simple really... (BBedit has batch functions, but there are serious bugs in it's search and replace if you use grep for the find. If you try to replace really big chunks, crazy things happen... but the same operation works just fine in MC.) I am using Ken Ray's script, and changed the repeat to use the "for each line" to speed it up, but it still take ages to get a path list. Anyone know a way to make this really fast? global gHierList,gMainFolder,gBaseLevels on mouseUp put "" into gHierList answer folder "Pick a folder you want to walk:" if it = "" then exit mouseUp set the itemDel to "/" put it into gMainFolder put the number of items of gMainFolder into gBaseLevels directoryWalk gMainFolder put gHierList into field "result" end mouseUp on directoryWalk whatFolder set the itemDel to "/" set the directory to whatFolder put the files into temp filter temp with ".html" sort temp repeat for each line x in temp put whatFolder & "/" & x into line (the number of lines of gHierList)+1 of gHierList end repeat put the folders into tDirList sort tDirList delete line 1 of tDirList repeat for each line x in tDirList directoryWalk (whatFolder & "/" & x) end repeat end directoryWalk Hinduism Today Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.hinduismtoday.com www.himalayanacademy.com From harrison at all-auctions.com Wed May 8 20:51:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Thu May 9 00:51:01 2002 Subject: record sound on a Mac In-Reply-To: Message-ID: Hi there, Has anyone successfully been able to get the record sound function to work properly on the Mac? I can't seem to get it to work. The file is created but there is no sound in it at all. Thanks in advance! Rick Harrison From pixelbird at interisland.net Wed May 8 21:24:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu May 9 01:24:01 2002 Subject: Converted Help Docs available? In-Reply-To: <025B7B1C-628F-11D6-9E22-000502E12568@mac.com> Message-ID: on 5/8/02 7:22 AM, Barry Levine at themacguy at mac.com wrote: > I've tried that stack that allegedly converts the Rev Help over to > rtf/html/text but it doesn't seem to do anything. Has anyone > successfully done this conversion and, if so, would you like to share > the resulting docs? Are they posted anywhere I can download them? ---------- I remember having a problem, too, after I first D/L'd them. I don't think it's a standalone. It needs the engine to work, so you must open Rev, then you can save the docs. Ask Geoff Canyon. It's his stack. Bestregards, Ken N. From dcragg at lacscentre.co.uk Wed May 8 22:02:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Thu May 9 02:02:01 2002 Subject: Recursive Directory Walker for really huge numbers of files In-Reply-To: References: Message-ID: Hi I'd look at changing the following section: > repeat for each line x in temp > put whatFolder & "/" & x into line (the number of lines of gHierList)+1 >of gHierList > end repeat Change to something like: repeat for each line x in temp put whatFolder & "/" & x & return after gHierList end repeat delete char -1 of gHierList ##last return Cheers Dave From pixelbird at interisland.net Wed May 8 22:24:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu May 9 02:24:01 2002 Subject: record sound on a Mac In-Reply-To: Message-ID: on 5/8/02 10:47 PM, Rick Harrison at harrison at all-auctions.com wrote: > Hi there, > > Has anyone successfully been able to get the record sound function > to work properly on the Mac? ---------- Of course. No problem. ---------- > I can't seem to get it to work. The file is created but there is > no sound in it at all. ---------- First, open the Monitors & Sound control panel, click open the Sound section and choose the Sound Input you want to use. For example: in my PowerBook OS 8.6, the pulldown menu shows "Internal Microphone", "Expansion Bay" (usually the CD ROM), or "Line In" (the Line-In miniplug stereo jack in the rear of the computer). Note: If you wish to record from an external microphone, you need a line-level preamp between it and the jack on the computer. They make small ones for just that purpose. I'll locate one if you wish, but another way to go is to use your stereo system, if it has a genuine microphone input jack. Get a stereo cable adapter at Radio Shack (or wherever) so you have RCA jacks on the stereo system end, and a stereo miniplug on the computer end. Connect the cable from the stereo system Line-Out to the computer Line-In and plug your mike into your stereo system. Make sure you've chosen Line In from the control panel as noted in the first paragraph. You are now ready to record with an external mike. Anything else? Best regards, Ken N. From ludovic.thebault at laposte.net Wed May 8 23:11:03 2002 From: ludovic.thebault at laposte.net (Ludovic Th=?ISO-8859-1?Q?=E9?=bault) Date: Thu May 9 03:11:03 2002 Subject: Show a preview of stack files ? Message-ID: <20020509100617.493FA4%00000000@laposte.net> It is possible to see a preview of stack files (just an image of first card) before open it ? Thanks. -- Ludovic THEBAULT (Sorry for my poooor english :-) From Doug_Ivers at lord.com Thu May 9 01:44:00 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Thu May 9 05:44:00 2002 Subject: Getting all the fields/buttons Message-ID: <6150F6099DBED111852E0008C7241464049B385F@NTSRV-CRD04> Good point. I assume this will only work on objects for which I have not specified a font different from the stack font. -- D > -----Original Message----- > From: Sarah [mailto:sarahr at genesearch.com.au] > Sent: Wednesday, May 08, 2002 5:58 PM > To: use-revolution at lists.runrev.com > Subject: Re: Getting all the fields/buttons > > > Do you really need to list all the fields? Unless the font > has already > been explicitly set, you can change the textFont of the stack (or the > card) and all the objects will then use that new font. > > Sarah > > On Wednesday, May 8, 2002, at 11:12 pm, Ivers, Doug E wrote: > > > Is this the best way to "get" all the fields of a stack > once and only > > once? > > (Ultimately, I want to be able to change the font of all > the fields in a > > stack, but for now this just lists them.) > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From desoi at mac.com Thu May 9 04:19:00 2002 From: desoi at mac.com (John DeSoi) Date: Thu May 9 08:19:00 2002 Subject: 2nd screen dimensions Message-ID: Is there a plugin or some other way to get the coordinates of a monitor other than the main screen? Thanks, John DeSoi, Ph.D. From claus at dreischer.de Thu May 9 05:45:01 2002 From: claus at dreischer.de (Claus Dreischer) Date: Thu May 9 09:45:01 2002 Subject: telnet is open socket to "xxx:23" ? Message-ID: <3CDA8AAA.2624AA0E@dreischer.de> Hi, I'm fairly new to Revolution (so don't blame me for RTFMs or so ;) I want to controll my Elsa-router via telnet. So i do something like: put "192.168.0.254:23" into mySocket open socket to mySocket and with read from socket mySocket I get the start messages from the router, but when i try to write something to the router with: write "cd Other" & linefeed to socket mySocket write "do Boot-system" & linefeed to socket mySocket (this should reboot the router) nothing happens. A following read from socket mySocket for 22 gives me "cd Otherdo Boot-system" as the echo from telnet. So, to me it looks like the after each command is not transmitted. How can i send an with write to socket ? Regards, Claus Dreischer. From yvescoppe at skynet.be Thu May 9 06:50:00 2002 From: yvescoppe at skynet.be (yves COPPE) Date: Thu May 9 10:50:00 2002 Subject: print Message-ID: Hi, Is it possible to force the printing in the "landscape" mode in a script with "revPrintText" without having to use previously the revShowPrintDialog ? Thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be From k_major at osnabrueck.netsurf.de Thu May 9 06:55:01 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Thu May 9 10:55:01 2002 Subject: telnet is open socket to "xxx:23" ? In-Reply-To: <3CDA8AAA.2624AA0E@dreischer.de> Message-ID: Hi Clau, > Hi, > > I'm fairly new to Revolution (so don't blame me for RTFMs or so ;) > > I want to controll my Elsa-router via telnet. > So i do something like: > > put "192.168.0.254:23" into mySocket > open socket to mySocket > > and with > read from socket mySocket > > I get the start messages from the router, > but when i try to write something to the router with: > > write "cd Other" & linefeed to socket mySocket > write "do Boot-system" & linefeed to socket mySocket > > (this should reboot the router) nothing happens. > > A following > read from socket mySocket for 22 > > gives me "cd Otherdo Boot-system" as the echo from telnet. > > So, to me it looks like the after each command is not > transmitted. > > How can i send an with write to socket ? > > > Regards, > Claus Dreischer. don't know if this helps, but try: ... write "cd Other" & CRLF to socket mySocket ... Tschuess :-) Klaus Major k_major at osnabrueck.netsurf.de From fuegox at mac.com Thu May 9 07:13:01 2002 From: fuegox at mac.com (Mark Talluto) Date: Thu May 9 11:13:01 2002 Subject: record sound on a Mac In-Reply-To: <200205090526.BAA12350@www.runrev.com> Message-ID: <2DF24738-6367-11D6-ABD3-003065B78238@mac.com> On Wednesday, May 8, 2002, at 10:26 PM, use-revolution- request at lists.runrev.com wrote: > Hi there, > > Has anyone successfully been able to get the record sound function > to work properly on the Mac? > > I can't seem to get it to work. The file is created but there is > no sound in it at all. > > Thanks in advance! > > Rick Harrison There are some bugs in QuickTime 5 that are causing your grief. Lets hope that QT 6 fixes them. There are ways to get sound to record in, but it will not be reliable at this time. I spent a lot of time working with them. -Mark Talluto From bvlahos at jpl.nasa.gov Thu May 9 07:26:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Thu May 9 11:26:01 2002 Subject: print In-Reply-To: Message-ID: <0228CE93-6369-11D6-8F48-000393853DBC@jpl.nasa.gov> Yves, I just happened to be looking at this today. Use the printRotated property. set the printRotated to true Bill Vlahos On Thursday, May 9, 2002, at 08:47 AM, yves COPPE wrote: > Hi, > > Is it possible to force the printing in the "landscape" mode in a > script with "revPrintText" without having to use previously the > revShowPrintDialog ? > > Thanks. > -- Greetings. > > Yves COPPE > > Email : yvescoppe at skynet.be > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution From pixelbird at interisland.net Thu May 9 07:54:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Thu May 9 11:54:01 2002 Subject: record sound on a Mac In-Reply-To: <2DF24738-6367-11D6-ABD3-003065B78238@mac.com> Message-ID: on 5/9/02 9:09 AM, Mark Talluto at fuegox at mac.com wrote: > There are some bugs in QuickTime 5 that are causing your grief. Lets > hope that QT 6 fixes them. There are ways to get sound to record in, > but it will not be reliable at this time. I spent a lot of time working > with them. ---------- Hi Mark, Bugs like what? I'm not experiencing any problems if things are set up properly. Can you say precisely what your problems are? Maybe I can help. Ken N. From harrison at all-auctions.com Thu May 9 08:11:01 2002 From: harrison at all-auctions.com (Rick Harrison) Date: Thu May 9 12:11:01 2002 Subject: record sound on a Mac In-Reply-To: Message-ID: > Hello, > You need to have "QuickTime Pro" installed. Do you have it? > The player you can dowload free enables you to listen to files, but not to > record them. > Your problem may be due to that. If it is, you can get "QuickTime Pro" at > "www;quicktime.com" it costs about $20. > Regards > Jean-Luc Derrien > Runion Island, France, Indian Ocean Jean-Luc, You are absolutely correct! I had been putting off getting "Quicktime Pro" because up until now I didn't need it for recording anything. I ended up having to pay about $30 for it since it comes for both Mac OS 9 and Mac OS X. Everything works fine now. Thanks! Rick Harrison From digifilm at digifilm.com Thu May 9 09:24:01 2002 From: digifilm at digifilm.com (debdoot das) Date: Thu May 9 13:24:01 2002 Subject: App for Sale In-Reply-To: References: <6150F6099DBED111852E0008C7241464049B379E@NTSRV-CRD04> Message-ID: If someone is interested in buying a promising shareware product and keeping it updated then please send me an email for more information. (Yes the code is in Rev). Regards, dd From fuegox at mac.com Thu May 9 10:38:01 2002 From: fuegox at mac.com (Mark Talluto) Date: Thu May 9 14:38:01 2002 Subject: use-revolution digest, Vol 1 #392 - 11 msgs In-Reply-To: <200205091601.MAA21759@www.runrev.com> Message-ID: On Thursday, May 9, 2002, at 09:01 AM, use-revolution- request at lists.runrev.com wrote: >> There are some bugs in QuickTime 5 that are causing your grief. Lets >> hope that QT 6 fixes them. There are ways to get sound to record in, >> but it will not be reliable at this time. I spent a lot of time >> working >> with them. > ---------- > Hi Mark, > > Bugs like what? I'm not experiencing any problems if things are set up > properly. Can you say precisely what your problems are? Maybe I can > help. > > Ken N. Hi Ken. I regularly get a recording that is cut up. For example: If I record " test 1, test 2, test 3". The playback may be: "test 2, test 3,...test 1" I reported it to MC and have been told that the problem is in QT 5. This has been confirmed at least on OS 10.1.4. I have not tried this on a Win system yet. -Mark Talluto From fuegox at mac.com Thu May 9 10:40:00 2002 From: fuegox at mac.com (Mark Talluto) Date: Thu May 9 14:40:00 2002 Subject: record sound on a Mac Message-ID: <03ACDDB6-6384-11D6-9D8C-003065B78238@mac.com> On Thursday, May 9, 2002, at 09:01 AM, use-revolution- request at lists.runrev.com wrote: >> There are some bugs in QuickTime 5 that are causing your grief. Lets >> hope that QT 6 fixes them. There are ways to get sound to record in, >> but it will not be reliable at this time. I spent a lot of time >> working >> with them. > ---------- > Hi Mark, > > Bugs like what? I'm not experiencing any problems if things are set up > properly. Can you say precisely what your problems are? Maybe I can > help. > > Ken N. Hi Ken. I regularly get a recording that is cut up. For example: If I record " test 1, test 2, test 3". The playback may be: "test 2, test 3,...test 1" I reported it to MC and have been told that the problem is in QT 5. This has been confirmed at least on OS 10.1.4. I have not tried this on a Win system yet. -Mark Talluto From claus at dreischer.de Thu May 9 11:46:01 2002 From: claus at dreischer.de (Claus Dreischer) Date: Thu May 9 15:46:01 2002 Subject: telnet is open socket to "xxx:23" ? References: Message-ID: <3CDADF46.F412E08F@dreischer.de> Hi Klaus, Klaus Major wrote: > > Hi Claus, > > > Hi, ... > > write "cd Other" & linefeed to socket mySocket > > write "do Boot-system" & linefeed to socket mySocket > > > > (this should reboot the router) nothing happens. > > > > A following > > read from socket mySocket for 22 > > > > gives me "cd Otherdo Boot-system" as the echo from telnet. > > > > So, to me it looks like the after each command is not > > transmitted. > > > > How can i send an with write to socket ? > > > > > > Regards, > > Claus Dreischer. > > don't know if this helps, but try: > > ... > write "cd Other" & CRLF to socket mySocket > ... It's working now! Thanks. Too bad i havn't found the CRLF-constant in the Transcript Dictionary. > Tschuess :-) > Klaus Major Gru, Claus Dreischer. PS: Kaum macht man's richtig, schon funktionierts ;) From katir at hindu.org Thu May 9 12:43:08 2002 From: katir at hindu.org (Sivakatirswami) Date: Thu May 9 16:43:08 2002 Subject: Recursive Directory Walker for really huge numbers of files In-Reply-To: <200205091604.MAA21916@www.runrev.com> Message-ID: Case is closed, but this may be useful to others: Regarding the recursion on the directory walk script that I was experiencing... aside from file names and folders containing slashes...I discovered another weird anomaly/../anomaly../anomaly.... The script started returning baseDirectory/some folder/../../../../../../../../../ and the end of this started growing infinitely. When I did this from our OSX server, I got this: Live Web Site BackUps/www.himalayanAcademy.com/../store.himalayanacademy.com ../store.himalayanacademy.com../store.himalayanacademy.com../store.himalayan academy.com etc until I have to break with cmd . So, I asked the script to simply list the folders at the top level and then bail out and I got this -images .. art books cg-bin hawaii etc. But you cannot see that folder ".."; you cannot search for it in Sherlock... if that folder ".." exists in a directory on the server and you copy that directory to your hard drive, it will be there also, then the recursive directory walk will also fail on that line... I don't understand it at all, but thought just to skip that folder and it should work... it did: So, I added a line to prevent that folder from being returned to the dig put the folders into tDirList sort tDirList put whatFolder & cr & cr & tDirList delete line 1 of tDirList repeat for each line x in tDirList if x = ".." then next repeat ## skip that folder directoryWalk (whatFolder & "/" & x) end repeat And then, the problem disappeared. And you are right Geoff, incredibly fast: 6 seconds to dig for a file list of 5210 files on the server on the... great! thanks! Sivakatirswami Editor's Assistant/Production Manager katir at hindu.org www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml From rupertus at netgate.com.uy Thu May 9 13:12:01 2002 From: rupertus at netgate.com.uy (Eduardo Di Santi) Date: Thu May 9 17:12:01 2002 Subject: Remove me please Message-ID: <3CDB9D2F.2030800@netgate.com.uy> Please remove me From bvlahos at jpl.nasa.gov Thu May 9 13:15:01 2002 From: bvlahos at jpl.nasa.gov (Bill Vlahos) Date: Thu May 9 17:15:01 2002 Subject: Text file end of line Message-ID: Revolution does a great job saving a text file in the platform-appropriate format automatically. On Macs text files the end-of-line delimiter is a return, on unix it is a line feed, on Windows it is a return followed by a line feed. I have an application where I want to read a text file which resides on a server into the various platforms. If I create the file on a Mac both the Mac and Windows Rev apps read the file correctly but a linux app puts everything on the same line. I can fix this the hard way by doing a replace return with line feed if the app is a unix app, but is there a better way? Bill Vlahos From dsc at swcp.com Thu May 9 13:42:01 2002 From: dsc at swcp.com (Dar Scott) Date: Thu May 9 17:42:01 2002 Subject: Recursive Directory Walker for really huge numbers of files In-Reply-To: Message-ID: <28174E82-639D-11D6-8712-0050E4C0B205@swcp.com> On Thursday, May 9, 2002, at 03:37 PM, Sivakatirswami wrote: > Regarding the recursion on the directory walk script that I was > experiencing... aside from file names and folders containing > slashes...I > discovered another weird anomaly/../anomaly../anomaly.... > > The script started returning > > baseDirectory/some folder/../../../../../../../../../ > > and the end of this started growing infinitely. .. is the parent folder. Dar Scott From jplam at netrin.com Thu May 9 14:53:01 2002 From: jplam at netrin.com (Jim Lambert) Date: Thu May 9 18:53:01 2002 Subject: quickeys In-Reply-To: <200205090526.BAA12350@www.runrev.com> Message-ID: Anyone know if there is a way to send a key combination from Rev to Quickeys on the mac? TYPE doesn't seem to pass out of the app. Thanks, Jim Lambert P.S. For the curious, I'm trying to control another application that is not Applescriptable, doesn't even support the basic AppleEvents! From lists at retiariusenterprises.com Thu May 9 18:49:01 2002 From: lists at retiariusenterprises.com (Dave) Date: Thu May 9 22:49:01 2002 Subject: Application Path? Message-ID: Is there a function that returns the path to where my rev app is located? I'd like to store of few text files in the data folder. Thanks! -- Dave Retiarius Enterprises From drvaughan55 at mac.com Thu May 9 19:07:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Thu May 9 23:07:01 2002 Subject: Application Path? In-Reply-To: Message-ID: <064DCB2F-63CB-11D6-B4D0-000393598038@mac.com> On Friday, May 10, 2002, at 01:44 , Dave wrote: > Is there a function that returns the path to where my rev app is > located? > > I'd like to store of few text files in the data folder. Dave The property DefaultFolder contains the path from which the app was started until you change it (which you can). You can find full documentation under that name in the Transcript Dictionary. The following is intended to help, not in the least to criticise, because I know it can be hard to find a term in the TD if you are not sure in the first place how it might be addressed. I and others have found it helpful to go to the Transcript Language Dictionary through the Help menu and click the check box which makes it the default entry when choosing Revolution Documentation under that menu. The TLD page has a set of filters which make it easier to find interesting things for which you can check the definition in the TD by clicking on it. While you are getting accustomed to that, feel free to keep asking questions. cheers David > > Thanks! > > > -- > Dave > Retiarius Enterprises > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From lists at retiariusenterprises.com Thu May 9 19:44:01 2002 From: lists at retiariusenterprises.com (Dave) Date: Thu May 9 23:44:01 2002 Subject: Application Path? In-Reply-To: <064DCB2F-63CB-11D6-B4D0-000393598038@mac.com> Message-ID: Thanks David, for both the tip and the suggestion. What's sad, is that I did go to the Transcript Language Dictionary and filter through various keywords. I used Application, Path, appPath, standalonePath, etc. No luck. I think for newbies like myself, having the ability to search the descriptions in the Transcript Dictionary would be a useful new feature. :-) Thanks again. -Dave On 5/9/02 10:04 PM, "David Vaughan" wrote: > > On Friday, May 10, 2002, at 01:44 , Dave wrote: > >> Is there a function that returns the path to where my rev app is >> located? >> >> I'd like to store of few text files in the data folder. > > Dave > > The property DefaultFolder contains the path from which the app was > started until you change it (which you can). You can find full > documentation under that name in the Transcript Dictionary. > > The following is intended to help, not in the least to criticise, > because I know it can be hard to find a term in the TD if you are not > sure in the first place how it might be addressed. I and others have > found it helpful to go to the Transcript Language Dictionary through the > Help menu and click the check box which makes it the default entry when > choosing Revolution Documentation under that menu. The TLD page has a > set of filters which make it easier to find interesting things for which > you can check the definition in the TD by clicking on it. > > While you are getting accustomed to that, feel free to keep asking > questions. > > cheers > David From drvaughan55 at mac.com Thu May 9 21:47:01 2002 From: drvaughan55 at mac.com (David Vaughan) Date: Fri May 10 01:47:01 2002 Subject: Application Path? In-Reply-To: Message-ID: <4368B947-63E1-11D6-B4D0-000393598038@mac.com> On Friday, May 10, 2002, at 02:40 , Dave wrote: > Thanks David, for both the tip and the suggestion. > > What's sad, is that I did go to the Transcript Language Dictionary and > filter through various keywords. I used Application, Path, appPath, > standalonePath, etc. No luck. > > I think for newbies like myself, having the ability to search the > descriptions in the Transcript Dictionary would be a useful new > feature. :-) ..even for middlebies and possibly oldbies. Did someone here once mention it can be done? cheers David > > Thanks again. > > -Dave > > On 5/9/02 10:04 PM, "David Vaughan" wrote: > >> >> On Friday, May 10, 2002, at 01:44 , Dave wrote: >> >>> Is there a function that returns the path to where my rev app is >>> located? >>> >>> I'd like to store of few text files in the data folder. >> >> Dave >> >> The property DefaultFolder contains the path from which the app was >> started until you change it (which you can). You can find full >> documentation under that name in the Transcript Dictionary. >> >> The following is intended to help, not in the least to criticise, >> because I know it can be hard to find a term in the TD if you are not >> sure in the first place how it might be addressed. I and others have >> found it helpful to go to the Transcript Language Dictionary through >> the >> Help menu and click the check box which makes it the default entry when >> choosing Revolution Documentation under that menu. The TLD page has a >> set of filters which make it easier to find interesting things for >> which >> you can check the definition in the TD by clicking on it. >> >> While you are getting accustomed to that, feel free to keep asking >> questions. >> >> cheers >> David > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From niklas_almesjo at yahoo.com Thu May 9 22:14:00 2002 From: niklas_almesjo at yahoo.com (Niklas Almesj) Date: Fri May 10 02:14:00 2002 Subject: setprops, which property? In-Reply-To: <200205091601.MAA21759@www.runrev.com> Message-ID: <20020510071102.99923.qmail@web12302.mail.yahoo.com> Thanks, that was just what I was looking for. cheers, / Niklas Almesj Sorry. I missed the beginning of this. Is this what you need? on mouseUp set the myArray["age"] of me to "very old" end mouseUp setprop myArray[whichKey] pValue switch whichKey case "name" answer "Your name is" && pValue break case "age" answer "You are" && pValue break end switch end myArray Cheers Dave Cragg __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com From kmajor at metascape.org Thu May 9 22:22:01 2002 From: kmajor at metascape.org (Klaus Major) Date: Fri May 10 02:22:01 2002 Subject: Rev Language Ref now available in pdf In-Reply-To: Message-ID: Hi Mac-guy, > A lista was kind enough to make available to me the converted docs in > html, text, and rtf format. I took the liberty of converting the > language reference from rtf into a pdf file. You may download it from > my public folder at: > > The requested application was not found on this server > The file name is "revdocs.pdf"; you'll see it listed there. It's 3.5MB > and is, of course, compatible with any platform that can run Acrobat > Reader. > > Barry > -------------------------------------------------------- > Barry Jay Levine > "The Mac Guy" Any hints ;-) Regards Klaus Major kmajor at metascape.org From pixelbird at interisland.net Thu May 9 22:28:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Fri May 10 02:28:01 2002 Subject: record sound on a Mac In-Reply-To: <03ACDDB6-6384-11D6-9D8C-003065B78238@mac.com> Message-ID: on 5/9/02 12:36 PM, Mark Talluto at fuegox at mac.com wrote: > > > On Thursday, May 9, 2002, at 09:01 AM, use-revolution- > request at lists.runrev.com wrote: > >>> There are some bugs in QuickTime 5 that are causing your grief. Lets >>> hope that QT 6 fixes them. There are ways to get sound to record in, >>> but it will not be reliable at this time. I spent a lot of time >>> working >>> with them. >> ---------- >> Hi Mark, >> >> Bugs like what? I'm not experiencing any problems if things are set up >> properly. Can you say precisely what your problems are? Maybe I can >> help. >> >> Ken N. > > Hi Ken. I regularly get a recording that is cut up. For example: If I > record " test 1, test 2, test 3". > > The playback may be: "test 2, test 3,...test 1" > > I reported it to MC and have been told that the problem is in QT 5. > This has been confirmed at least on OS 10.1.4. I have not tried this on > a Win system yet. ---------- OK, you're talking about QuickTime. I don't think the original post on this thread mentioned anything about QT, just about recording sound. The things you're indicating aren't possible unless you have stitched sound clips together. I don't see how QT could take one recorded clip, cut it up in pieces, and rearrange it like that on its own. No one I know of has experienced anything like this. What, exactly, do you mean by "cut up"? How are you recording, i.e., what is the hardware configuration and hookups? What software are you using to make the recording, and what type of file is it? The reason I ask is because just recently, someone on the HC list emailed me some short sound clips he recorded from his TV with shareware called Coaster 1.0.6. I imported them to QT Pro and converted, then I put the sound file titles in a clickable field. They call invisible movie windows which play the clips. No problems with the sound. If we are to track this down, we need more precise info about how you are making the recording, and your procedures for moving into QT. Hang in there, there is a reason for everything. Best regards, Ken N. From degbert at mac.com Thu May 9 23:54:01 2002 From: degbert at mac.com (David Egbert) Date: Fri May 10 03:54:01 2002 Subject: Application Path? Message-ID: Is there a function that returns the path to where the rev app is located? I'd like to store of few text files in the data folder. Thanks! -- Dave Retiarius Enterprises From benr_mc at cogapp.com Fri May 10 00:01:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri May 10 04:01:01 2002 Subject: quickeys In-Reply-To: Message-ID: on 10/5/02 12:49 AM, Jim Lambert at jplam at netrin.com wrote: > Anyone know if there is a way to send a key combination from Rev to Quickeys > on the mac? > TYPE doesn't seem to pass out of the app. I'm not aware of anything - but isn't Quickeys itself AppleScript'able? Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From benr_mc at cogapp.com Fri May 10 00:06:01 2002 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri May 10 04:06:01 2002 Subject: Application Path? In-Reply-To: <4368B947-63E1-11D6-B4D0-000393598038@mac.com> Message-ID: on 10/5/02 7:43 AM, David Vaughan at drvaughan55 at mac.com wrote: >> I think for newbies like myself, having the ability to search the >> descriptions in the Transcript Dictionary would be a useful new >> feature. :-) > > ..even for middlebies and possibly oldbies. > Did someone here once mention it can be done? For everybies! Using the find box in the Transcript Dictionary itself, type a term and use option-enter to search through the text of entries (where enter by itself would just search the entry titles). This was new in 1.1. This steps through each occurence of the term (ie if it appears three times in one entry, option-enter will step through each occurence before moving on to the next term where it appears). The matching occurence is marked with a box - but note that it doesn't scroll the text, so unless you've opened the Transcript Dictionary into a long window, it may not be obvious. There's currently a minor bug that it queues up visual effects for each occurence, so you get multiple ones when it goes to the next entry - I believe Jeanne has already fixed this for the next release You also might want to get Geoff Canyon's stack which rips the documentation into a single big file in various formats (or the copies which people have posted) - then you can use search in these files. A thought for Jeanne, to help fill your copious free time: it might be really useful to have a version of the index in the main documentation stack (which offers a list of terms in the dictionary, filtered by matching some text in the title) - a version which filters by matching some text anywhere in the entry. So if one searched for, say, "linefeed", rather than stepping through each occurence of that word in each entry, you'd just get a list of the matching entries, so you could immediately see which ones might be relevant. I certainly wouldn't object if it took a noticeable time to build up this list - it would still be faster than the existing alternatives. Ben Rubinstein | Email: benr_mc at cogapp.com Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 From Doug_Ivers at lord.com Fri May 10 03:13:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Fri May 10 07:13:01 2002 Subject: script limit Message-ID: <6150F6099DBED111852E0008C7241464049B386E@NTSRV-CRD04> I stumbled across this today in the language dict. under "script": "If the user has the Starter Kit version rather than the full licensed version, an object's script property may not be set to a string containing more than ten statements. This limit is set by line 1 of the scriptLimits function. (Standalone applications you create with Revolution also have this limitation, since standalones are freely distributable and are not themselves licensed.) With a licensed version of Revolution, script length is effectively unlimited." Does the statement in parens apply only to standalones made with the Starter Kit, or ALL standalones. If the latter, then I'm totally confused because I've successfully created standalones having scripts longer than 10 lines. -- D From gwills at ozemail.com.au Fri May 10 03:19:01 2002 From: gwills at ozemail.com.au (Greg Wills) Date: Fri May 10 07:19:01 2002 Subject: Playing players in sequence In-Reply-To: <200205061530.LAA31519@www.runrev.com> References: <200205061530.LAA31519@www.runrev.com> Message-ID: Thanks Rick for your suggestion to time each movie to wait until one movie is done before the next plays, eg "wait 230" etc. I had started off here, but each of the clips will be different lengths (and maybe many of them). Thanks Klaus for the switch the_player case "sound 1" start player "sound 2" break case "sound 2" start player "sound 2" break end switch . . . solution. I could not get this to work, but I put it down to my lack of knowledge of the switch, case structure. (I could not find the correct form/word for the the_player. I tried a number of options but could not get it to work.) Thanks Kurt for the; on playstopped play videoclip "sound2" end playstopped to go in sound2 player's script, etc, etc. As I understand this situation, playstopped is sent to the card script. This being the case, I put this (above) script into the card script. The problem being, once the first clip is played (from a card button), the playstopped message is sent to the card, which plays the next clip, which sends the playstopped script to the card, which then loops and can't stop and plays the same clip over and over. Below is what I have ended up with. This works fine, but I would be interested to have any feedback on a more efficient (or different) solution. A card button starts the process with; on mouseUp global bagged put empty into bagged play player "the" end mouseUp The card script captures the playstopped message and plays each player only once; on playstopped global bagged add 1 to bagged wait 10 -- just to give a pause between words/clips if bagged = 1 then baggedOne if bagged = 2 then baggedTwo if bagged = 3 then baggedThree if bagged = 4 then baggedFour if bagged = 5 then baggedFive end playstopped on baggedOne play player "cat" add 1 to bagged end baggedOne on baggedTwo play player "sat" add 1 to bagged end baggedTwo . . . etc, etc end baggedFive Thanks again everyone for your help. Greg From kmajor at metascape.org Fri May 10 03:52:01 2002 From: kmajor at metascape.org (Klaus Major) Date: Fri May 10 07:52:01 2002 Subject: Playing players in sequence In-Reply-To: Message-ID: Hi Greg, > > Thanks Klaus for the > switch the_player > case "sound 1" > start player "sound 2" > break > case "sound 2" > start player "sound 2" > break > end switch > > . . . solution. I could not get this to work, but I put it down to my > lack of knowledge of the switch, case structure. (I could not find the > correct form/word for the the_player. I tried a number of options but > could not get it to work.) the_player will be replaced by RR with the name of the player that has stopped. It is just a placeholder. You could even call it Bruce ;-) Regards Klaus Major kmajor at metascape.org From kmajor at metascape.org Fri May 10 04:03:01 2002 From: kmajor at metascape.org (Klaus Major) Date: Fri May 10 08:03:01 2002 Subject: Playing players in sequence In-Reply-To: Message-ID: <97960DEE-6415-11D6-AD0E-003065D52E8E@metascape.org> Hi Greg, > Thanks Rick for your suggestion to time each movie to wait until one > movie is done before the next plays, eg "wait 230" etc. I had started > off here, but each of the clips will be different lengths (and maybe > many of them). in this case you can query the length of the movies from RR. The duration of player "xxx" will give you the length of that movie, but in its own timescale. But you can query that too. The timescale of player "xxx" will give you the players timescale. then you can divide it and you have the length of that player in secs. (the duration of player "xxx")/(the timescale of player "xxx") Hope that helps... Regards Klaus Major kmajor at metascape.org From karlpet at mac.com Fri May 10 04:45:00 2002 From: karlpet at mac.com (Karl Petersen) Date: Fri May 10 08:45:00 2002 Subject: Application Path? In-Reply-To: References: Message-ID: At 10:40 PM -0600 5/9/02, Dave wrote: >I think for newbies like myself, having the ability to search the >descriptions in the Transcript Dictionary would be a useful new feature. :-) Beginning with Rev 1.1.1, you can search for words in the text of the dictionary instead of just Transcript commands. Press the Option key when you search. To search for "path" in the text of the dictionary, type "path" in the search field, press the Option key, then hit Enter/Return. To make it easier to view each "hit", drag the dictionary window as long as possible. Currently, the foundField doesn't scroll to display the foundText, which can be confusing. Sometimes it appears the found card doesn't contain a hit, but it's revealed when you scroll down. Karl From themacguy at mac.com Fri May 10 04:45:29 2002 From: themacguy at mac.com (Barry Levine) Date: Fri May 10 08:45:29 2002 Subject: Rev Docs in pdf - link correction! Message-ID: <92D0DCC7-641B-11D6-A911-000502E12568@mac.com> Oops! I copied the link incorrectly. Here is the correct link where you may download the Rev language reference in pdf format: .html Barry -------------------------------------------------------- Barry Jay Levine "The Mac Guy" Macintosh Troubleshooting, System Engineering, Training, AppleShare/OSX Server Setup, System Upgrades and Enhancements From fuegox at mac.com Fri May 10 05:08:01 2002 From: fuegox at mac.com (Mark Talluto) Date: Fri May 10 09:08:01 2002 Subject: record sound on a Mac In-Reply-To: <200205100629.CAA00967@www.runrev.com> Message-ID: On Thursday, May 9, 2002, at 11:29 PM, use-revolution- request at lists.runrev.com wrote: >> >>>> There are some bugs in QuickTime 5 that are causing your grief. Lets >>>> hope that QT 6 fixes them. There are ways to get sound to record in, >>>> but it will not be reliable at this time. I spent a lot of time >>>> working >>>> with them. >>> ---------- >>> Hi Mark, >>> >>> Bugs like what? I'm not experiencing any problems if things are set up >>> properly. Can you say precisely what your problems are? Maybe I can >>> help. >>> >>> Ken N. >> >> Hi Ken. I regularly get a recording that is cut up. For example: >> If I >> record " test 1, test 2, test 3". >> >> The playback may be: "test 2, test 3,...test 1" >> >> I reported it to MC and have been told that the problem is in QT 5. >> This has been confirmed at least on OS 10.1.4. I have not tried this >> on >> a Win system yet. > ---------- > OK, you're talking about QuickTime. I don't think the original post on > this > thread mentioned anything about QT, just about recording sound. > > The things you're indicating aren't possible unless you have stitched > sound > clips together. I don't see how QT could take one recorded clip, cut it > up > in pieces, and rearrange it like that on its own. No one I know of has > experienced anything like this. What, exactly, do you mean by "cut up"? > How > are you recording, i.e., what is the hardware configuration and hookups? > What software are you using to make the recording, and what type of > file is > it? > > The reason I ask is because just recently, someone on the HC list > emailed me > some short sound clips he recorded from his TV with shareware called > Coaster > 1.0.6. I imported them to QT Pro and converted, then I put the sound > file > titles in a clickable field. They call invisible movie windows which > play > the clips. No problems with the sound. > > If we are to track this down, we need more precise info about how you > are > making the recording, and your procedures for moving into QT. > > Hang in there, there is a reason for everything. > > Best regards, > Ken N. Ken, While I am using MC to do this, it does apply to Rev users as well. I am recording in a small app I made. It works well except for on thing. It does not create a reliable recording. "recordinput" is a new command in 2.4.2 that allows you to set your audio input from within your script. Thanks for taking a look at this. The actual recording stack can be dowloaded from here: http://www.canelasoftware.com/pub/record.sit Anyone can have it if they like. I placed this in a button designed for recording: on mouseUp global tPath set the filename of player "audio" to empty reset the templatePlayer set the recordinput to "imic" set the recordFormat to "aiff" ask "Please enter the file name for this recording:" with "test" put it into tName if it is empty then exit to metacard if there is a directory "recordings" then else create directory "recordings" end if put the directory into tPath put "/recordings/" after tPath put tName after tPath set the vis of button "record" to false set the vis of button "play" to false set the vis of button "stop" to true record sound file tPath end mouseUp -Mark Talluto From dcragg at lacscentre.co.uk Fri May 10 05:14:01 2002 From: dcragg at lacscentre.co.uk (Dave Cragg) Date: Fri May 10 09:14:01 2002 Subject: script limit In-Reply-To: <6150F6099DBED111852E0008C7241464049B386E@NTSRV-CRD04> References: <6150F6099DBED111852E0008C7241464049B386E@NTSRV-CRD04> Message-ID: At 8:08 am -0400 10/5/02, Ivers, Doug E wrote: >I stumbled across this today in the language dict. under "script": > >"If the user has the Starter Kit version rather than the full >licensed version, an object's script property may not be set to a >string containing more than ten statements. This limit is set by >line 1 of the scriptLimits function. (Standalone applications you >create with Revolution also have this limitation, since standalones >are freely distributable and are not themselves licensed.) With a >licensed version of Revolution, script length is effectively >unlimited." > >Does the statement in parens apply only to standalones made with the >Starter Kit, or ALL standalones. If the latter, then I'm totally >confused because I've successfully created standalones having >scripts longer than 10 lines. The limit refers to the length of a script that can be "set", not the length of a script that can be run. This means that you can't distribute a standalone that allows a user to create a script greater than 10 lines, or have your standalone dynamically create or alter a script that is greater than 10 lines. But your standalones can contain scripts as long as you like, as long as you create them with a licensed version of Revolution. Cheers Dave Cragg From themacguy at mac.com Fri May 10 05:59:00 2002 From: themacguy at mac.com (Barry Levine) Date: Fri May 10 09:59:00 2002 Subject: Yet another correction to the pdf language ref link Message-ID: Darn! Lucky I don't write code like I compose eMails! Here's the corrected link. (Thanks, Karl!) Barry -------------------------------------------------------- Barry Jay Levine "The Mac Guy" Macintosh Troubleshooting, System Engineering, Training, AppleShare/OSX Server Setup, System Upgrades and Enhancements From Doug_Ivers at lord.com Fri May 10 06:01:01 2002 From: Doug_Ivers at lord.com (Ivers, Doug E) Date: Fri May 10 10:01:01 2002 Subject: script limit Message-ID: <6150F6099DBED111852E0008C7241464049B386F@NTSRV-CRD04> Ah, I see. Thanks for the clarification. -- D > -----Original Message----- > From: Dave Cragg [mailto:dcragg at lacscentre.co.uk] > Sent: Friday, May 10, 2002 10:06 AM > To: use-revolution at lists.runrev.com > Subject: Re: script limit > > > At 8:08 am -0400 10/5/02, Ivers, Doug E wrote: > >I stumbled across this today in the language dict. under "script": > > > >"If the user has the Starter Kit version rather than the full > >licensed version, an object's script property may not be set to a > >string containing more than ten statements. This limit is set by > >line 1 of the scriptLimits function. (Standalone applications you > >create with Revolution also have this limitation, since standalones > >are freely distributable and are not themselves licensed.) With a > >licensed version of Revolution, script length is effectively > >unlimited." > > > >Does the statement in parens apply only to standalones made with the > >Starter Kit, or ALL standalones. If the latter, then I'm totally > >confused because I've successfully created standalones having > >scripts longer than 10 lines. > > The limit refers to the length of a script that can be "set", not the > length of a script that can be run. This means that you can't > distribute a standalone that allows a user to create a script greater > than 10 lines, or have your standalone dynamically create or alter a > script that is greater than 10 lines. But your standalones can > contain scripts as long as you like, as long as you create them with > a licensed version of Revolution. > > Cheers > Dave Cragg > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > From dan at clearvisiontech.com Fri May 10 06:21:01 2002 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri May 10 10:21:01 2002 Subject: Application Path? Message-ID: Dave, I put this routine in the startUp script of all my projects. From it, I get a global variable called "applicationPath" that I can use any time which contains the path to the stack. on applicationPathAtStartUp global applicationPath put the fileName of this stack into applicationPath set the itemDel to "/" delete last item of applicationPath end applicationPathAtStartUp Hope that helps. -Dan > Is there a function that returns the path to where my rev app is > located? > > I'd like to store of few text files in the data folder. From pixelbird at interisland.net Fri May 10 07:45:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Fri May 10 11:45:01 2002 Subject: record sound on a Mac In-Reply-To: Message-ID: on 5/10/02 7:05 AM, Mark Talluto at fuegox at mac.com wrote: > if there is a directory "recordings" then > else > create directory "recordings" > end if ---------- This is in about the middle of your handler. It's apparently missing a line of code. If you copied it directly from your handler, then the handler may have a problem. The way it is, it looks like it will always try to create another directory with the same name, which means MC may be trying to pull from several directories with the same name, or try to 'attach' more recordings to the same directory, either of which will confuse the info it's supposed to be sending to tPath. However, if you _typed_ it into the email, then it may just be a typo here. Check it out. Best regards, Ken N. From jplam at netrin.com Fri May 10 08:00:01 2002 From: jplam at netrin.com (Jim Lambert) Date: Fri May 10 12:00:01 2002 Subject: quickeys In-Reply-To: <200205101546.LAA10559@www.runrev.com> Message-ID: Ah, so "DO somescript as AppleScript" where somescript is something like "tell application quickeys do themagickeycombination" Good suggestion, Ben, I'll try it. Thanks From pixelbird at interisland.net Fri May 10 08:16:01 2002 From: pixelbird at interisland.net (Ken Norris (dialup)) Date: Fri May 10 12:16:01 2002 Subject: Rev Docs in pdf - link correction! In-Reply-To: <92D0DCC7-641B-11D6-A911-000502E12568@mac.com> Message-ID: on 5/10/02 6:41 AM, Barry Levine at themacguy at mac.com wrote: > Oops! I copied the link incorrectly. Here is the correct link where you > may download the Rev language reference in pdf format: > > .html ---------- Thanks Barry, I'm in the process of building a reference computer out of an old Mac IIci. It's already the hottest old Mac of that vintage on the island. RasterOps nubus w/daughtercard and drivers, accelerator card, memeory within a few weeks of being 128 mb. While I've gotcha here: 1) Can I upgrade to an 040 proc or get a better mainboard for that IIci, or maybe clock the 030? I want it to search faster, and I'm also looking for the software patch so I can bring it from OS 7.6 to 8.1, which is more efficient with HD memory. Do you know where I can get it? 2) I have a 2 yr-old G4 350mhz w/512mb memory, DVD ROM, and 40g HD. I will be using it to develop in RR (among other things). I'd like to get opinions on the best upgrades. I want the best fast board and maybe a Super Drive, but I've heard negative things about some third party boards, and a few bad things concerning the reliability of the Super Drive. Thanks much, Ken N. From devin_asay at byu.edu Fri May 10 08:21:01 2002 From: devin_asay at byu.edu (Devin Asay) Date: Fri May 10 12:21:01 2002 Subject: Application Path? In-Reply-To: <200205101546.LAA10511@www.runrev.com> References: <200205101546.LAA10511@www.runrev.com> Message-ID: Dave Egbert asked: >Is there a function that returns the path to where the rev app is located? > >I'd like to store of few text files in the data folder. When you're in developer environment and you check the defaultFolder property, it will always return the path to the Rev application by, well, default. You can change the defaultFolder to whatever you want. Once you build a distribution from your stack the defaultFolder is the folder containing your standalone app, since that is where the runtime engine resides. Devin -- Devin Asay Humanities Research Center Brigham Young University From RAaaaaaaaaaaaa at aol.com Fri May 10 08:40:00 2002 From: RAaaaaaaaaaaaa at aol.com (RAaaaaaaaaaaaa at aol.com) Date: Fri May 10 12:40:00 2002 Subject: Starter Kit Message-ID: <153.db6f494.2a0d5d4d@aol.com> To all Starter Kit Rev users: THIS IS JUST A COMMENTARY. THIS IS NOT MEANT TO BE THE BEGINNING OF A DISCUSSION! I just have to say... I know that RunRev has granted the use of Revolution in the Starter Kit, but don't you feel that this is in some way... stealing? Although I'm sure quite ingenious, people are finding ways to stretch the limits of Revolution (in ten lines or less) to make applications... without any compensation going to the developers of Revolution. Why not just pay the license price? YOU WANT TO PAY THE LICENSE FEE! A company cannot grow without making money... PERIOD. The more RunRev makes, the better Revolution will be. Perhaps someday RunRev will remove the option to use their software for free and we can all get back to "REAL" growth! Just one guys opinion. From k_major at osnabrueck.netsurf.de Fri May 10 08:55:00 2002 From: k_major at osnabrueck.netsurf.de (Klaus Major) Date: Fri May 10 12:55:00 2002 Subject: Starter Kit In-Reply-To: <153.db6f494.2a0d5d4d@aol.com> Message-ID: Hi RAaaaaaaaaaaaa (what an interesting name ;-) > To all Starter Kit Rev users: > > THIS IS JUST A COMMENTARY. THIS IS NOT MEANT TO BE THE BEGINNING OF A > DISCUSSION! Too late, it just begun ;-) > I just have to say... I know that RunRev has granted the use of > Revolution in > the Starter Kit, but don't you feel that this is in some way... > stealing? > Although I'm sure quite ingenious, people are finding ways to stretch > the > limits of Revolution (in ten lines or less) to make applications... > without > any compensation going to the developers of Revolution. Why not just > pay the > license price? YOU WANT TO PAY THE LICENSE FEE! A company cannot grow > without making money... PERIOD. The more RunRev makes, the better > Revolution > will be. Perhaps someday RunRev will remove the option to use their > software > for free and we can all get back to "REAL" growth! > > Just one guys opinion. you are absolutely right. Does anybody know another application, that is this powerful, so much fun to use and has these little restrictions in a DEMO (= StarterKit) ? You can save, print (hmm ;-), make standalones !!! and create even complete multimedia CD-ROM application with the starter-kit (yes, i did !) Not to forget the unbelievable support and this wonderful and extremely helpful list :-) And still some people dare to complain... Oh, c'mon... Regards Klaus Major k_major at osnabrueck.netsurf.de From diskot123 at juno.com Fri May 10 09:01:01 2002 From: diskot123 at juno.com (diskot123 at juno.com) Date: Fri May 10 13:01:01 2002 Subject: record sound on a Mac Message-ID: <20020510.135700.272.3.diskot123@juno.com> >While I am using MC to do this, it does apply to Rev users as well. I >am recording in a small app I made. It works well except for on thing. >It does not create a reliable recording. "recordinput" is a new command >in 2.4.2 that allows you to set your audio input from within your >script. Thanks for taking a look at this. The actual recording stack >can be dowloaded from here: >http://www.canelasoftware.com/pub/record.sit Anyone can have it if >they like. I placed this in a button designed for recording: A few suggestions: 1) Leave the recordinput as is, dflt (default), and set the input source using the sound control panel if necessary. 2) Try using 'set the recording to false'..instead of 'stop recording'. Both should work..but stop recording is undocumented. 3) Check the result of the record command. ie. record sound file tPath if the result is not empty then answer result Tuviah Snyder ~ tuviah at runrev.com Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ From stephenREVOLUTION at barncard.com Fri May 10 09:16:01 2002 From: stephenREVOLUTION at barncard.com (Stephen Barncard) Date: Fri May 10 13:16:01 2002 Subject: Starter Kit -- too good?? Message-ID: I for one would not have purchased Revolution had I NOT been able to try it out to the extent that is limited in the demo. I still had to buy the full version to get the stack import feature enabled, cross platform, etc. Then the upgrade from Super/Hypercard special cinched the deal for me. The challenge of doing brief, lean code is a perfect introduction to this platform, allowing new users to get used to the structures and ideas, and then when they get serious, they can buy a paid version. Schools could use the RR demo as an aid for programming classes (I'm sure that was a calculated decision). And these classes could sprout a whole army of RR savvy programmers, who will in turn use and buy registered versions. With people developing solutions in RR at many levels, it can only help the development platform flourish which is good for everyone. Brilliant marketing/demo execution, IMHO. It worked for me. sqb >Hi RAaaaaaaaaaaaa (what an interesting name ;-) > >>To all Starter Kit Rev users: >> >>THIS IS JUST A COMMENTARY. THIS IS NOT MEANT TO BE THE BEGINNING OF A >>DISCUSSION! > >Too late, it just begun ;-) > >>I just have to say... I know that RunRev has granted the use of Revolution in >>the Starter Kit, but don't you feel that this is in some way... stealing? From dsc at swcp.com Fri May 10 09:35:01 2002 From: dsc at swcp.com (Dar Scott) Date: Fri May 10 13:35:01 2002 Subject: Starter Kit In-Reply-To: <153.db6f494.2a0d5d4d@aol.com> Message-ID: On Friday, May 10, 2002, at 11:28 AM, RAaaaaaaaaaaaa at aol.com wrote: > I just have to say... I know that RunRev has granted the use of > Revolution in > the Starter Kit, but don't you feel that this is in some way... > stealing? It is not. And I would hate for any Starter Kit users to think so. Runrev has made it clear what Starter Kit user rights are. I can't speak for Runrev, but from where I sit the use of the Starter Kit is very wise marketing. Remember, the business goal is to maximize total profit, not maximize revenue per distributed product. To many people, this Revolution model of programming is very strange. The Starter Kit allows people to try it without the pain of it timing out before they get back to it. Many Starter Kit users become buyers, some in 2 days, some in 2 weeks, some in two months and some in two years. But even those who seriously use the Starter Kit without buying spread the word and promote sales. The Starter Kit promotes a wider market. People can try Revolution in ways that most of us would not have thought of. Starter Kit users contribute to the Revolution community. Naive questions, explorations into relatively unexplored corners, bug reports, help and the like all contribute to Revolution. > Although I'm sure quite ingenious, people are finding ways to > stretch the > limits of Revolution (in ten lines or less) to make > applications... without > any compensation going to the developers of Revolution. Who cares? They pay the price, just in a different way. The important thing from a marketing viewpoint is that every Revolution experience is a happy one. Think back to Economics 101. Multiple pricing is a great way to exploit a market. That not only applies to the 3 layer pricing of Revolution but to other costs a user has. > Why not just pay the > license price? YOU WANT TO PAY THE LICENSE FEE! A company cannot grow > without making money... PERIOD. The more RunRev makes, the better > Revolution > will be. Perhaps someday RunRev will remove the option to use > their software > for free and we can all get back to "REAL" growth! "Making money" and "real" growth come from profits, not any vain whining about per-unit revenues. OK. You paid. (I paid.) Do you resent that? Don't you think you get your moneys worth? What do you care that somebody else didn't? > > Just one guys opinion. Of course. As is mine. Let's agree that folks on this list may have opinions and that they may be contrary to ours. Let's agree to avoid discouraging expression of that. My opinion: Starter Kit users, you are OK!! Runrev, you are crazy as a fox!! Dar Scott Who started out on a Starter Kit From kray at sonsothunder.com Fri May 10 09:48:02 2002 From: kray at sonsothunder.com (Ken Ray) Date: Fri May 10 13:48:02 2002 Subject: quickeys References: Message-ID: <004e01c1f852$6b837ab0$7c00a8c0@mckinley.dom> Jim, I believe QuicKeys also has its own OSA compliant script... if so, you might be able to "do