Illustrator CC 2017 move items between document error

Hi

Please can anyone tell me why this script crashes my Adobe Illustrator every time or suggest a way of moving stuff from 1 document to another (without copy and paste if possible) please.

Thanks

Tim

tell application "Adobe Illustrator"
		move path item 1 of layer 1 of document 2 to layer 1 of document 1 --assume exists
end tell

You need to be more specific, like this:

tell application "Adobe Illustrator"
	move path item 1 of layer 1 of document 2 to end of layer 1 of document 1 --assume exists
end tell

Thanks Shane

You’re right of course, and it works! …for about 3 seconds my path item appears, then illustrator crashes out again.

Very odd. I take it this does not happen for you?

Not in my quick test, no.

OK Thanks

I think I’ll have to come up with a work around.

Copy and Paste probably… (urgh!)

Is duplicate any more stable?

Yes! Great suggestion Shane. Thanks

Using duplicate instead of move does not crash Illustrator.

Bit of an odd one but now I know it, I can work with it.

Thanks again mate.

Tim