Discuss Scratch

VicTwenty
Scratcher
83 posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

Is it possible to have scratch open and run a project automatically? I'd like to run it basically in what is called ‘headless mode’.

Breck-
Scratcher
100+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

Nope. It always requires you to click the green flag
-Lite-
Scratcher
500+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

Yes, it is. Go to https://phosphorus.github.io and copy and paste your project's link into it. Then click package. Make sure that Start Automatically is enabled. Phosphorus compiles the scratch project to JavaScript, meaning it will not only autorun, but can run on devices that don't have Flash (such as a tablet) and it speeds it up.

Last edited by -Lite- (May 8, 2017 22:06:58)

Breck-
Scratcher
100+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

-Lite- wrote:

Yes, it is. Go to https://phosphorus.github.io and copy and paste your project's link into it. Then click package. Make sure that Start Automatically is enabled. Phosphorus compiles the scratch project to JavaScript, meaning it will not only autorun, but can run on devices that don't have Flash (such as a tablet) and it speeds it up.
However, that takes longer than simply clicking the green flag , this also won't run on the site

Another disadvantage to phosphorus, is that it doesn't perfectly run some projects. Try using some text or vector shapes, and it horribly disfigures them.
-Lite-
Scratcher
500+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

Breck- wrote:

-Lite- wrote:

Yes, it is. Go to https://phosphorus.github.io and copy and paste your project's link into it. Then click package. Make sure that Start Automatically is enabled. Phosphorus compiles the scratch project to JavaScript, meaning it will not only autorun, but can run on devices that don't have Flash (such as a tablet) and it speeds it up.
However, that takes longer than simply clicking the green flag , this also won't run on the site

Another disadvantage to phosphorus, is that it doesn't perfectly run some projects. Try using some text or vector shapes, and it horribly disfigures them.
Not sure what you mean “this also won't run on the site”.
Also, the disfiguration is due to your machine, not phosphorus. It uses a javascript library to render SVGs on the canvas that works fine for me
VicTwenty
Scratcher
83 posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

I tried a couple of my projects (that used vector graphics) without any problems, but will keep my eye out for issues. Since it is running headless, this will TOTALLY work. Many thanks!!!

This should mean that I can run Scratch 2.0 projects on a raspberry pi.
-Lite-
Scratcher
500+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

VicTwenty wrote:

I tried a couple of my projects (that used vector graphics) without any problems, but will keep my eye out for issues. Since it is running headless, this will TOTALLY work. Many thanks!!!

This should mean that I can run Scratch 2.0 projects on a raspberry pi.
No problem.
(P.S. Next year, Scratch 3.0 is set to be released. It should run natively in javascript.)
Breck-
Scratcher
100+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

-Lite- wrote:

VicTwenty wrote:

I tried a couple of my projects (that used vector graphics) without any problems, but will keep my eye out for issues. Since it is running headless, this will TOTALLY work. Many thanks!!!

This should mean that I can run Scratch 2.0 projects on a raspberry pi.
No problem.
(P.S. Next year, Scratch 3.0 is set to be released. It should run natively in javascript.)

Not sure if this is just my machine or an actual bug, at the end, the text is a little messed up and the characters are blurry. When I say “this won't run on the site”, I mean it doesn't run on scratch.mit.edu itself, so you can't go back to the person's profile (if you ever wanted to )
Birdlegs
Scratcher
1000+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

If you want it to happen on the website, I think you can add “autostart=true” to the end of the URL. Not sure if it's exactly that, though. Maybe someone else can help?
RedThumb
Scratcher
100+ posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

-Lite- wrote:

Yes, it is. Go to https://phosphorus.github.io and copy and paste your project's link into it. Then click package. Make sure that Start Automatically is enabled. Phosphorus compiles the scratch project to JavaScript, meaning it will not only autorun, but can run on devices that don't have Flash (such as a tablet) and it speeds it up.
Holy…

That was incredible! I may use that link to share my scratch videos to any of my friend, using only phones. Thanks.
VicTwenty
Scratcher
83 posts

Is it possible to run scratch in headless mode (automatically run a project on startup?)

>P.S. Next year, Scratch 3.0 is set to be released. It should run natively in javascript

Does that mean that there is hope for a new version of scratch to run/install onto Raspberry Pi?

Last edited by VicTwenty (May 11, 2017 21:20:31)

Powered by DjangoBB