How do I save my scripts (I am a student)?
To save your creation, select your script from the My scripts field and click on save.
In Chrome the file will appear as a download in the bottom of your browser. If you right click on the drop down arrow and select Show in folder, it will show as a JSON (.jsz) file in your download folder. You can copy it from there into a folder of your choice or onto a USB device.
In Firefox you will get a prompt asking whether you want to open or save the JSON (.jsz) file. Select Save and the file will be saved as a JSON (.jsz) file to your Download folder. From there you can drag and drop it into a folder of your choice or onto a USB device.
In Safari, click on Save and the file will go into your Downloads folder and it will be named unknown. You can access your Downloads folder via Finder on Mac OS. From there you can drag and drop it into a folder of your choice or onto a USB device.
You can also save just the .hex file that is generated from pressing the compile/download button in any of the editors. This .hex file can be used to flash the code onto your BBC micro:bit, but it also has all of your program source code inside it. Dragging this .hex file back into the editor that created it, will re-load the program code and allow you to view and re-edit it.
So, if you are working in a school environment, you could either download and store all your .hex files on a USB memory stick, or you could store them in any home folder that your school login system provides you. You can therefore work with micro:bit files just like any other file you might use at school (such as a Word document). You can even email those .hex files to friends to share your programs with them.
By storing your .hex files like any other document file you may already use, this allows you to work on any shared computer, and next week when you want to get back to your program code again but are sitting on another computer, just retrieve that .hex file like you would do with any other file that you store while at school.
NOTES ON PROGRAM ERRORS
If you are using Blocks, Touch Develop or Code Kingdoms, you cannot compile/download a program that has errors in it – so use the SAVE button to save a .jsz file. This file can then be re-imported later on any computer using the IMPORT CODE button at the bottom of the left pane. If your program has no errors, you can save the .hex file generated with the COMPILE button, as it also has a complete copy of your source program inside it.
Inside PXT (pxt.microbit.org) you can use the DOWNLOAD button to download files even if they have errors in them. Dragging that file back into the PXT editor will re-load the program (complete with errors) so that you can continue where you left off last time you were editing the program.
Article Source: BBC
Original Page: http://www.microbit.co.uk/help