Saving information in Revolution

2006-05-28 Thread Stgoldberg

Saving information in Revolution is   simple.   While data cannot be saved to 
a standalone mainstack, it can be saved to a standalone's substack as 
follows:
1. In the standalone setting, under "Stacks" check off "Move substacks into 
individual stackfiles"
2.   Put "Save this stack" into the scripting on quitting.   The data in the 
substack will then be saved.
Steve Goldberg


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Saving information in Revolution

2006-05-27 Thread Judy Perry
Mark:

Kindest thanks for your reference!

Alvaro:

You may want to visit a scripting conferences stack by Ken Ray at
http://downloads.runrev.com/section/scriptingconferences.php

See also the "specialFolderPath" function via the Rev docs.

I have a PDF on this as well:
http://jperryl.ecs.fullerton.edu/FileIOHandout.pdf

As Mark says, Hypercard's ability to save itself (that is, be
self-modifying) is not supported in modern executables.  But you can save
settings to a text file on the stack's close and then read them back in
upon a stack (that is, a file's) opening to set custom settings as far as
I understand things.

Everyone else:

Should you still be reading, if you find anything gargantuanly stupid at
http://jperryl.ecs.fullerton.edu/FileIOHandout.pdf , please do let me
know!

@;-)

Judy

On Sun, 28 May 2006, Mark Schonewille wrote:

> Alvaro,
>
> Do you mean you created a standalone but can't save data in it? That
> would be normal, since modifications in standalones cannot be saved.
> Instead, you would write the data in a field to a file, for example
> using syntax like
>
> put fld "My Info" into url "file:~/Desktop/Test File.txt"
>
> Note that the file path will be different if you are on Windows. Next
> time you open the standalone, read the data using the following syntax.
>
> put url file:~/Desktop/Test File.txt" into fld "My Info".
>
> I hope this helps you to get going. Don't forget to read the built-in
> docs.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Saving information in Revolution.

2006-05-27 Thread Sarah Reichelt

On 5/28/06, Alvaro Abril - Tecnologia <[EMAIL PROTECTED]> wrote:

Hello.. where I can to put this commands.. I cant save information using
Standalone :)


You might find this article useful:


Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Saving information in Revolution.

2006-05-27 Thread Mark Schonewille

Alvaro,

Do you mean you created a standalone but can't save data in it? That  
would be normal, since modifications in standalones cannot be saved.  
Instead, you would write the data in a field to a file, for example  
using syntax like


put fld "My Info" into url "file:~/Desktop/Test File.txt"

Note that the file path will be different if you are on Windows. Next  
time you open the standalone, read the data using the following syntax.


put url file:~/Desktop/Test File.txt" into fld "My Info".

I hope this helps you to get going. Don't forget to read the built-in  
docs.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 28-mei-2006, om 2:03 heeft Alvaro Abril - Tecnologia het volgende  
geschreven:


Hello.. where I can to put this commands.. I cant save information  
using

Standalone :)

Alvaro

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Saving information in Revolution.

2006-05-27 Thread Mark Schonewille

Hi Alvaro,

You put the closeStackRequest into the script of the stack that is  
being closed. If this stack is a substack, you might also want to put  
it into the script of the mainstack, depending on what you try to  
achieve. Sometimes, you want to runi the script of a particular card  
is the current card, only. In those cases, you could put the script  
into the card script.


I could imagine that you want to find out more about the message  
hierarchy. If you have books about HyperCard, they will probably  
contain useful information about the message hierarchy. Just ignore  
the info about backgrounds, for now. You also probably want to have a  
look at Richard Gaskin's scripting conference stack about the message  
hierarchy at . On the same page, you will find a stack by  
Judy Perry, about Groups and Backgrounds, which is also very useful.  
Of course, other stacks on that page could also be very useful for you.


Best

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 28-mei-2006, om 1:13 heeft Alvaro Abril - Tecnologia het volgende  
geschreven:



Dear Mark.. And where I need to place the handler in the standalone?

on closeStackRequest
   save this stack
   pass closeStackRequest
end closeStackRequest


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Saving information in Revolution.

2006-05-27 Thread Alvaro Abril - Tecnologia
Hello.. where I can to put this commands.. I cant save information using
Standalone :)

Alvaro

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Mark
Schonewille
Enviado el: Sábado, 27 de Mayo de 2006 04:06 p.m.
Para: How to use Revolution
Asunto: Re: Saving information in Revolution.

Hi Alvaro,

on closeCard
   save this stack
end closeCard

or

