{"id":1894,"date":"2013-04-29T08:00:39","date_gmt":"2013-04-29T06:00:39","guid":{"rendered":"http:\/\/www.razumny.no\/blog\/?p=1894"},"modified":"2013-04-24T20:50:40","modified_gmt":"2013-04-24T18:50:40","slug":"exporting-sense-scripts-clear-text","status":"publish","type":"post","link":"https:\/\/www.razumny.no\/?p=1894","title":{"rendered":"Exporting Sense scripts as clear text"},"content":{"rendered":"<p>As part of my studies, I have been &#8220;programming&#8221; in Sense, a version of <a href=\"http:\/\/scratch.mit.edu\/\" target=_blank>Scratch<\/a>, 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&#8217;t be assured of being able to read the files when, at some point in the future, I might want to.<br \/>\n&nbsp;<br \/>\nLuckily, Sense, and presumably Scratch, too, has an export facility, allowing you to export the program you&#8217;ve made to clear text. Here&#8217;s how:<br \/>\n&nbsp;<\/p>\n<ul>\n<li>Open Sense<\/li>\n<li>Open the project you want to export<\/li>\n<li>Click the &#8220;Extras&#8221; button, then click &#8220;Copy project summary to clipboard&#8221;<\/li>\n<li>Paste the resulting export into whatever program you want<\/li>\n<\/ul>\n<p>&nbsp;<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.razumny.no\/images\/blog\/ExportToClipboard.png\" target=_blank><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.razumny.no\/images\/blog\/ExportToClipboard.png\" ><\/a><br \/>\n&nbsp;<br \/>\nThe script shown here, is the most basic program known, a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hello_world_program\" target=_blank>&#8220;Hello world!&#8221;-program<\/a>. Here is how the output looks:<br \/>\n&nbsp;<\/p>\n<blockquote><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nProject name:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nStage has 1 stack<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nwhen_green_flag_clicked<br \/>\n{<br \/>\n   pop_up_warning &#8220;Hello world!&#8221;<br \/>\n   stop_script<br \/>\n}\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>As part of my studies, I have been &#8220;programming&#8221; 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 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[119,615,733,13,706,677,729],"tags":[734,967],"class_list":["post-1894","post","type-post","status-publish","format-standard","hentry","category-code-examples","category-how-to-2","category-sense","category-software","category-studies","category-tips-tricks","category-tu100","tag-export-program","tag-sense"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2ukSU-uy","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3472,"url":"https:\/\/www.razumny.no\/?p=3472","url_meta":{"origin":1894,"position":0},"title":"GoPro Studio: Video editing basics","author":"Aleksander Nordgarden-R\u00f8dner","date":"18\/04\/2016","format":false,"excerpt":"Action cams are made - more or less literally - to create content for streaming video services, such as YouTube\u00a0or Vimeo, and while you could certainly just upload your raw\u00a0footage\u00a0straight to such services, a better option is very likely to be to edit them before you do so. For the\u2026","rel":"","context":"In &quot;GoPro&quot;","block_context":{"text":"GoPro","link":"https:\/\/www.razumny.no\/?cat=1006"},"img":{"alt_text":"GoPro Studio View and Trim","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/GoPro-Studio-View-and-Trim-1024x746.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/GoPro-Studio-View-and-Trim-1024x746.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/GoPro-Studio-View-and-Trim-1024x746.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/GoPro-Studio-View-and-Trim-1024x746.png?resize=700%2C400 2x"},"classes":[]},{"id":1905,"url":"https:\/\/www.razumny.no\/?p=1905","url_meta":{"origin":1894,"position":1},"title":"Sense: Referencing files from wherever you want","author":"Aleksander Nordgarden-R\u00f8dner","date":"06\/05\/2013","format":false,"excerpt":"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. \u00a0 \u00a0\u2026","rel":"","context":"In &quot;code examples&quot;","block_context":{"text":"code examples","link":"https:\/\/www.razumny.no\/?cat=119"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5478,"url":"https:\/\/www.razumny.no\/?p=5478","url_meta":{"origin":1894,"position":2},"title":"Excel: Text to Columns","author":"Aleksander Nordgarden-R\u00f8dner","date":"25\/05\/2020","format":false,"excerpt":"I work a lot with text files containing data which is, to some degree or another, structured. Whether a breach file from a published breach, or the result of a powershell query such as Get-ADUser, Get-ADComputer, or Get-ADDirectReports, I need to separate the data into columns so that I can\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-16.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":159,"url":"https:\/\/www.razumny.no\/?p=159","url_meta":{"origin":1894,"position":3},"title":"Firefox: Auto export bookmarks","author":"Aleksander Nordgarden-R\u00f8dner","date":"08\/06\/2009","format":false,"excerpt":"In Firefox 3, bookmarks are automatically saved. The only problem is the way they are stored, as they are stored as places.sqlite, as opposed to saving them in HTML. You can change this easily however, by doing the following: \u00a0 In the address field, go to about:config Accept the warning\u2026","rel":"","context":"In &quot;Firefox&quot;","block_context":{"text":"Firefox","link":"https:\/\/www.razumny.no\/?cat=14"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2197,"url":"https:\/\/www.razumny.no\/?p=2197","url_meta":{"origin":1894,"position":4},"title":"Exporting members of an Active Directory group","author":"Aleksander Nordgarden-R\u00f8dner","date":"21\/10\/2013","format":false,"excerpt":"A while back, my boss came to me, asking me if I could get him an export of the users that are members of two groups in Active Directory. For the purposes of this blog post, let's call them \"OfflineUsers\" and \"Software Access\". As it turns out, this is pretty\u2026","rel":"","context":"In &quot;code examples&quot;","block_context":{"text":"code examples","link":"https:\/\/www.razumny.no\/?cat=119"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4297,"url":"https:\/\/www.razumny.no\/?p=4297","url_meta":{"origin":1894,"position":5},"title":"Powershell: Exporting Active Directory Contacts","author":"Aleksander Nordgarden-R\u00f8dner","date":"16\/10\/2017","format":false,"excerpt":"Some time ago, I needed to have a list of all Contacts registered in Active Directory. Knowing that there are a lot of them (numbering at least eighty), getting the data manually was not a viable alternative, particularly knowing that the same objective can be achieved through Powershell. I eventually\u2026","rel":"","context":"In &quot;code examples&quot;","block_context":{"text":"code examples","link":"https:\/\/www.razumny.no\/?cat=119"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/1894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1894"}],"version-history":[{"count":9,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions"}],"predecessor-version":[{"id":1908,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions\/1908"}],"wp:attachment":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}