Sunday, December 15, 2019

#1 2019-02-14 04:17:15 am

timbaldwin
Member
Registered: 2006-08-14
Posts: 71

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

Applescript:

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

Offline

 

#2 2019-02-14 04:56:21 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6079

Re: Illustrator CC 2017 move items between document error

You need to be more specific, like this:

Applescript:

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


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#3 2019-02-14 05:49:23 am

timbaldwin
Member
Registered: 2006-08-14
Posts: 71

Re: Illustrator CC 2017 move items between document error

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?

Offline

 

#4 2019-02-14 05:54:07 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6079

Re: Illustrator CC 2017 move items between document error

timbaldwin wrote:

I take it this does not happen for you?



Not in my quick test, no.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#5 2019-02-14 06:00:21 am

timbaldwin
Member
Registered: 2006-08-14
Posts: 71

Re: Illustrator CC 2017 move items between document error

OK Thanks

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

Copy and Paste probably.. (urgh!)

Offline

 

#6 2019-02-14 06:02:44 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6079

Re: Illustrator CC 2017 move items between document error

Is duplicate any more stable?


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#7 2019-02-14 06:09:20 am

timbaldwin
Member
Registered: 2006-08-14
Posts: 71

Re: Illustrator CC 2017 move items between document error

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

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)