Pages: 1
Topic closed
I am almost finished with my Scratch EXE Creator. The creator is done, the interface is done, all the components are done. The only thing that stands in the way: Scratch itself.
I have already modified the image to run the normal exit code when the exit presentation arrow is clicked (oops, I forgot to mention that the project will be packed back into the EXE), but there are 2 issues:
-First, when I click the Save button in the "Save changes before quitting?" dialog, Scratch doesn't save the project to where it came from (namely, the temporary directory); instead, it opens the Save As dialog. Basically, when the Save button is clicked, I want it to save to project.sb in the temporary directory ("%temp%\project.sb" in Windows-environment-variable-speak).
-Second, when the project does save, Scratch doesn't automatically close. I need it to close after saving.
Any assistance with these issues would be greatly appreciated, and I will give credit.
Oh, I almost forgot: here's the Scratch image as I have modded it so far: http://concat.jcshome.org/stuff/Scratch.image
Offline
Bumpeth!
Help, please?
Offline
Why me?!
Okay, I think for closing after saving you could just modify SFrame's saveProjectNoDialog, and maybe call saveProjectNoDialog when saveProject: is called; although, I don't think Squeak likes writing to the temporary directories....
Offline
Also, make sure that you have all of the plugins for Scratch in the folder.
Offline
@Billybob-Mario: I already do, I got over that a while ago; like I said, everything else is finished.
@nxIII: Thanks, now I've gotten it to quit after saving, but it never actually saves the project. Can anybody get it to save in the temporary directory (maybe have it save to a file path passed to it as a command line parameter)?
Offline
Ah, I see it all now... The reason Scratch wouldn't automatically save the project is that it wasn't given a full path. If Scratch isn't given a full path to the project, it won't save the project to where it came from. Now my Scratch EXE Creator is nearly done, and it'll probably be released tomorrow!
Offline
Closed via request of owner.

Offline
Topic closed
Pages: 1