Hope I dont embarrass myself as Im quite the Scripting-ignoramus, but could one not dissemble something like that into steps like creating a path (or »Insert Path« in the Actions-Palette-PopUp) and then applying »Stroke Path«? That should be recordable as an Action and as such could possibly be utilized with the Action Manager, I guess.