Drag-drop onto app icon

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 222
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK

Drag-drop onto app icon

Post by thatkeith » Tue Dec 05, 2017 9:53 pm

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
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
President, IVRPA.org

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6108
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Drag-drop onto app icon

Post by FourthWorld » Tue Dec 05, 2017 10:21 pm

Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 222
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK

Re: Drag-drop onto app icon

Post by thatkeith » Tue Dec 05, 2017 10:29 pm

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.

:(
Senior Lecturer, LCC (University of the Arts London)
Technical Editor, MacUser (1996-2015)
President, IVRPA.org

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6108
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Drag-drop onto app icon

Post by FourthWorld » Tue Dec 05, 2017 11:05 pm

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. :)
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Talking LiveCode”