RE: docs

2008-01-17 Thread Randall Lee Reetz
I agree. And this wiki-revdocs would realy add value to the product, but what i was really talking to was the guts, the latin, of the interprter, how and why and when the great Oz pulls his levers. Reading the great books on hypercard and you began to undeestand the mind of god. maybe this

Re: importing a bunch of files

2008-01-17 Thread Thierry
set the uTest[some\thing] of this stack to test cautioning against naming custom properties anything that wouldn't be legal for variables, on the grounds that it may work now but might not work forever. Where can we see more about: be legal for variables ? Regards, Thierry

Re: importing a bunch of files

2008-01-17 Thread Thierry
Hi Randall, If you follow shuch a scheme, ... All of this points to why it makes sense at times to interface your stack to a professional data base and let it do all of this structural efficiency heavylifting (that is what it is there for). I like to build my own cause i like to

Time Conversion Problem

2008-01-17 Thread Dave
Hi All, I am reading a file that contains date and time data. The Date/Time is represented as a 4 byte integer and is defined as the number of seconds since 1/1/1904 (Apple Date/Time format). Does anyone know if there is a way to convert this to a displayable format, e.g. Thursday, January

Re: An interesting project?

2008-01-17 Thread Andres Martinez
Hello Tim As far as I know RR cannot play two simultaneous sounds. This is the most important limitation about RR for us as game developers. Regards, Andres Martinez www.baKno.com On Jan 16, 2008, at 5:19 PM, Timothy Miller wrote: Hi, Can I post a youtube link here? Well, here goes.

Re: Weird RunRev IDE Problem

2008-01-17 Thread Dave
On 17 Jan 2008, at 14:44, Richard Gaskin wrote: Dave wrote: I always set the Variable checking by default preference on so that Local's have to be defined. This has been working fine for at least 6 months (when I installed this version on RunRev). Now today, I get an error on the

Re: Weird RunRev IDE Problem

2008-01-17 Thread Richard Gaskin
Dave wrote: I always set the Variable checking by default preference on so that Local's have to be defined. This has been working fine for at least 6 months (when I installed this version on RunRev). Now today, I get an error on the following code: function TestFunc local myValue put it

Re: Weird RunRev IDE Problem

2008-01-17 Thread Eric Chatonet
Hi Dave, All this sounds normal to me :-) 'it' is not defined here. To define 'it', you must put a value into or request a command, like get, read from file, convert, ask or answer that feed 'it' automatically. Le 17 janv. 08 à 15:39, Dave a écrit : Hi All, I always set the Variable

Weird RunRev IDE Problem

2008-01-17 Thread Dave
Hi All, I always set the Variable checking by default preference on so that Local's have to be defined. This has been working fine for at least 6 months (when I installed this version on RunRev). Now today, I get an error on the following code: function TestFunc local myValue put it

Re: Time Conversion Problem

2008-01-17 Thread Ian Wood
From the docs: 'The seconds function returns the total number of seconds since midnight, January 1, 1970 GMT.' In theory, you can work out the number of seconds from 1904 to 1970. Then take this away from the Apple seconds to to get 'Rev seconds'. Once it's in that format you can use the

Re: Weird RunRev IDE Problem

2008-01-17 Thread Dave
On 17 Jan 2008, at 15:04, Eric Chatonet wrote: From Convert docs: If the dateAndTime is a container, the converted date and time is placed in the container, replacing the previous contents. If the dateAndTime is a string, the converted date and time is placed in the it variable. So in

Re: Weird RunRev IDE Problem

2008-01-17 Thread Eric Chatonet
From Convert docs: If the dateAndTime is a container, the converted date and time is placed in the container, replacing the previous contents. If the dateAndTime is a string, the converted date and time is placed in the it variable. So in your case, returned value is not in 'it' but in

Re: Weird RunRev IDE Problem

2008-01-17 Thread Dave
Hi, I've changed it now. I agree it is awful, but overwriting input parameters is almost as bad. The problem here is that convert is a command rather than a function, it would be *much* better to make it a function and return the result. All the Best Dave On 17 Jan 2008, at 15:41, Eric

Re: cancel a wait

