0

I'm trying to use the atomic package. However when I get to the usage steps where it says:

>>> import atomac
>>> atomac.launchAppByBundleId('com.apple.Automator')

I get this error:

-bash: import: command not found

I am using python 2.7.5 on Mavericks. I'm not sure what I'm doing wrong.

Vasily Ryabov
  • 9,386
  • 6
  • 25
  • 78
  • According to the reported error it seems like you are giving those commands in a bash shell, not a python one. When you run a terminal emulator you should first give "python" command to open a python shell, then you can write that code. – smeso Dec 09 '13 at 09:04
  • Awesome! That is exactly what I was missing. It works perfectly now. Thank you! – Macuserman17 Dec 09 '13 at 09:07

1 Answers1

0

Install atomac using pip: pip install pyatomac

Thejus Krishna
  • 1,755
  • 1
  • 19
  • 28