Upload Code to Arduino
How it's done
Select "Tools"->"Board"->[Arduino board]. In our case it is Arduino Uno.
Then select "Tools"->"Serial port"->[Your serial port used for communication with Arduino]. In our case it is /dev/tty.usbmodem1411.
Click on "File"->"Upload" to upload code to Arduino.