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
. ./Contents ./Contents/MacOS ./Contents/MacOS/Spyder ./Contents/Data.plist
Right here is
<?xml model="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist model="1.0"> <dict> <key>CFBundleExecutable</key> <string>Spyder</string> <key>CFBundleName</key> <string>Spyder</string> </dict> </plist>
And right here is
#!/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?