$ 0 0 "open -a R.app/ " opens up R with as the working directory on a Mac. Works with RStudio as well. #rstats