2008-01-17 Thread Devin Asay
Chris, The waitDepth property might also help you. It will return the number of currently running handlers paused at a 'wait with messages' statement. On Jan 16, 2008, at 9:32 PM, Kay C Lan wrote: On Jan 17, 2008 1:27 AM, Chris Sheffield [EMAIL PROTECTED] wrote: Is there any way to

Re: Weird RunRev IDE Problem

2008-01-17 Thread Eric Chatonet
It works but why would you prefer the most complicated when the simpler is available? BTW I avoid to use 'it' every time it appears possible and prefer to declare a variable of my own: 'it' can be changed by some commands along a handler and this is able to put a mess :-) Le 17 janv. 08 à

Re: docs

2008-01-17 Thread Devin Asay
On Jan 16, 2008, at 11:56 PM, Peter Alcibiades wrote: supercard docs leave the user reverse enginering for dollars Yes. Yes, so true. The problem is not with the existing docs, which are just fine for what they do. The problem, for people learning it, is that they are like a cookbook

Re: importing a bunch of files

2008-01-17 Thread Devin Asay
On Jan 17, 2008, at 5:56 AM, Thierry wrote: set the uTest[some\thing] of this stack to test cautioning against naming custom properties anything that wouldn't be legal for variables, on the grounds that it may work now but might not work forever. Where can we see more about:

Re: Weird RunRev IDE Problem

2008-01-17 Thread Eric Chatonet
Hi, Revolution is an XTalk: Probably 'convert value to short date and long time' is more English like than 'put convert(value,short date,long time) into something' :-) I assume this has been carefully thought out since decades... Le 17 janv. 08 à 16:50, Dave a écrit : The problem here is

Re: importing a bunch of files

2008-01-17 Thread Devin Asay
On Jan 17, 2008, at 9:29 AM, Devin Asay wrote: On Jan 17, 2008, at 5:56 AM, Thierry wrote: Where can we see more about: be legal for variables ? From our tutorials at http://revolution.byu.edu/transcript/ Transcript1.php A Revolution variable name: May be any single string (no

Re: docs

2008-01-17 Thread Eric Chatonet
Hi Devin, Le 17 janv. 08 à 17:17, Devin Asay a écrit : These recipes are also searchable using the Search feature of the Documentation (Thanks, Eric!) Search also lets you search the mail list archives and several key web sites maintained by Rev developers. The Search feature is

Re: An interesting project?

2008-01-17 Thread Scott Rossi
Recently, Andres Martinez wrote: As far as I know RR cannot play two simultaneous sounds. Using player objects, you can play several sounds simultaneously (one sound assigned to each player). You can also play an imported sound and a player simultaneously. Regards, Scott Rossi Creative

Re: An interesting project?

2008-01-17 Thread Andres Martinez
Thank you Scott It will help our developments tremendously! I am going to start playing with it right now. Regards, Andres Martinez www.baKno.com On Jan 17, 2008, at 12:28 PM, Scott Rossi wrote: Recently, Andres Martinez wrote: As far as I know RR cannot play two simultaneous sounds.

Re: using PerlTk from runrev - does this work on mac?

2008-01-17 Thread Joshua Lawrence
Hi Franz, It looks like OS X has some Perl libraries, but not PerlTK. I get this in the lower field when I hit the button: Can't locate Tk.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level

OT: MacWorld keynote

2008-01-17 Thread Mark Wieder
Missed the MacWorld keynote? Here it is condensed down to sixty seconds: http://www.youtube.com/watch?v=Yz1-cPx0cIk -- Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

RE: importing a bunch of files

