I have a shell script that I’d like to be triggered by OS X’s folder actions. To do so seems easy with applescript and the do shell script command, however the script isn’t performed inside a login shell. My environment has system variables that are important to that script.
It is a rake command that I am actually running and the versions of rake and ruby, which are important, are managed by rvm.
Are there any easy ways to make applescript spawn and execute within a login shell?
This isn’t probably the right way to do it, but you could start bash or zsh as a login shell with
-l.