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

double exclamation marks in haskell -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

Qt Creator - Searching files with Locator including folder -