finder – Making an utility bundle open a file


I’ve a quite simple Mac utility bundle which is principally a wrapper round Spyder. I’m making an attempt to get it to open .py recordsdata.

Right here is the whole thing of the appliance listing


Right here is Data.plist

<?xml model="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist model="1.0">

And right here is Spyder

#!/usr/bin/env bash

echo "Launching Spyder with file: $@" > /tmp/spyderlog
supply ~/.profile
/Customers/mike/.scripts/launch-spyder "$@" >> /tmp/spyderlog

Sadly, if I attempt to use this utility to open some .py file, it would not appear to be the filename is handed into my Spyder executable in any respect: $@ is at all times clean.

How on Earth do you get Finder to ship the filename into the executable?