Scripting changes to InDesign Master Pages
Scripting changes to InDesign Master Pages
- Subject: Scripting changes to InDesign Master Pages
- From: Larry McMunn <email@hidden>
- Date: Tue, 22 Jul 2003 15:49:18 -0400
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
I have tried:
search every story of text frame "Footer" blah-blah-blah...
and the following tell statements:
tell text frame "Footer"
tell page "B-Master"
tell master page "B-Master"
tell master spreads
tell current page
Any help is appreciated greatly.
--
Happy Automation! :-)
Larry McMunn
President
McMunn Associates, Inc.
Specialists in automated Data Visualization through Apple products
Collingswood, NJ
(856) 858-3440
---------------------------------------------------------------
_______________________________________________
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.