Re: Scripting changes to InDesign Master Pages
Re: Scripting changes to InDesign Master Pages
- Subject: Re: Scripting changes to InDesign Master Pages
- From: Peter Boctor <email@hidden>
- Date: Wed, 23 Jul 2003 10:32:43 -0700
I think you want to first filter all the text frames with that label
and then search just those, so something like this:
set cFindText to "03-30-2003"
set cReplaceText to "06-30-2003"
tell application "InDesign 2.0.2"
tell document 1
search (text frames whose label is "Footer") for cFindText
replacing with cReplaceText
end tell
end tell
At 3:49 PM -0400 7/22/03, Larry McMunn wrote:
I need to script changing a date in a footer in a document.
The date is in a text frame labeled "Footer" on master page "B-Master"
The following will change all occurrences in the document. But I
haven't found a syntax to limit the change to only the text frame
from the master page.
set cFindText to "03-30-2003"
set cReplaceText to "06-30-2003"
tell application "InDesign"
tell document 1
search every story with find attributes {find text:cFindText} ,
with change attributes {change text:cReplaceText}
end tell
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.