Inter-application MIDI is done using OSX's IAC virtual MIDI port.
Go to the Audio MIDI Setup utility, and enable the IAC driver. Now, in all MIDI-aware applications, the IAC inputs and ouputs will show up.
In Logic, create an instrument in the environment page, and set it's Cha parameter to IAC Channel 1. Assign that instrument to the arrange page, and when you play your keyboard or regions in the arrange window, they'll get output to the IAC driver.
In Motion, configure it to receive MIDI from IAC Channel 1.