Handling files dropped on application

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gwthompson
Posts: 15
Joined: Thu Feb 14, 2008 8:37 pm

Handling files dropped on application

Post by gwthompson » Fri Feb 15, 2008 8:04 pm

Hello,

I am relatively new to Revolution Studio although I have built some utility apps to help on my learning path.

My question is:

How do I set up a handler to process files that are dropped on my application in the Finder? Is this automatically an Apple Event?

I am building another little utility that is emulating an AppleScript droplet I have previously created that I want to enhance with Revolution.

Any and all guidance would be greatly appreciated.

Thanks!

Gary Thompson

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Feb 16, 2008 1:57 am

Hi Gary,

This might get you started:

http://runrev.info/Drag%20N%20Drop%20files%20.htm

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

gwthompson
Posts: 15
Joined: Thu Feb 14, 2008 8:37 pm

Post by gwthompson » Tue Feb 19, 2008 6:58 pm

Hi Mark,

The link did help somewhat but how do you set a standalone application to allow files to be dropped on it? I'm used to AppleScript droplets which allow pretty much anything to be dropped on them.

Any guidance would be greatly appreciated.

Thanks,
Gary

Post Reply