Tag Info

Hot answers tagged

1

The easiest way to make a double-clickable script that runs in a new Terminal window is to end the file name with ".command". Then you can double-click on the script file itself, no need for a .app bundle/package. If you want to execute bash commands before Python, you can put both in the same file but wrap the Python code in a bash exec statement. TCL ...


1

Here's a better solution to your problem if you absolutely need it to be a .app bundle: In your Converter.app/Contents/MacOS/Converter script, launch your Python script with the "open" command: open $(dirname "$0")/../Resources/Converter.py (I did a relative pathname trick above so you're not hard-coding an absolute path that would break if you moved ...



Only top voted, non community-wiki answers of a minimum length are eligible