on closeStackRequest
   save this stack
   pass closeStackRequest
end closeStackRequest

There is also a closeStack handler, but you might want to use the  
closeStackRequest handler because you could decide whether you really  
want to close the stack, in the closeStackRequest handler, which will  
be useful when your project grows more advanced.

Are you sure you want to save the information in the stack? If you  
are going to make standalones, you probably want to save the data in  
a text file or in a stack that is not part of the standalone.

Best regards,

Mark

P.S. It is not necessary to quote messages that have nothing to do  
with the subject.

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html



Op 28-mei-2006, om 0:53 heeft Alvaro Abril - Tecnologia het volgende  
geschreven:

> Dear Sirs:..
>
> How i use :
>
> On closecard
>
> End closecard
>
> To save information? I cant save information, because in Hypercard,  
> save is
> automatic...
>
> How I can?
>
> Best regards, Alvaro



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Saving information in Revolution.

2006-05-27 Thread Alvaro Abril - Tecnologia
Dear Mark.. And where I need to place the handler in the standalone?

on closeStackRequest
   save this stack
   pass closeStackRequest
end closeStackRequest


Thank you, Alvaro Abril

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Mark
Schonewille
Enviado el: Sábado, 27 de Mayo de 2006 04:06 p.m.
Para: How to use Revolution
Asunto: Re: Saving information in Revolution.

Hi Alvaro,

on closeCard
   save this stack
end closeCard

or

on closeStackRequest
   save this stack
   pass closeStackRequest
end closeStackRequest

There is also a closeStack handler, but you might want to use the  
closeStackRequest handler because you could decide whether you really  
want to close the stack, in the closeStackRequest handler, which will  
be useful when your project grows more advanced.

Are you sure you want to save the information in the stack? If you  
are going to make standalones, you probably want to save the data in  
a text file or in a stack that is not part of the standalone.

Best regards,

Mark

P.S. It is not necessary to quote messages that have nothing to do  
with the subject.

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html



Op 28-mei-2006, om 0:53 heeft Alvaro Abril - Tecnologia het volgende  
geschreven:

> Dear Sirs:..
>
> How i use :
>
> On closecard
>
> End closecard
>
> To save information? I cant save information, because in Hypercard,  
> save is
> automatic...
>
> How I can?
>
> Best regards, Alvaro



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Saving information in Revolution.

2006-05-27 Thread Mark Schonewille

Hi Alvaro,

on closeCard
  save this stack
end closeCard

or

on closeStackRequest
  save this stack
  pass closeStackRequest
end closeStackRequest

There is also a closeStack handler, but you might want to use the  
closeStackRequest handler because you could decide whether you really  
want to close the stack, in the closeStackRequest handler, which will  
be useful when your project grows more advanced.


Are you sure you want to save the information in the stack? If you  
are going to make standalones, you probably want to save the data in  
a text file or in a stack that is not part of the standalone.


Best regards,

Mark

P.S. It is not necessary to quote messages that have nothing to do  
with the subject.


--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 28-mei-2006, om 0:53 heeft Alvaro Abril - Tecnologia het volgende  
geschreven:



Dear Sirs:..

How i use :

On closecard

End closecard

To save information? I cant save information, because in Hypercard,  
save is

automatic...

How I can?

Best regards, Alvaro




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Saving information in Revolution.

2006-05-27 Thread Alvaro Abril - Tecnologia
Dear Sirs:..

How i use :

On closecard

End closecard

To save information? I cant save information, because in Hypercard, save is
automatic...

How I can?

Best regards, Alvaro

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Jim Lyons
Enviado el: Sábado, 27 de Mayo de 2006 12:01 p.m.
Para: How to use Revolution
Asunto: Re: Harsh lessons in binaryDecode

I previously wrote and alex replied:
>
>> Alex,
>> Sorry about the crash ;^)  but shouldn't that be "a4x1a4x1a12" ? 
>> (Note the ones after the x's)
>
> Nope. The docs say
>
>> Parameters:
>> The formatsList consists of one or more dataTypes, each followed 
>> optionally by an amount. A dataType is one of the following single 
>> letters:
>>
> Note - "...followed *optionally* by an amount..."
>
> But thanks for the sympathy :-)

Whoops, I picked up on the "optionally" right after I hit Send. I'm 
really much better at lurking than helping. :^/

I did verify that in Rev 2.6 and Rev 2.7.1 (Mac OS 10.3.9) that you get 
a big time crash if the number of variables is less than the number of 
format specs.

Jim Lyons

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution