[PD] drag and drop files in pd ?
Hans-Christoph Steiner
hans at at.or.at
Fri Dec 17 19:00:02 CET 2010
Have you had any luck with tkdnd? I tried it with Ubuntu/GNOME and
couldn't get it to work. It would be very nice to have drag-n-drop.
.hc
On Nov 7, 2010, at 1:13 AM, patko wrote:
> hello,
>
> the drag'n'drop tcl command is implemented for opening pd files, if
> you are curious look for this code in pd.tk:
>
> catch {
> package require tkdnd
> dnd bindtarget . text/uri-list <Drop> {
> foreach file %D {open_file $file}
> }
> }
>
> you will need to install tktdnd lib to try out this GUI feature.
>
> It would be nice to have externals using this lib.
>
> ----- "tep" <tep.core at gmail.com> a écrit :
>
>> i'm looking for a way to drag and drop files in linux (ubuntu), in
>> order to get the path of the file (in the manner of the [dropfile]
>> object in maxmsp) and possibly the filetype ?
>>
>> --
>>
>>
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>
> --
> Patrice Colet
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
----------------------------------------------------------------------------
I spent 33 years and four months in active military service and during
that period I spent most of my time as a high class muscle man for Big
Business, for Wall Street and the bankers. - General Smedley Butler
More information about the Pd-list
mailing list