In Windows if I create a .exe and drag+drop another file on top of that .exe, then the .exe will run with the name of the file that I dropped as the first argument.
I tried this on OSX, but it doesn't work - instead the drag+dropped file was simply moved to the same folder as my exe. So I thought I could "open with", but my .exe isn't selectable through that dialog either.
How is this typically done?