Restraining the pencil in Rev
Joe Lewis Wilkins
pepetoo at cox.net
Sun Sep 21 10:56:47 CDT 2008
Mark, thanks for the guidance. I'll see if I can finally get this to
work. I can see there are several concepts that I have yet to master.
On Sep 21, 2008, at 8:42 AM, Mark Schonewille wrote:
> Hi Joe,
> I would start with a template stack. When your standalone starts up,
> it should immediately clone the template and give it a name. For
> example "Untitled 1".
> When the user quits or chooses the Save menu item from the File
> menu, you can show the prompt, asking whether to save or not, and
> show the save file dialog window. If the user chooses to save, you
> can optionally change the name and subsequently save the already
> cloned stack to the preferred location.
> Your script doesn't save the stack, because the cloned stack has no
> file path. You need to give the save command a file path. Something
> case "Save As..." -- save copy of stack
> ask file "Save file as..."
> if it is not empty then
> put it into myFile
> save this stack as myFile
> end if
> This doesn't work well with substacks but works fine if you clone
> the stack first.
> Best regards,
> Mark Schonewille
More information about the use-livecode