how to create a droplet

Hello ,

i am a newbie …

a have created a script that work with recursiv folder … . it run very well !!:slight_smile:

Today i have to run this script .
i would like to just have to drag en drop a folder on it to run it…

I have try to make a “compiled script” or a “mini-application” but it doesn’t work …

is there anyone to help me ??

thanks

A droplet is a regular application containing a “on open” handler (which will enable your app to receive drag & drop items in the Finder). Eg:

on open aliasListOfFiles
	repeat with i in aliasListOfFiles
		display dialog (i as text)
	end repeat
end open

Save as app, and you are done. Now, you can drop items onto your app’s icon, and the “open” handler will be invoked, receiving as parameter a list of aliases.

No much more info here: http://macscripter.net/faq/get_the_faq.php?id=73_0_10_0_C

Yes !!! :slight_smile: :wink:

it works very well … that is exacly what i wanted !! :stuck_out_tongue:

Thank you very much …!!