2008-01-17 Thread Randall Lee Reetz
Have you written a file tree spider? -Original Message- From: Thierry [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com Sent: 1/17/2008 4:54 AM Subject: Re: importing a bunch of files Hi Randall, If you follow shuch a scheme, ... All of this points to

Re: Weird RunRev IDE Problem

2008-01-17 Thread Mark Wieder
Dave- I've changed it now. I agree it is awful, but overwriting input parameters is almost as bad. The problem here is that convert is a command rather than a function, it would be *much* better to make it a function and return the result. Agreed, but you'd have to change the syntax. You've used

rawKeyDown not working in SAs?

2008-01-17 Thread Chris Condit
I've got a scrolling group (named OverlayAndImageGroup ) that is composed of an image of a map, and numerous text fields and other smaller groups. I have been trying to add the capability to use the mouse's scrolling wheel to scroll the group OverlayAndImageGroup up and down. When I add to

Re: Delete lines in files (text files)

2008-01-17 Thread Devin Asay
On Jan 17, 2008, at 12:05 PM, Till Bandi wrote: Hi all is there a way to delete lines in a text file from Revoution? - i did not see how this can be done but probably it is very simple. Till, You have to read it in then write it back out. You can do it in one line like this (assume you

using PerlTk from runrev - does this work on mac?

2008-01-17 Thread [EMAIL PROTECTED]
Hello, I have done a little stack which runs a perl script embedded as a custom property. This works for me on my win pcs and servers with perl installed and on the linux. Does this work on a modern mac (= do you have PerlTk normally on your macs?). If it would work on mac too it would allow

Re: An interesting project?

2008-01-17 Thread Devin Asay
On Jan 17, 2008, at 7:25 AM, Andres Martinez wrote: Hello Tim As far as I know RR cannot play two simultaneous sounds. This is the most important limitation about RR for us as game developers. While it is true that you can only play one audio clip at a time using the play command, you

Delete lines in files (text files)

2008-01-17 Thread Till Bandi
Hi all is there a way to delete lines in a text file from Revoution? - i did not see how this can be done but probably it is very simple. Thanks Till ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

Re: Delete lines in files (text files)

2008-01-17 Thread Devin Asay
On Jan 17, 2008, at 12:37 PM, Randall Lee Reetz wrote: Wow, i gave the supercard syntax, lots more verbose, (better question: how do you delete a line of script?). How about (not tested): get the script of btn myBtn delete line 4 of it set the script of btn myBtn to it I think you might

Re: importing a bunch of files

2008-01-17 Thread Stephen Barncard
Where can we see more about: be legal for variables ? Regards, Thierry The 'rules' for this might not be documented. I've had problems with custom properties that are named like this: 1 a number or begin with a number can be a problem 2 spaces in the name doesn't always work 3 use

Directory Walkers and barking spiders

2008-01-17 Thread Stephen Barncard
Have you written a file tree spider? -Original Message- I think around these parts we call them 'Directory Walkers' and several here have contributed versions, some elaborate examples complete with scrolling fields and icons. I'm sure someone will chime in here once we get the

RE: Delete lines in files (text files)

2008-01-17 Thread Randall Lee Reetz
You open the file You read the contents odd the file You put it into a var or field or customprop You close the file You delete the lines in your container You open the file again You write that container to the file You close the file -Original Message- From: Till Bandi [EMAIL PROTECTED]

Re: Delete lines in files (text files)

2008-01-17 Thread Richard Gaskin
Devin Asay wrote: On Jan 17, 2008, at 12:37 PM, Randall Lee Reetz wrote: Wow, i gave the supercard syntax, lots more verbose, (better question: how do you delete a line of script?). How about (not tested): get the script of btn myBtn delete line 4 of it set the script of btn myBtn to it I

RE: Delete lines in files (text files)

2008-01-17 Thread Randall Lee Reetz
Wow, i gave the supercard syntax, lots more verbose, (better question: how do you delete a line of script?). randall -Original Message- From: Devin Asay [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com Sent: 1/17/2008 11:25 AM Subject: Re: Delete lines in

Re: Delete lines in files (text files)

2008-01-17 Thread Mark Wieder
Randall- The ten-line limit is only for standalone apps. If you're running in the IDE there's no limit. Does that help? -- Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to

RE: Delete lines in files (text files)

2008-01-17 Thread Randall Lee Reetz
Actually richard, this thread ran away on me... But i didn't know about this ten line limit? That seems strange. Why is that limit there? And, yes i want to know how to fake it. randall -Original Message- From: Richard Gaskin [EMAIL PROTECTED] To: How to use Revolution

RE: Directory Walkers and barking spiders

2008-01-17 Thread Randall Lee Reetz
You know what i hate, i will be proud that i made a walker in ten lines of script and someone will upload a one that is only a single char! I met a guy at apple once the called n-1 (though he did die of a brain tumor). My code is more in line with a more geriactric meaning of walker. r

RE: Delete lines in files (text files)

2008-01-17 Thread Randall Lee Reetz
Was joking. -Original Message- From: Devin Asay [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com Sent: 1/17/2008 11:44 AM Subject: Re: Delete lines in files (text files) On Jan 17, 2008, at 12:37 PM, Randall Lee Reetz wrote: Wow, i gave the supercard syntax,

Re: Delete lines in files (text files)

2008-01-17 Thread Eric Chatonet
Hi Randall, Le 17 janv. 08 à 21:00, Randall Lee Reetz a écrit : But i didn't know about this ten line limit? That seems strange. Why is that limit there? And, yes i want to know how to fake it. This limit is just to prevent malicious guys to fake Rev itself :-) Best regards from Paris,

Issues with start using stack

2008-01-17 Thread Sharon Stamps
Hello all, I am hoping someone can help me with this... I have a library stack that I call using the start using stack command. The script was originally contained in stack1's stack script. Now I have several other stacks that need to do the same basic things, so I created stack2 as a

Re: Delete lines in files (text files)

2008-01-17 Thread Eric Chatonet
Hi Randall, If you were allowed to set any script to any value (i.e. thousands of lines of code), you could build a standalone, the stacks of which would be able to clone all Rev features. This limitation has been introduced to prevent this. Just a security measure :-) Le 17 janv. 08 à

Another Revolution?

2008-01-17 Thread Scott Rossi
So, while visiting Macworld San Francisco this week, I chanced upon a small booth that had the word HyperCard in the description. I was prepared to dismiss whatever goofball developments the guys there were showing, but after talking to them for a while, I think they have an interesting take on

RE: Delete lines in files (text files)

2008-01-17 Thread Randall Lee Reetz
But isnt 10 a bit draconian? -Original Message- From: Eric Chatonet [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com Sent: 1/17/2008 2:27 PM Subject: Re: Delete lines in files (text files) Hi Randall, If you were allowed to set any script to any value (i.e.

Re: Issues with start using stack

2008-01-17 Thread Eric Chatonet
Hi Sharon, When a library acts on objects/controls in another stack, it's usual to refer to these objects using their long name/ID to be sure to address the right object: just try it :-) This means that a param passes the long name of an object and your lib acts as follows: 'set the width

Re: Delete lines in files (text files)

2008-01-17 Thread Mark Wieder
Randall- But isnt 10 a bit draconian? Yep - it's draconian and it's arbitrary. And every time I get riled up about it I calm down and figure out a way to do what I want without having to break the limits. Sometimes by realizing that my app really can be better placed as a plugin stack, in

Re: Delete lines in files (text files)

2008-01-17 Thread Eric Chatonet
Well... All limits are arbitrary and this does not apply to Rev only :-) See scriptLimits function in the dictionary: * the number of statements permitted when changing a script (normally 10 in a standalone application) * the number of statements permitted in a do command (normally 10 in a

RE: Delete lines in files (text files)

2008-01-17 Thread Randall Lee Reetz
I dont get it... Please explain. -Original Message- From: Eric Chatonet [EMAIL PROTECTED] To: How to use Revolution use-revolution@lists.runrev.com Sent: 1/17/2008 12:35 PM Subject: Re: Delete lines in files (text files) Hi Randall, Le 17 janv. 08 à 21:00, Randall Lee Reetz a écrit :

Re: Time Conversion Problem

2008-01-17 Thread Sarah Reichelt
I am reading a file that contains date and time data. The Date/Time is represented as a 4 byte integer and is defined as the number of seconds since 1/1/1904 (Apple Date/Time format). Does anyone know if there is a way to convert this to a displayable format, e.g. Thursday, January 17, 2008

Re: Another Revolution?

2008-01-17 Thread Neal Campbell K3NC
I saw their small ad in MacWorld and was very interested. Will be great to see how they fare in the marketplace! Neal Campbell www.abrohamnealsoftware.com AIM:nealk3nc On Jan 17, 2008, at 5:48 PM, Scott Rossi wrote: So, while visiting Macworld San Francisco this week, I chanced upon

Re: Another Revolution?

2008-01-17 Thread Andre Garzia
ho ho ho there's a trend forming... I can see a nice future... with or without tilestack... :-D Cheers andre ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: using PerlTk from runrev - does this work on mac?

2008-01-17 Thread Sarah Reichelt
I get the same as Josh using OS X 10.5.1 (except that it is using Perl 5.8.8). Sarah On Jan 18, 2008 3:22 AM, Joshua Lawrence [EMAIL PROTECTED] wrote: Hi Franz, It looks like OS X has some Perl libraries, but not PerlTK. I get this in the lower field when I hit the button: Can't locate

Re: Another Revolution?

2008-01-17 Thread Len Morgan
Their site generates only errors for me. Too bad. Latest Firefox if it makes a difference. len morgan Scott Rossi wrote: ... but they have a simple puzzle demo on their site and they are collecting email addresses of interested parties for early access. http://tilestack.com/ FWIW.

drag question

2008-01-17 Thread Mark Swindell
I have an image that resides below a group and is not part of the group. The group consists of a collection of fields which have no scripts and are not focusable. In the group script I placed the handler: on mouseDown grab image artwork end mouseDown This works if don't select directly

Re: Another Revolution?

2008-01-17 Thread Mark Swindell
I was able to play the tile game on Safari. Slow, but it worked. Mark On Jan 17, 2008, at 6:45 PM, Len Morgan wrote: Their site generates only errors for me. Too bad. Latest Firefox if it makes a difference. len morgan Scott Rossi wrote: ... but they have a simple puzzle demo on their

Re: Another Revolution?

2008-01-17 Thread Len Morgan
Just out of curiosity, I pulled IE out of the closet and the site worked fine with it so I guess it's a problem with tilestack and Firefox. len Mark Swindell wrote: I was able to play the tile game on Safari. Slow, but it worked. Mark On Jan 17, 2008, at 6:45 PM, Len Morgan wrote: Their

Re: Another Revolution?

2008-01-17 Thread Mark Swindell
Cleverly concealed on the bottom right side of the screen below a signup invitation: Looking for the Tile Out stack? On Jan 17, 2008, at 7:07 PM, Joe Lewis Wilkins wrote: I didn't even see a Tile Game! Just a place to sign up and another if I had been invited. Joe Wilkins On Jan 17,

Re: Another Revolution?

2008-01-17 Thread Joe Lewis Wilkins
I didn't even see a Tile Game! Just a place to sign up and another if I had been invited. Joe Wilkins On Jan 17, 2008, at 6:57 PM, Mark Swindell wrote: I was able to play the tile game on Safari. Slow, but it worked. Mark On Jan 17, 2008, at 6:45 PM, Len Morgan wrote: Their site

Re: Another Revolution?

2008-01-17 Thread Joe Lewis Wilkins
Neal, Out of curiosity, why do you use Firefox instead of Safari? I know a lot of people do, but Safari has always worked great for me. TIA, Joe Wilkins On Jan 17, 2008, at 7:42 PM, Neal Campbell wrote: It worked fine with Firefox on my leopard system. Neal On Jan 17, 2008 10:10 PM,

Re: Another Revolution?

2008-01-17 Thread Neal Campbell
It worked fine with Firefox on my leopard system. Neal On Jan 17, 2008 10:10 PM, Mark Swindell [EMAIL PROTECTED] wrote: Cleverly concealed on the bottom right side of the screen below a signup invitation: Looking for the Tile Out stack? On Jan 17, 2008, at 7:07 PM, Joe Lewis Wilkins

Re: Delete lines in files (text files)

2008-01-17 Thread Till Bandi
I guess that would be a good solution - my only problem is that the file has 5.6 Gigabytes. So I can't put it all in memory. My real problem is here: put 1 into vStartwert set the cursor to watch open file tFileIn open file tFileOut repeat forever read from file

Re: Delete lines in files (text files)

2008-01-17 Thread Joe Lewis Wilkins
Till, Sounds to me as if you need to make some better arrangements; file- size-wise that is. You are in control of the situation; are you not? Joe Wilkins On Jan 17, 2008, at 10:22 PM, Till Bandi wrote: I guess that would be a good solution - my only problem is that the file has 5.6