In Sense, you can reference a list to control what your program does. By default, the [line X from_file “file.txt”] references the Sense project folder, but it can reference one of many locations. How this works differs on Windows and Mac, but the approach is much the same.
The way you do it, as you can see in the screenshot above, is that you simply enter the path you want to reference. On Windows, that would look like this:c:\result.txt
, while on Mac OS X, it would look like this: /Users/Example/Desktop/Sources/results.txt
. Keep in mind that you can address any mounted share on either platform.
Category: TU100
-
Sense: Referencing files from wherever you want
-
Exporting Sense scripts as clear text
As part of my studies, I have been “programming” in Sense, a version of Scratch, the graphic programming environment developed at MIT. The programs developed in Sense are stored as .sb-files. Now, the problem is that these files are only readable by the program that made them (and Sense programs are apparently not readable by Scratch). The problem this poses is that I can’t be assured of being able to read the files when, at some point in the future, I might want to.
Luckily, Sense, and presumably Scratch, too, has an export facility, allowing you to export the program you’ve made to clear text. Here’s how:
(more…) -
The Machine is us/ing us
As part of my studies, I came across this video. I’ve seen it before, and I’m sure many others have, too (right now, it has over one and a half million views on YouTube). Still, it poses some interesting questions, and looks at text in a different way.