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 like

  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
  break

This doesn't work well with substacks but works fine if you clone the stack first.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info.

On 21 sep 2008, at 17:30, Joe Lewis Wilkins wrote:

I guess this is my day for confusion. (smile) I'm not using a player for any of this.

I have a fairly simple stack consisting of some 50 cards, each of which has one or more images and some fields and/or buttons. Using the bucket tool, a user may color inside the lines of the images as they see fit - often pretty complex. Once colored, they may print portions of the cards that I designate in the print routine; but, once the stack is closed, all of these colorations disappear. I would like for them to be able to Save a copy of the colorized stack under a new name, as a document?, from the standalone. Then, as you have indicated it can, have that copy open as a document "of" the standalone when double clicked upon. So far, I've used:

        case "Save..."
        answer "Save Coloring Book?" with "Cancel" or "OK"
        if it is "Cancel" then exit menuPick
        save this stack
     break
     case "Save A Copy As..."
answer "Save a Copy of this Coloring Book?" with "Cancel" or "OK"
        if it is "Cancel" then exit menuPick
        clone this stack
        save stack ("Copy of "&(the effective name of this stack))
     break

This kind of works, but doesn't result in a separate stack that contains the colored images; just the same as the original, "plain" images stack.

Thanks for all your comments.

Joe Wilkins


On Sep 21, 2008, at 1:58 AM, Mark Schonewille wrote:

Hi Joe,

You can save and open stacks with the same standalone. There is no need for a player. As Richard states, you can use these stacks as documents, in case you need to save custom properties and objects for instance. You can even give these stacks their own extension or file type and, with a little bit of tweaking (more on Windows than on Mac) have them open automatically with your standalone when the users double-clicks on them.

--
Best regards,

Mark Schonewille

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to