At 10:02 PM +0000 14/10/1999, Richard MacLemale wrote:

>ask file "Save new stack as:"
>if it is empty then exit mouseUp
>put it into tFilePath
>set the itemDel to "/"
>put last item of tFilePath into tShortName
>clone this stack
>set the name of stack it to tShortName
>set the fileName of stack tShortName to tFilePath
>set the mainStack of stack tShortName to tShortName
>save stack tShortName
>send "whatever" to cd 1 of stack tShortName
>
>
>OK... yeah, this is very similar to what I was doing. �But when you
>run the above script, MetaCard returns an error for the line
>"set the mainStack of stack tShortName to tShortName"
>
>and the error is "Stack: Stack is not a mainStack"
>
>I can't figure out why! �What's missing here? �

Hi Richard

I don't think there's any need to set the mainstack property. Try this:

ask file "Save new stack as:"
if it is empty then exit mouseUp
put it into tFilePath
set the itemDel to "/"
put last item of tFilePath into tShortName
clone this stack
set the name of it to tShortName  -- no "stack" label needed I think
save stack tShortName as tFilePath
send "whatever" to cd 1 of stack tShortName


Cheers
Dave Cragg
_____________________________________________
The LACS Centre (Business English Training Resources)
mailto:[EMAIL PROTECTED]
http://www.lacscentre.co.uk
_____________________________________________

Reply via email to