Need help with Applescript on open

Hello guys,

I have a droplet script that generates a link of a folder or file. Is there a way for me to add a condition wherein it will send an alert message if the my droplet is opened on mouseclick?

Thanks,
R

Welcome to MacScripter renantea!

Save the script below as an application.
Try double-clicking it, and then try dropping a file on it.


on run
	display dialog "The app was double-clicked."
end run

on open (someFiles)	
	display dialog "Process these files..."
	-- do something with the files	
end open

Is that the sort of thing you were looking for?

HTH

Thanks TecNik!

That’s exactly what I am looking for!

R

Good! :slight_smile: