pattrstorage to clipboard?

Jun 22, 2008 at 2:19am

pattrstorage to clipboard?

I’m building a Max5-based standalone for both Mac and Windows. In
addition to allowing my users to be able to save the contents of a
pattrstorage to file, I’d like to be able to have them copy its
contents to the clipboard. Ideas on how I might go about this?

Dan

Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com

#38530
Jun 22, 2008 at 6:07pm

You could dump the contents to a coll? open the coll window and you can
copy, edit and paste.
pelado

On Sun, Jun 22, 2008 at 4:19 AM, Dan Nigrin
wrote:

> I’m building a Max5-based standalone for both Mac and Windows. In addition
> to allowing my users to be able to save the contents of a pattrstorage to
> file, I’d like to be able to have them copy its contents to the clipboard.
> Ideas on how I might go about this?
>
> Dan
> –
> Dan Nigrin
> Defective Records
> 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
> Malfunction
> http://www.defectiverecords.com
> http://www.jackosx.com
>
>

http://www.pelado.co.uk

#134478
Jun 22, 2008 at 10:47pm

http://java.sun.com/javase/6/docs/api/java/awt/datatransfer/Clipboard.html#Clipboard(java.lang.String)

bt

On Jun 21, 2008, at 7:19 PM, Dan Nigrin wrote:

> I’m building a Max5-based standalone for both Mac and Windows. In
> addition to allowing my users to be able to save the contents of a
> pattrstorage to file, I’d like to be able to have them copy its
> contents to the clipboard. Ideas on how I might go about this?

barry threw
Media Art and Technology

San Francisco, CA
Work: 857-544-3967
Email: bthrew (at) gmail (dot) com
Web: http://www.barrythrew.com

#134479
Jun 23, 2008 at 11:37am

Thanks Barry – I definitely thought about using Java (or Javascript
too), but then I ran into a stumbling block; I should have been more
explicit in my original posting, but I want to store *the XML* format
of the data in the pattrstorage to the clipboard — basically what
I’m trying to do is to pass the same contents that would be stored in
a “write” operation to a file, but instead to redirect the output to
the clipboard rather than to a file.

Using a “dump” operation on the pattrstorage doesn’t get the data in
the XML format – and I do *not* look forward to converting it back to
XML.

I think I might need to appeal to Jeremy B for a feature request…
;-) Jeremy, are you there??

Dan

At 3:47 PM -0700 6/22/08, barry threw wrote:
>http://java.sun.com/javase/6/docs/api/java/awt/datatransfer/Clipboard.html#Clipboard(java.lang.String)
>
>bt
>
>On Jun 21, 2008, at 7:19 PM, Dan Nigrin wrote:
>
>>I’m building a Max5-based standalone for both Mac and Windows. In
>>addition to allowing my users to be able to save the contents of a
>>pattrstorage to file, I’d like to be able to have them copy its
>>contents to the clipboard. Ideas on how I might go about this?
>
>
>barry threw
>Media Art and Technology


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com

#134480
Jun 23, 2008 at 11:42am

I am, but trying my very best to ignore this thread. :)

This is not on my to-do list at the moment, and probably will never be a feature (unless you can demonstrate to me how all of the other data management objects in Max — table, coll, qlist, etc. — provide copy to clipboard functionality).

Why don’t you write the file and then read it back with Java or JS or something and get the data that way?

Jeremy

#134481
Jun 23, 2008 at 11:52am

At 1:42 PM +0200 6/23/08, Jeremy Bernstein wrote:
>I am, but trying my very best to ignore this thread. :)
>
>This is not on my to-do list at the moment, and probably will never
>be a feature (unless you can demonstrate to me how all of the other
>data management objects in Max — table, coll, qlist, etc. —
>provide copy to clipboard functionality).

They don’t – but pattrstorage is way better than all those other
lowly objects. ;-)

>Why don’t you write the file and then read it back with Java or JS
>or something and get the data that way?

Hey, now that’s a nice idea to try, hadn’t thought of that! OK, for
now at least, you can remove the request from your to-do list! ;-)

Thanks,
Dan

Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com

#134482

You must be logged in to reply to this topic.