How can I quit the application opened from terminal in Mac OS X?

Daisuki Honey

I know we can start an application from command line like:

 open -a "/Applications/Google Chrome.app"/

How can I quit that application from command line?

shadowtalker
osascript -e 'quit app "/Applications/Google Chrome.app"'

As per this page.

Or, as per the comments,

osascript -e 'tell app "/Applications/Google Chrome.app" to quit'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How can I clear previous output in Terminal in Mac OS X?

From Dev

How can I grep with color in Mac OS X's terminal?

From Dev

How I can launch Sublime Text 2 from the Mac OS X Terminal?

From Dev

On Mac OS X how can I log to Console.app from the terminal?

From Dev

How can I change an application icon in Mac OS X?

From Dev

How can I find a path to a running application on Mac OS X

From Dev

How can I remove an installed application from the Installer Package Database on Mac OS X?

From Dev

How can I trigger a notification from a remote terminal in OS X

From Dev

How can I type text from a file on Mac OS X?

From Dev

How can I select text in the Mac OS X Terminal without a mouse (for copy and paste, emacs)

From Dev

How can I make the Ubuntu terminal follow the same sorting with ls -l as Mac OS X uses by default?

From Dev

How do I quit a wxWidget application when no window was opened?

From Java

how can I connect to a remote mongo server from Mac OS terminal

From Dev

Mac OS: How can I launch the iTerm terminal, with a specific profile, from Automator or AppleScript?

From Dev

How to find out Mac OS X version from Terminal?

From Dev

How to connect to a Windows PC from a Mac OS X terminal

From Dev

How can I bundle a command line utility in os x application on Mac App Store (using sandbox entitlement)

From Dev

running eclipse from terminal in mac os x

From Dev

How can I open a URL in Google Chrome from the terminal in OS X?

From Dev

How can I make the terminal window close automatically on OS X?

From Dev

How can I write space in Terminal on OS X?

From Dev

How can I change the startup directory of my Terminal on OS X?

From Dev

How to correct malfunctioning Terminal in Mac OS X?

From Dev

How to run an AppleScript from a sandboxed application on a Mac (OS X)

From Dev

Can I convert an image from CMYK to RGB in Mac OS X?

From Dev

How can I log from Python to syslog with either SysLogHandler or syslog on Mac OS X *and* Debian (7)

From Dev

How can I install USB Prober from the Developer SDK on Mac OS X?

From Dev

How can I execute this python program from mac terminal

From Dev

How can I run an application with command line arguments in Mac OS

Related Related

  1. 1

    How can I clear previous output in Terminal in Mac OS X?

  2. 2

    How can I grep with color in Mac OS X's terminal?

  3. 3

    How I can launch Sublime Text 2 from the Mac OS X Terminal?

  4. 4

    On Mac OS X how can I log to Console.app from the terminal?

  5. 5

    How can I change an application icon in Mac OS X?

  6. 6

    How can I find a path to a running application on Mac OS X

  7. 7

    How can I remove an installed application from the Installer Package Database on Mac OS X?

  8. 8

    How can I trigger a notification from a remote terminal in OS X

  9. 9

    How can I type text from a file on Mac OS X?

  10. 10

    How can I select text in the Mac OS X Terminal without a mouse (for copy and paste, emacs)

  11. 11

    How can I make the Ubuntu terminal follow the same sorting with ls -l as Mac OS X uses by default?

  12. 12

    How do I quit a wxWidget application when no window was opened?

  13. 13

    how can I connect to a remote mongo server from Mac OS terminal

  14. 14

    Mac OS: How can I launch the iTerm terminal, with a specific profile, from Automator or AppleScript?

  15. 15

    How to find out Mac OS X version from Terminal?

  16. 16

    How to connect to a Windows PC from a Mac OS X terminal

  17. 17

    How can I bundle a command line utility in os x application on Mac App Store (using sandbox entitlement)

  18. 18

    running eclipse from terminal in mac os x

  19. 19

    How can I open a URL in Google Chrome from the terminal in OS X?

  20. 20

    How can I make the terminal window close automatically on OS X?

  21. 21

    How can I write space in Terminal on OS X?

  22. 22

    How can I change the startup directory of my Terminal on OS X?

  23. 23

    How to correct malfunctioning Terminal in Mac OS X?

  24. 24

    How to run an AppleScript from a sandboxed application on a Mac (OS X)

  25. 25

    Can I convert an image from CMYK to RGB in Mac OS X?

  26. 26

    How can I log from Python to syslog with either SysLogHandler or syslog on Mac OS X *and* Debian (7)

  27. 27

    How can I install USB Prober from the Developer SDK on Mac OS X?

  28. 28

    How can I execute this python program from mac terminal

  29. 29

    How can I run an application with command line arguments in Mac OS

HotTag

Archive