[Pharo-users] Using Playgrounds as a notepad

Peter Uhnák i.uhnak at gmail.com
Tue Jan 5 03:54:48 EST 2016

> Out of curiosity, is it possible to access any other data on the

At least for linux this is most likely not possible, as the underlying VM
code requests unicode string (that's what I remember when I was debugging
it about a year ago). In X11 clipboard, the client must explicitly request
the type of content he is interested in.

On Tue, Jan 5, 2016 at 8:14 AM, Dimitris Chloupis <kilon.alios at gmail.com>

> you need to accept the contents in order for the workspace to store your
> text, you can use either right click menu and accept or the shortcut that
> menus shows then you can get the contents as a string via
> ws := Workspace open.
> "type text and then accept it"
> ws contents asString
> On Tue, Jan 5, 2016 at 3:57 AM Andy Burnett <
> andy.burnett at knowinnovation.com> wrote:
>> @Dimitris
>> Thanks for the Workspace idea. That is pretty much what I am looking for.
>> However, I am struggling to get it to behave the way I want.
>> When I type into the Workspace, and then inspect
>> ws contents
>> I just get an empty string. Is there a simple way to get the ws to update
>> its contents so that I can access it?
>> @Sven, @Doru. Thanks. The Clipboard approach is very slick. I will use
>> that for the time being. Out of curiosity, is it possible to access any
>> other data on the clipboard. For instance, if I copy a pictured from my
>> desktop, is that accessible via the Clipboard object? I only saw text
>> oriented methods.
>> Thanks
>> Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160105/30399e0f/attachment.html>

More information about the Pharo-users mailing list