Hi :)
I'm sorry, I haven't been able to work out what you want.
If you want to time the motor's ON period, I believe you need a timing circuit.
If you want to limit current, you'll need to measure current somehow, and control it using some kind of regulator. However the LM317 is not a good...