Page 1 of 1

Iconic Drag and Drop

Posted: Sun Aug 10, 2014 3:33 am
by WaltBrown
Is there a way for a standalone to sit on my desktop as an icon (Win7 in this case) and allow me to drag and drop a file on it, and NOT open yet still function? I want the user to be able to double click on it to open the stack to do any human required task, but if they drop a file on it, I want it to redirect the file, based on it's name or extension, to some other app, in this case a reader/parser, without human interaction.

For example, the stack script might have (in pseudo-code):

Code: Select all

on doubleClickOnMyIcon
    openUserInterfaceAndDoUserStuff
end doubleClickOnMyIcon

on dropAFileOnMe
    sendTheFileToAParserBasedOnItsFileExtensionWithoutOpeningTheApp
end dropAFileOnMe    
       
Does that make sense?
Thanks!

Re: Iconic Drag and Drop

Posted: Sun Aug 10, 2014 3:58 am
by FourthWorld

Re: Iconic Drag and Drop

Posted: Sun Aug 10, 2014 1:03 pm
by WaltBrown
Perfect, thank you Richard. It implies I can put all my drag and drop handling in the preOpenStack handler. I'll experiment a bit more.