Failed to add AutoText into LO by Ruby

Please edit your post correcting the code snippet …

THANK YOU