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
Post a Comment