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

sql server - MSSQL Text and Varchar(MAX) fields shown (MEMO) in DBGrid -

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

mysql - Flyway migration, Unable to obtain Jdbc connection from DataSource -