Although it is not documented, doing 'the obvious thing' seems to work -
Code: Select all
scratch Path/to/my_scratch_project.sb
does, as you might expect, open Scratch with the specified project open on the screen.
Of course, as it isn't documented this might not be supported and might cease to work at a future release without warning...
For implementation with NOOBS, might it be possible to have a little wrapper along the lines of -
Code: Select all
if .exists. ~/Documents/Scratch Projects/my_default_project.sb :
then run "scratch ~/Documents/Scratch Projects/my_default_project.sb"
else:
run "scratch" # with no arguments
[That's my pseudo-code, not any known scripting language!]
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html