CEP-Resources icon indicating copy to clipboard operation
CEP-Resources copied to clipboard

[Question] What Adobe products support drag & drop as a way to import files?

Open fcarrilLB opened this issue 6 years ago • 4 comments

I know Premiere Pro is one of them, using something like: event.dataTransfer.setData('com.adobe.cep.dnd.file.0', path);

But, is there another product that support this feature? After Effects? Photoshop? Illustrator? InDesign?

Thanks in advance!

fcarrilLB avatar Mar 21 '18 21:03 fcarrilLB

Note: Drag-n-drop in PPro is treacherous, in that PPro displays three distinct behaviors, depending on where the user drops the file. Related: You have no way of knowing where the user drops the file. :)

To maintain full control over import (including-but-not-limited-to: targeting a specific bin, renaming the imported projectItem something readable, stamping it with XMP metadata from a MAM) we emphatically encourage footage providers to adopt a "tick checkboxes next to the ones you want, then click an Import button" strategy instead.

But yes, PPro does support drag-n-drop.

bbb999 avatar Mar 21 '18 21:03 bbb999

Thanks for the quickly response!

I bother you with one more question, are After Effects / Photoshop / Illustrator / InDesign supporting drag and drop to import files?

fcarrilLB avatar Mar 22 '18 13:03 fcarrilLB

Photoshop does, it has 2 methods. DD on workspace opens it, DD on open document places and links.Illustrator acts same as photoshop on DD. Indesign only support its when document is open, on DD it changes to placement tool for the linked files.

But I guess by now you already know ;)

schroef avatar Mar 24 '20 02:03 schroef

You can use the HTML Drag and Drop API for any file to get it's file path then prompt it to open inside the host app through a scripting call if you drag to a CEP panel instead of the host app.

Inventsable avatar Jun 15 '20 16:06 Inventsable