$ osascript -e 'id of app "RStudio"'
org.rstudio.RStudio