syntax check

Frank Engel fde101 at fjrhome.net
Tue Nov 9 17:04:40 EST 2004


On Nov 9, 2004, at 16:03, Hershel Fisch wrote:

>
> On Tuesday, November 9, 2004, at 03:29 PM, Frank Engel wrote:
>
>> Three issues (at least):
>>
>> 1. You specify the name of the folder, not the desired name of the 
>> stack file, when issuing the "save stack" command
> Didn't get this one.

You ask the user to select a folder, then hand the name of the folder 
to "save stack" as if you want to give your stack file the name of the 
folder.

>> 2. This will not work outside of the IDE (you cannot modify scripts 
>> in standalones)
> When saving a stack outside of a stand alone it should work
> I tried by creating a new stack from the IDE naming it and then 
> writing into the mb save  stack "ttt1" as "/Users/hershel/Desktop" and 
> the error was "can't open stack file"

Hmm..  yeah, my bad.  According to the docs, it looks like Rev will 
allow a script with at most 10 statements to be assigned to an object 
within a standalone.  So as long as the script you are trying to assign 
has no more than 10 statements, this might not be a problem.  (See the 
'script' and 'scriptLimits' documentation for details on this).

As for the error, it can't open the stack file because the specified 
name is that of a folder, which exists and does not want to be 
overwritten by a file.

>> 3. The "save stack" command should be moved to be after the set the 
>> stackFileType and the set the script commands

I think you want "ask file" in place of "answer folder":

ask file "Save stack as:"

instead of:

answer folder " "

>>
>> On Nov 9, 2004, at 15:15, Hershel Fisch wrote:
>>
>>> Hi all, what is wrong with this syntax ?
>>> It doesn't save to the destination.
>>>
>>> on mouseUp
>>>   create stack "t2"
>>>   answer folder " "
>>>   put it into tP
>>>   save stack "t2" as tp
>>>   set the stackFileType to "myapSTCK"
>>>   set the script of stack "t2" to field "fi"
>>> end mouseUp
>>>
>>> Thanks , Hershel
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>
>> -----------------------------------------------------------
>> Frank D. Engel, Jr.  <fde101 at fjrhome.net>
>>
>> $ ln -s /usr/share/kjvbible /usr/manual
>> $ true | cat /usr/manual | grep "John 3:16"
>> John 3:16 For God so loved the world, that he gave his only begotten 
>> Son, that whosoever believeth in him should not perish, but have 
>> everlasting life.
>> $
>>
>>
>>
>> ___________________________________________________________
>> $0 Web Hosting with up to 120MB web space, 1000 MB Transfer
>> 10 Personalized POP and Web E-mail Accounts, and much more.
>> Signup at www.doteasy.com
>>
>> _______________________________________________
>> 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
>
>
-----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list