<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">Hi Stefano,</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">it is possible to export your project to your </span>hard disk:</div><div class="gmail_default"><br></div><div class="gmail_default">1. run ScratchJS via <a href="https://squeak.js.org/scratch/#fullscreen">https://squeak.js.org/scratch/#fullscreen</a></div><div class="gmail_default">2. Inside Scratch, click "Save" as you normally would, give it a name. I just did that and named mine "test".</div><div class="gmail_default">3. go to <a href="https://squeak.js.org/run/">https://squeak.js.org/run/</a> and scroll down inside the file box: </div><div class="gmail_default"><div><img src="cid:ii_k6fmvusf0" alt="image.png" width="562" height="230"><br></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">4. click the "/Scratch/Scratch Projects/<a href="http://test.sb">test.sb</a>" link to download the project file.</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">To import an older project you simply drag-and-drop it into ScratchJS. Or drop it into the "run" page and then use Scratch's file dialog - you just need to navigate up to the right folder (Click "Computer" then "SqueakJS"):</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><div><img src="cid:ii_k6fnfnsl1" alt="image.png" width="562" height="293"><br></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">When I just tested this it said the file was corrupted, not sure if that is a general </span>problem or not. </div><div class="gmail_default">Someone should investigate - to get to the Morphic desktop, shift-click the loop in the R of the SCRATCH logo:</div><div class="gmail_default"><br></div><div class="gmail_default"><div><img src="cid:ii_k6fnqjjn2" alt="image.png" width="562" height="224"><br></div></div><div class="gmail_default"><br></div><div class="gmail_default">Feel free to file bug reports / feature requests at <a href="https://github.com/bertfreudenberg/SqueakJS/issues/">https://github.com/bertfreudenberg/SqueakJS/issues/</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default">It would be relatively simple to make a proper stand-alone app out of this by packaging it via Electron, and using the actual file system instead of the in-browser file system. I just do not have the time for that currently.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">Cheers!</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">- Bert -</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">On Sun, Feb 9, 2020 at  7:32 AM David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi Stefano,<br>
<br>
I think that your understanding is correct. SqueakJS stores files<br>
in an internal database, so the Scratch files that you saved do not<br>
appear directly on your PC.<br>
<br>
I do not know if it possible to copy those files to the file system<br>
on your PC, but hopefully someone on the squeak-dev mailing list will<br>
have an answer.<br>
<br>
Thanks for asking,<br>
Dave<br>
<br>
<br>
On Sun, Feb 09, 2020 at 09:51:25AM +0000, stefano federici wrote:<br>
>  <br>
>  >> you want to understand where the Scratch files are stored on your PC.<br>
> > Correct. So that I can easily open my old Scratch projects and I can send projects that I develop in ScratchJS to other people<br>
> <br>
> UPDATE: I created and saved a project in the "SqueakJS" folder (the one shown in ScratchJS) and I made a full search in my PC. The file was not found. So, I guess projects are just saved in an internal SqueakJS DB? If it is so, this makes unfortunately ScratchJS useless for my purposes. And I have no sufficient javascript/smalltalk knowledge to try myself to change this behaviour (that I guess would possible in principle, as a lot of JS apps allow to save file locally).<br>
> <br>
> Cheers<br>
> Stefano<br>
> <br>
> > I am also CC'ing the squeak-dev mailing list where some of the real Scratch and SqueakJS experts reside.<br>
> <br>
> Thanks a lot Dave<br>
> <br>
> > I think that you are asking about running Scratch on Bert Freudenberg's SqueakJS, which is a modern Squeak virtual machine implemented entirely in JavaScript for HML5<br>
> <br>
> Correct<br>
> <br>
> > If I understand your question correctly, you are asking about how to run Scratch on SqueakJS locally on your PC<br>
> <br>
> Yes. I partially solved the problem by downloading page <a href="https://squeak.js.org/run/" rel="noreferrer" target="_blank">https://squeak.js.org/run/</a> and by dragging my Scratch.image file into the page. ScratchJS runs apparently fine. I also partially solved the problem of running local files, by dragging the Scratch projects on the Scratch app running in SqueakJS<br>
> <br>
> > you want to understand where the Scratch files are stored on your PC.<br>
> <br>
> Correct. So that I can easily open my old Scratch projects and I can send projects that I develop in ScratchJS to other people<br>
> <br>
> Thanks for your help<br>
> <br>
> Stefano Federici<br>
> -------------------------------------------------<br>
> Universit?? degli Studi di Cagliari<br>
> Facolt?? di Studi Umanistici<br>
> Dipartimento di Pedagogia, Psicologia e Filosofia<br>
> Via Is Mirrionis 1, 09123 Cagliari, Italia<br>
> -------------------------------------------------<br>
> Tel: +39 349 818 1955 Fax: +39 070 675 7113<br>
> <br>
> Il domenica 9 febbraio 2020, 04:05:38 CET, David T. Lewis <<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>> ha scritto:<br>
> <br>
> <br>
> <br>
> Hi Stefano,<br>
> <br>
> I am changing the subject line to "SqueakJS for Scratch" because google<br>
> sends me somewhere else for "ScratchJS".<br>
> <br>
> I think that you are asking about running Scratch on Bert Freudenberg's<br>
> SqueakJS, which is a modern Squeak virtual machine implemented entirely<br>
> in JavaScript for HML5, rather than the traditional compiled virtual<br>
> machines that run on operating systems such as Linux and Windows.<br>
> <br>
> If I understand your question correctly, you are asking about how to<br>
> run Scratch on SqueakJS locally on your PC, and you want to understand<br>
> where the Scratch files are stored on your PC.<br>
> <br>
> I do not have good answers to your questions but I am sure that others<br>
> on this list can help. I am also CC'ing the squeak-dev mailing list<br>
> where some of the real Scratch and SqueakJS experts reside.<br>
> <br>
> Here are some useful links for SqueakJS information:<br>
> <br>
> ?? <a href="https://squeak.js.org/" rel="noreferrer" target="_blank">https://squeak.js.org/</a><br>
> ?? <a href="http://try.squeak.org/" rel="noreferrer" target="_blank">http://try.squeak.org/</a><br>
> ?? <a href="https://github.com/bertfreudenberg/SqueakJS" rel="noreferrer" target="_blank">https://github.com/bertfreudenberg/SqueakJS</a><br>
> <br>
> And for Scratch:<br>
> <br>
> ?? <a href="https://www.raspberrypi.org/blog/a-new-version-of-scratch-for-raspberry-pi-now-with-added-gpio/" rel="noreferrer" target="_blank">https://www.raspberrypi.org/blog/a-new-version-of-scratch-for-raspberry-pi-now-with-added-gpio/</a><br>
> ?? <a href="https://www.raspberrypi.org/blog/test-tims-nuscratch-beta/" rel="noreferrer" target="_blank">https://www.raspberrypi.org/blog/test-tims-nuscratch-beta/</a><br>
> ?? <a href="https://github.com/raspberrypi/scratch" rel="noreferrer" target="_blank">https://github.com/raspberrypi/scratch</a><br>
> <br>
> Dave<br>
> <br>
> <br>
> On Sun, Feb 09, 2020 at 01:01:57AM +0000, stefano federici wrote:<br>
> >??<br>
> >?? I managed running ScratchJS locally by saving the page <a href="https://squeak.js.org/run/" rel="noreferrer" target="_blank">https://squeak.js.org/run/</a> to my PC and the dragging my Scratch.image into the page.<br>
> ><br>
> > What I don't know is where the SqueakJS file system is stored. When I open the File>Open dialog I can see the SqueakJS and ScratchProjects folders. Where are they stored in my PC?<br>
> ><br>
> > Thanks in advance<br>
> ><br>
> > Stefano Federici<br>
> > -------------------------------------------------<br>
> > Universit?? degli Studi di Cagliari<br>
> > Facolt?? di Studi Umanistici<br>
> > Dipartimento di Pedagogia, Psicologia e Filosofia<br>
> > Via Is Mirrionis 1, 09123 Cagliari, Italia<br>
> > -------------------------------------------------<br>
> > Tel: +39 349 818 1955 Fax: +39 070 675 7113<br>
> ><br>
> >?? ?? ?? Il venerd?? 7 febbraio 2020, 21:39:50 CET, stefano federici <<a href="mailto:s_federici@yahoo.com" target="_blank">s_federici@yahoo.com</a>> ha scritto:??<br>
> >??<br>
> >?? Dear All,<br>
> > I have two questions about ScratchJS (that I think is an awesome project):<br>
> > - is it possible to run ScratchJS locally? I tried to run index.html in the SqueakJS-master\scratch folder, but I just got a black square in the upper left corner<br>
> > - can I open local projects in ScratchJS?<br>
> ><br>
> > Thanks in advance for your help<br>
> ><br>
> > Regards<br>
> > Stefano Federici<br>
> > -------------------------------------------------<br>
> > Universit?? degli Studi di Cagliari<br>
> > Facolt?? di Studi Umanistici<br>
> <br>
> > Dipartimento di Pedagogia, Psicologia e Filosofia<br>
> > Via Is Mirrionis 1, 09123 Cagliari, Italia<br>
> > -------------------------------------------------<br>
> > Tel: +39 349 818 1955 Fax: +39 070 675 7113??  <br>
<br>
</blockquote></div></div></div></div></div>