Re: Save stack as...
Happy Birthday, Shari! Have a great one... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: "Shari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 12, 2002 12:38 PM Subject: Re: Save stack as... > >Try: > > > >-- assumes 'streetStack' is the full filename to the stack > >lock messages > >open inv stack streetStack > >put the gVersion of stack streetStack into origStack > >close stack streetStack -- make sure destroyStack/destroywindow are true > >delete file streetStack > >save stack newGold as streetStack > > > >Ken Ray > >Sons of Thunder Software > >Email: [EMAIL PROTECTED] > >Web Site: http://www.sonsothunder.com/ > > > Didn't quite do it but it gave me ideas to try. My next programming > day is Wednesday, so I'll be quiet for a few days :-) > > I did solve a biggie today :-) One of my beta testers for Phase I > reported that "nothing worked". Talk about a bummer. And on my > birthday of all days. > > He was testing on OSX and my first thought was, oh man, you mean it > doesn't work on OSX?? > > But he tried the Classic version and got the same result (bigger > bummer, you mean it only works on MY computer) > > But it turned out to be a very small bug. An option he chose that > put 0 into a variable that should have been a very large number. > > He figured it out on his own, to uncheck that option, and now he's > happily testing away :-) > > Interesting that my best luck with beta testers always come from my > Macintosh Users Group. So far I've gotten not one word of feedback > from the beta testers who surfed into my website and applied. > > I'm sitting on the Windows version until I know all is well with the > Mac version. Decided it's better to get one of them out the door, > and THEN take time for the other one. > > Current project (streetStack etc.) is a plug in for Phase I. An > addition. Rather than trusting people to install the newer stacks > (they may have a combination, where this stack is newer but that one > is older), I'm creating an installer button that deletes the oldest > stacks and replaces with the newest ones. > > Well I'm off to celebrate my birthday :-) > > Shari C > > > > -- > --Shareware Games for the Mac-- > http://www.gypsyware.com > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
Not quite there, but figured something out (birthday postponed an hour or so more... the fella is still at work and they won't let go of him). As both stacks have the same name, they are the same stack with a few minor changes, so they are versioned differently... I tried setting the name of one of the stacks to something else, before retrieving the script, and that seems to have prevented the purge dialog. The purge dialog was causing the second stack to open, visibly, regardless of lock screen, invisible, etc. So I think we're on our way to a solution... -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
Try: -- assumes 'streetStack' is the full filename to the stack lock messages open inv stack streetStack put the gVersion of stack streetStack into origStack close stack streetStack -- make sure destroyStack/destroywindow are true delete file streetStack save stack newGold as streetStack Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ Didn't quite do it but it gave me ideas to try. My next programming day is Wednesday, so I'll be quiet for a few days :-) I did solve a biggie today :-) One of my beta testers for Phase I reported that "nothing worked". Talk about a bummer. And on my birthday of all days. He was testing on OSX and my first thought was, oh man, you mean it doesn't work on OSX?? But he tried the Classic version and got the same result (bigger bummer, you mean it only works on MY computer) But it turned out to be a very small bug. An option he chose that put 0 into a variable that should have been a very large number. He figured it out on his own, to uncheck that option, and now he's happily testing away :-) Interesting that my best luck with beta testers always come from my Macintosh Users Group. So far I've gotten not one word of feedback from the beta testers who surfed into my website and applied. I'm sitting on the Windows version until I know all is well with the Mac version. Decided it's better to get one of them out the door, and THEN take time for the other one. Current project (streetStack etc.) is a plug in for Phase I. An addition. Rather than trusting people to install the newer stacks (they may have a combination, where this stack is newer but that one is older), I'm creating an installer button that deletes the oldest stacks and replaces with the newest ones. Well I'm off to celebrate my birthday :-) Shari C -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
Shari, Try: -- assumes 'streetStack' is the full filename to the stack lock messages open inv stack streetStack put the gVersion of stack streetStack into origStack close stack streetStack -- make sure destroyStack/destroywindow are true delete file streetStack save stack newGold as streetStack Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: "Shari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 12, 2002 9:33 AM Subject: Re: Save stack as... > Tried turning the lock messages off, as a test. Now it retrieves the > correct info. But we're back to the purge dialog, and opening the > stack. > > This is really peeving me! It should be so blasted simple. > > > > > # see which stack is newer version, replace if necessary, delete oldest version >lock screen ># lock messages ># put word 3 of line 1 of the script of stack streetStack into origStack >put the gVersion of stack streetStack into origStack >close stack streetStack >wait for messages ># put word 3 of line 1 of the script of stack newGold into installStack >put the gVersion of stack newGold into installStack >close stack newGold >wait for messages >set the lockMessages to false >unlock screen > >wait for messages >answer installStack && origStack >exit to top > -- > --Shareware Games for the Mac-- > http://www.gypsyware.com > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
Shari, You're right... you can't get the script of a stack or even check the custom properties of a closed stack without opening it. Best approach is to lock messages, open the stack invisibly, get the script, close it (making sure its destroystack and destroywindow are true), and then run the rest of your script. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: "Shari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 12, 2002 9:03 AM Subject: Re: Save stack as... > >What happens if you: > > set the destroyStack of stack origStack to true > > close stack origStack > > wait for messages -- to assure that the mem-resident copy was destroyed > > delete file origStack > > save stack newerStack as origStack > > delete file newerStack > > > >?? > > > >Phil > > I think I found the difficulty, or at least part of it. The full > objective is to replace older versions of a stack, with newer > versions. I put version numbers on the scripts. > > # see which stack is newer version, replace if necessary, delete oldest version > > exit to top # testing where the error occurs > >put word 3 of line 1 of the script of stack streetStack into > origStack # version number >put word 3 of line 1 of the script of stack newGold into > installStack # version number > > THE ERROR INITIALLY OCCURS HERE > I get a purge memory, and it opens the stacks. Apparently it cannot > retrieve the script of a stack, without opening the stack? > >exit to top # testing where the error occurs > >if installStack > origStack then > # replace file goldstreet > > delete file streetStack > save stack newGold as streetStack > delete file newGold > > # set the destroyStack of stack streetStack to true > # close stack streetStack > # wait for messages # to assure that the mem-resident copy was destroyed > # delete file streetStack > # save stack newGold as streetStack > # delete file newGold > >else > # delete new goldstreet > delete file newGold >end if > -- > --Shareware Games for the Mac-- > http://www.gypsyware.com > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
Tried turning the lock messages off, as a test. Now it retrieves the correct info. But we're back to the purge dialog, and opening the stack. This is really peeving me! It should be so blasted simple. # see which stack is newer version, replace if necessary, delete oldest version lock screen # lock messages # put word 3 of line 1 of the script of stack streetStack into origStack put the gVersion of stack streetStack into origStack close stack streetStack wait for messages # put word 3 of line 1 of the script of stack newGold into installStack put the gVersion of stack newGold into installStack close stack newGold wait for messages set the lockMessages to false unlock screen wait for messages answer installStack && origStack exit to top -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
*sigh* One problem leads to another Now it works without dialogs or opening windows, but it appears to be using the script from streetStack in both cases. It doesn't seem to be purging the info, because the stacks have different version numbers, but when I test it with "answer", the version numbers are the same, from the first stack. I tried using a custom property instead of a script for storing version numbers. No difference. # see which stack is newer version, replace if necessary, delete oldest version lock screen lock messages # put word 3 of line 1 of the script of stack streetStack into origStack put the gVersion of stack streetStack into origStack close stack streetStack wait for messages # put word 3 of line 1 of the script of stack newGold into installStack put the gVersion of stack newGold into installStack close stack newGold wait for messages set the lockMessages to false unlock screen wait for messages answer installStack && origStack exit to top -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
>What happens if you: > set the destroyStack of stack origStack to true > close stack origStack > wait for messages -- to assure that the mem-resident copy was destroyed > delete file origStack > save stack newerStack as origStack > delete file newerStack > >?? > >Phil I think I found the difficulty, or at least part of it. The full objective is to replace older versions of a stack, with newer versions. I put version numbers on the scripts. # see which stack is newer version, replace if necessary, delete oldest version exit to top # testing where the error occurs put word 3 of line 1 of the script of stack streetStack into origStack # version number put word 3 of line 1 of the script of stack newGold into installStack # version number THE ERROR INITIALLY OCCURS HERE I get a purge memory, and it opens the stacks. Apparently it cannot retrieve the script of a stack, without opening the stack? exit to top # testing where the error occurs if installStack > origStack then # replace file goldstreet delete file streetStack save stack newGold as streetStack delete file newGold # set the destroyStack of stack streetStack to true # close stack streetStack # wait for messages # to assure that the mem-resident copy was destroyed # delete file streetStack # save stack newGold as streetStack # delete file newGold else # delete new goldstreet delete file newGold end if -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
Shari, You need to make sure the destroyStack and destroyWindow of the stack is set to true. This way it should purge itself as soon as it's closed. Ken Ray They are. Both boxes in the stack object dialog are checked. -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
What happens if you: set the destroyStack of stack origStack to true close stack origStack wait for messages -- to assure that the mem-resident copy was destroyed delete file origStack save stack newerStack as origStack delete file newerStack ?? Phil - Original Message - From: "Shari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 11, 2002 4:57 PM Subject: Save stack as... > The goal: > > To replace a stack that exists, with a newer version of the same stack. > > The full filepaths to the stacks are in the variables, and the stacks > are in different directories. > > delete file origStack > save stack newerStack as origStack > delete file newerStack > > This prompts the "a stack exists, do you want to purge or save" > dialog. Even though the stacks were all originally closed. How do I > bypass the dialog? I don't want to open the stacks. I simply want > to replace file origStack with file newerStack, deleting the unneeded > copies. And do this behind the scenes. > > Anybody? > > > -- > --Shareware Games for the Mac-- > http://www.gypsyware.com > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
On 10/11/02 6:57 PM, Shari wrote: The goal: To replace a stack that exists, with a newer version of the same stack. The full filepaths to the stacks are in the variables, and the stacks are in different directories. delete file origStack save stack newerStack as origStack delete file newerStack This prompts the "a stack exists, do you want to purge or save" dialog. Even though the stacks were all originally closed. How do I bypass the dialog? Set the destroystack property of the stacks to true before closing them. This purges them from memory when they close. If you never need to have them in RAM after they close, then save the stacks beforehand with the property set to true and it will be permanent. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Save stack as...
Shari, You need to make sure the destroyStack and destroyWindow of the stack is set to true. This way it should purge itself as soon as it's closed. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: "Shari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 11, 2002 6:57 PM Subject: Save stack as... > The goal: > > To replace a stack that exists, with a newer version of the same stack. > > The full filepaths to the stacks are in the variables, and the stacks > are in different directories. > > delete file origStack > save stack newerStack as origStack > delete file newerStack > > This prompts the "a stack exists, do you want to purge or save" > dialog. Even though the stacks were all originally closed. How do I > bypass the dialog? I don't want to open the stacks. I simply want > to replace file origStack with file newerStack, deleting the unneeded > copies. And do this behind the scenes. > > Anybody? > > > -- > --Shareware Games for the Mac-- > http://www.gypsyware.com > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard