Question: I am trying to open the Music app on mac using os open on python but it says file doesn't exist 

```
import os
os.system("open /Applications/Music.app");

```

Answer: 
**subprocess approach**

`os.systm()` is not the prefered way to execute programs in new `process`. use `subprocess` module. see documentation [subprocess](https://docs.python.org/2/library/subprocess.html#module-subprocess)

```
import subprocess
cmd = "open /System/Applications/Music.app" # i guess its a shell command so argument shell must be true.

```

if you want to communicate with the process, use the `subprocess.PIPE`. if you dont need any communication, omit them from the function arguments.

```
p = subprocess.Popen(cmd,shell=True,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout,stderr=p.communicate() #return a tuple of the stdout and stderr of the process.

```
This application is actually located in `/System/Applications`, as are several other default Mac apps, so you should open it like this instead:

```
import os
os.system("open /System/Applications/Music.app")

```