Page 1 of 1

Drag-drop onto app icon

Posted: Tue Dec 05, 2017 9:53 pm
by thatkeith
I have drag & drop working well in an app – dropping a JPEG or PNG into a target in the stack – but I'd really like to be able to do the same by dropping a (compatible) file onto the app icon, launching it if necessary and passing over the drop process to my regular scripts.

Is this: http://lessons.livecode.com/m/4071/l/15 ... le-onto-it the current state-of-the-art approach? Does anyone have any tips, or perhaps even an example stack?

k

Re: Drag-drop onto app icon

Posted: Tue Dec 05, 2017 10:21 pm
by FourthWorld

Re: Drag-drop onto app icon

Posted: Tue Dec 05, 2017 10:29 pm
by thatkeith
Very interesting resource - I'm going to have to delve through Ken's list of goodies!

For this particular challenge that link I posted still *looks* more relevant. But it also seems rather crazy to have to craft such dramatically different things for different platforms and add custom CFBundleTypeExtensions entries in .plist files within the app for Mac software.

:(

Re: Drag-drop onto app icon

Posted: Tue Dec 05, 2017 11:05 pm
by FourthWorld
thatkeith wrote:
Tue Dec 05, 2017 10:29 pm
But it also seems rather crazy to have to craft such dramatically different things for different platforms
Agreed. They should all be using the OpenDesktop spec that Linux uses. :)