osx - Closing an App on Mac using Ruby code -


i can open app using

file_to_open = "/applications/revu.app" system %{open "#{file_to_open}"} 

but i'm not sure how write code close using ruby. appreciated.

shell out applescript:

system %{ osascript -e 'tell application "revu" quit'} 

Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -