Script to copy SVG code from selected objects
Hi all,
I am trying to create my first Illustrator Script and it seems that I need some help.

When selecting and copying two objects (like in the image above) and pasting them into a text editor, the following SVG code will be pasted:

(The path is shortened)
The script that I am trying to create should help me manipulating the SVG code so that only the text inside the quotes of d="" will be pasted.
The result should look like this:

Does anyone have an idea how to solve this?
Thanks a lot!
