Page 1 of 1

How to rename a stack with a button??

Posted: Mon Apr 09, 2018 10:08 pm
by Fasasoftware
How to rename a stack with a button but asking the name of the renamed stack?? :oops: ??
best regards,
lestroso :oops:

Re: How to rename a stack with a button??

Posted: Mon Apr 09, 2018 10:26 pm
by richmond62
Could you explain things a bit better: maybe with a picture?

Re: How to rename a stack with a button??

Posted: Mon Apr 09, 2018 10:52 pm
by bogs
Why wouldn't this work? (Feel free to embellish it a LOT )

Code: Select all

// all code in buttons handler...
on mouseUp
   createNuStack
end mouseUp

on createNuStack
   ask "Stack name?"
   create stack it
   save stack it as it & ".testStack" //<- or whatever extension you want to use...
end createNuStack

Re: How to rename a stack with a button??

Posted: Mon Apr 09, 2018 11:07 pm
by richmond62
Ah, so this is just a reduplication of the other posting.

Re: How to rename a stack with a button??

Posted: Tue Apr 10, 2018 3:26 am
by bogs
Apparently, I saw the other post after writing the above Richmond. Oh the shame of it all :cry:

Re: How to rename a stack with a button??

Posted: Tue Apr 10, 2018 6:19 pm
by Fasasoftware
there's again the same problem.... the script don't save anything...

thanks alot in any way..
lestroso :oops: