Title: Re: Clone
Kevin Miller quoted the following script to solve the problem:

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?  

:)
Richard MacLemale
www.coolclassroom.com

Reply via email to