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

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -