INDESIGN CS2: Pasting a Master Page Object or Clipboard Contents to Replace Text
INDESIGN CS2: Pasting a Master Page Object or Clipboard Contents to Replace Text
- Subject: INDESIGN CS2: Pasting a Master Page Object or Clipboard Contents to Replace Text
- From: Rick Gordon <email@hidden>
- Date: Mon, 11 Jun 2007 03:53:59 -0700
I am struggling to try and figure out how to do the following in InDesign CS2.
I have set characters into the text styled as "Anchor Placeholder", and have built grouped structures as described below.
Each grouped element consists of an icon graphic and a text box, and they are intended to sit in the margin area outside the main text area. I have set up all of the anchored object properties for the group to handle that, and made it part of an object style, which is already set for each element. They are also script-labeled as "Note Group" or "Tip Group".
I have copies of each grouped element placed on a master page named "Z-Library".
What I am trying to do is to parse through the main story and replacing each "n" which is character-styled as "Anchor Placeholder" with the Note object, and to replace each "t" which is character-styled as "Anchor Placeholder" with the Tip object.
(In CS3, I could use the new Find/Replace facilities to do this through the interface, by copying each element in turn, but I'm dealing with a CS2 workflow.)
I'd be happy to copy each element to the clipboard and run each scripted search/replace routine in turn, here, too, although I suspect there may be a way to implement the following pseudocode:
In the active document,
* replace every instance of the character "n" which is character-styled as "Anchor Placeholder" with a copy of the page item on master spread "Z-Library" which has the label "Note Group";
* replace every instance of the character "t" which is character-styled as "Anchor Placeholder" with a copy of the page item on master spread "Z-Library" which has the label "Tip Group".
Or, using the clipboard and doing each one in turn:
* replace every instance of the character "n" which is character-styled as "Anchor Placeholder" with the contents of the clipboard, etc.
Can someone help me get my grounding with this? Is it possible to address this without a loop? I'm banging my head on the wall with this, and think I'd better stop and see if I can get another insight into this.
Thanks in advance.
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
_______________________________________________
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