This puzzle can be solved in seven actions, using a loop to handle the wait periods for the spike and the platform. There should be no timing requirement for this, the first wait will stop in front of the spike and then wait for the platform to move (during which, the spike will not trigger again).
forward
rotate right
a marker
forward
wait one second
wait forward
go-to a