I've got some door moldings that are about 1 inch from the adjacent wall. A caulk gun won't begin to get in there, and pivoting the caulk tube up so it's nearly parallel to both walls still doesn't get the tip close enough to the gap.

How should I apply a caulk bead in this situation? Any good tricks, clever tools, or "this worked well enough for me"?