Re: INDESIGN: Duplicating Char Style from One Doc to Another
Re: INDESIGN: Duplicating Char Style from One Doc to Another
- Subject: Re: INDESIGN: Duplicating Char Style from One Doc to Another
- From: Rick Gordon <email@hidden>
- Date: Fri, 05 Apr 2013 15:54:45 -0700
Title: Re: INDESIGN: Duplicating Char Style from One Doc
to Anoth
That line generates an error: error
"Invalid parameter."
number 30477
I suspect it is, like Stan said, "Also, you should NOT pass
any properties that are inappropriate in the target document, such
as class, object reference, parent, and
properties. Capture and pass only needed properties, such as
include footnotes, etc."
But if that is the case (and I thought it was, too), and you
don't want to have to set 50 or so properties (to make sure that the
one that's needed didn't get ignored), how can you do it?
Since Shane seemed to think it was possible, and I hardly ever
find him missing a trick, I'm still hopeful. Otherwise, I've got a
working kludge.
Rick Gordon
------------------
On 4/6/13 at 9:19 AM +1100, Shane Stanley wrote in a message
entitled
"Re: INDESIGN: Duplicating Char Style from One Doc to
Anothe":
On 06/04/2013, at 6:57 AM, Rick Gordon <email@hidden>
wrote:
tell vDestDoc to set vDestAppliedCharStyle to (make new character
style at end with
properties (properties of applied
character style ofvCurrentSourceGrepRef)) --NOPE
As well as what Stan said, it will
probably work if you put a "get" in there, straight after
the second parenthesis, and moved vDestDoc so that you don't
imply that ofvCurrentSourceGrepRef belongs to it. Something
like:
set vDestAppliedCharStyle to (make new character
style at end of vDestDoc with properties (get properties of applied
character style ofvCurrentSourceGrepRef))
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden