Is there any way to export a Scratch program as text? Such text would be of minimal utility, perhaps, but I'm old-fashioned that way (this is actually connorthesuper's dad posting), and it would make it easier to talk about Scratch code other places besides these forums...
Offline
Hi! I believe you want to run a scratch project like python runs them, as a text only thing? I don't think Scratch currently has that capability, but you should check out Python as a better alternative!
Offline
Thanks for answering!
No, I don't want to be able to run it that way. I just want a way to export the scripts in text form. Makes it easy to quote them, pass around code snippets in places that don't have these convenient buttons ↓ for inserting Scratch blocks/. Submit answers to Rosetta Code that aren't screenshots, maybe...
Offline
Hold down shift, click "File", and select "Write Project Summary". I don't think you need fill-screen off.
It will allow you to save a .txt file summarizing the project. However, it won't run as code.

Offline
connorthesuper wrote:
Thanks for answering!
No, I don't want to be able to run it that way. I just want a way to export the scripts in text form. Makes it easy to quote them, pass around code snippets in places that don't have these convenient buttons ↓ for inserting Scratch blocks/. Submit answers to Rosetta Code that aren't screenshots, maybe...![]()
Ah! Well, you can right click on the script area and it should say 'Save picture of scripts'.
That would make an image of the scripts you've used. What Greenatic suggested would work,
but you would have to some editing of the text!
Offline
I second what Greeatic said, but you'd have to do some major shifting to get to the actual code
You could create your own short hand (e.g. [green-flag]{[go to x() y()]} etc.) but you'd have to manually write it and couldn't import it; also, there isn't - as far as I know - a universally accepted text short-hand of Scratch blocks. The closest thing is the Forum's text code for blocks.
Last edited by MoreGamesNow (2011-10-05 23:02:22)
Offline
Is this what you want? Make sure you edit some of the scripts to work in your scratch or use the source code or it wont work properly.
Offline