Applescript to mimic behavior of folder on desktop
I am unfortunately a complete novice with Applescript. I would like to write a script that mimics the behavior of a folder icon in the Finder. So that if I save it as a compiled app:
(1) if I drag a file to the app, it moves the file into a folder pre-specified in the script (call it "~/Desktop/My\ Folder") and
(2) if I just double-click on the app, it just opens that folder in Finder.
My attempts to create something, modeled on scripts I see online, are not working out. Would very much appreciate help — thank you!!
(Invoking Automator would also be fine.)
MacBook Pro