Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Export project as text?
- deck26
-
Scratcher
1000+ posts
Export project as text?
Is it possible to export a project as text? I thought you could do this with 1.4 and it would be useful at times but I can't find it in 2.0.
For example, I have a project with quite a few scripts which I'm updating and having a text file to search would make it easier to find references to a variable to see if my planned changes are consistent with how I've used the variable so far. I don't necessarily need to be able to re-import, just have a better way than the Scratch UI to check things like that.
For example, I have a project with quite a few scripts which I'm updating and having a text file to search would make it easier to find references to a variable to see if my planned changes are consistent with how I've used the variable so far. I don't necessarily need to be able to re-import, just have a better way than the Scratch UI to check things like that.
- turkey3_test
-
Scratcher
1000+ posts
Export project as text?
Well, there is a way to
*save the project to your computer
*convert it to a .zip file
*view the JSON (I'm not the expert at this thing)
That's what I know. I'm sure someone with more expertise in it can help. I haven't viewed the JSON yet, so I'm not sure. The JSON is pretty much the text you speak of, which holds all the project' seats.
*save the project to your computer
*convert it to a .zip file
*view the JSON (I'm not the expert at this thing)
That's what I know. I'm sure someone with more expertise in it can help. I haven't viewed the JSON yet, so I'm not sure. The JSON is pretty much the text you speak of, which holds all the project' seats.
- deck26
-
Scratcher
1000+ posts
Export project as text?
Thanks for that, I'm viewing the JSON file now in an online viewer (http://www.jsoneditoronline.org/). To clarify for anyone else this is what I did -
- save the file to my computer
- rename the saved file to have the extension .zip (saying convert is potentially confusing)
- now open the zip file and extract the .json file
- open the file
That last stage can be done in various ways - the online viewer I mentioned is one but there's a Firefox add-on to read JSON files so you can just open it in Firefox if you have that set up. No doubt there are various other ways.
Possibly worth mentioning that what you get bears little resemblance to Scratch though. That's OK for experienced programmers who'll manage to work out what's what and for the problem I mentioned but something that just gave a text version of the Scratch would be much better - I still think I've seen something like this in the past but may be mistaken.
- save the file to my computer
- rename the saved file to have the extension .zip (saying convert is potentially confusing)
- now open the zip file and extract the .json file
- open the file
That last stage can be done in various ways - the online viewer I mentioned is one but there's a Firefox add-on to read JSON files so you can just open it in Firefox if you have that set up. No doubt there are various other ways.
Possibly worth mentioning that what you get bears little resemblance to Scratch though. That's OK for experienced programmers who'll manage to work out what's what and for the problem I mentioned but something that just gave a text version of the Scratch would be much better - I still think I've seen something like this in the past but may be mistaken.
- Discussion Forums
- » Questions about Scratch
-
» Export project as text?