Skip to main content
January 5, 2010
Question

applescript: transferring total appearance from one page item to another

  • January 5, 2010
  • 1 reply
  • 793 views

What is the best way to transfer all the properties of a path item that determine appearance to another path item?

What if those path items are in separate documents?

Should I copy and paste?

what about:

set item_properties to every property of page item 1 of document 2

set properties of page item 5 of current document to item_properties

????

Specifically, I want to copy the following properties from one path item to another, across documents:

stroked

stroke width

stroke color

stroke dashes

stroke cap

filled

fill color

--and any patterns that are used as fill

blend mode

opacity

any help appreciated.

thanks.

Ben

This topic has been closed for replies.

1 reply

Muppet_Mark-QAl63s
Inspiring
January 5, 2010

In cases like this I would be using graphic styles… You could record all these to variables then add to the other doc's path but if it were a graphic style then you could C&P or duplicate an object with the applied style (this will bring over every thing used by it) remove object then apply style to required items. Less work that way.

January 5, 2010

Thanks Mark.

the main downside to this is it adds another layer of manual work--you would have to make a graphic style by hand from each sample object (because you can't make a new graphic style with a script). I would rather make the script do the work, so that if I have a lot of different sample items to mimic it could be automated.

The big problem I've encountered with just moving each property over is that when I make my own fill pattern for the sample object, and copy that pattern over as a "fill color", it seems to cause some problem with opening the document, as I found in this other discussion:

http://forums.adobe.com/thread/542632?tstart=0

Thanks again,

Ben

Muppet_Mark-QAl63s
Inspiring
January 6, 2010

I have sample scripts that I use for moving just about anything from one document to another. That said the one that always gave me the most problems was 'patterns' and I don't know why!!! It appeared to work just like the rest but quite often would result in an out of memory issue then crash (even with the simplest of pattern swatches). I will see if I have a copy of this at home (Im snowed in today)