<div dir="ltr">I would right click the file name in FileList. You get the option copy name to clipboard.<div>From there I would open a Workspace and assign to variables as I go.</div><div><br></div><div>Best,</div><div>Karl</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 2:43 PM, Jakob Reschke <span dir="ltr">&lt;<a href="mailto:jakob.reschke@student.hpi.de" target="_blank">jakob.reschke@student.hpi.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
is there a convenient way to bind some object (e. g. one that I<br>
inspect at the moment) to a variable in a new or existing Workspace?<br>
<br>
Use Case: I would like to read something from an XML file and have<br>
never done that before in Squeak. After installing the XMLParsers<br>
stuff from SqueakMap I dragged my XML file into the image. It shows<br>
the file content in a Workspace, great! Now I want to get that content<br>
as a string object to later supply it to an appropriate parser. I<br>
found the string by inspecting the morphs of the Workspace (is there<br>
an easier way?), but now I would like to have a new workspace where I<br>
can work with that string.<br>
<br>
Printing the string in the inspector and copy&amp;pasting would be an<br>
option, but the XML file is quite large and performance issues already<br>
arise when I navigate around in the Workspace where the content was<br>
loaded. For the sake of having tried it out, I attempted to print the<br>
#fullPrintString of the string, but my VM crashed... So, is there a<br>
way to bind arbitrary objects at hand to a Workspace, other than<br>
copying and pasting serialized representations around or fiddling with<br>
&quot;global variables&quot;?<br>
<br>
Of course, I could have done the file reading myself with FileStream<br>
etc. to obtain a string, but I wondered if there is a more &quot;tangible&quot;<br>
approach.<br>
<br>
Best regards,<br>
Jakob<br>
<br>
</blockquote></div><br></div>