I have set up a script that launches the terminal with this bash command:
script.command is a Perl script, and it gets executed just fine. (This may look a little convoluted, but it's the only way I've found to bundle a script with an interactive command line in a regular application created by Platypus.)
The only problem is that the working directory of the script is always my home directory, regardless of where the above command was executed. The same also applies to
open -a Terminal.
I've tried doing this:
open script.command --args "`pwd`"
which should technically work (using the argument in a
chdir), but the argument isn't passed to the perl script (
Does Terminal have any command line options I'm unaware of?